Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | libdm-string: Add dm_vasprintf. | Petr Rockai | 2012-07-31 | 1 | -2/+12 |
| | |||||
* | Introduce dm_strncpy | Zdenek Kabelac | 2012-02-23 | 1 | -0/+10 |
| | | | | | | | Should be faster then strncpy - since we could avoid clearing 4KB pages with each strncpy(...,PATH_MAX). Also it's easy to check whether string fit - and eventually avoid to continue working we incomplete string. | ||||
* | Missed dm_free in last commit | Zdenek Kabelac | 2012-02-23 | 1 | -0/+1 |
| | |||||
* | Limit number of mem allocs and copies | Zdenek Kabelac | 2012-02-23 | 1 | -14/+18 |
| | | | | | | | | If we have good enough glibc to return number of needed chars, do not loop try to reach good size, but use this size directly for allocation, saving also last strdup. Since now we start with 16 bytes - skip buffer realloc for shorter string. | ||||
* | Return error for failing allocation | Zdenek Kabelac | 2012-02-10 | 1 | -1/+3 |
| | | | | | Fix case, where final strdup would have failed and it would miss to return failure for this case and return success and NULL pointer. | ||||
* | Fix memory overwrite | Zdenek Kabelac | 2011-09-14 | 1 | -1/+1 |
| | | | | | | | Transfer of build_dm_uuid() function into libdm made uuid_prefix as parameter, thus sizeof() was replaced with strlen() and room for '\0' missed. As it's only fix in current version - no whatsnew. | ||||
* | Add comments & remove always-included header. | Alasdair Kergon | 2011-09-01 | 1 | -4/+24 |
| | |||||
* | Move the core of the lib/config/config.c functionality into libdevmapper, | Petr Rockai | 2011-08-30 | 1 | -0/+222 |
| | | | | | | | leaving behind the LVM-specific parts of the code (convenience wrappers that handle `struct device` and `struct cmd_context`, basically). A number of functions have been renamed (in addition to getting a dm_ prefix) -- namely, all of the config interface now has a dm_config_ prefix. | ||||
* | Move va_end(ap) so we do not leave with return -1 without calling it. | Zdenek Kabelac | 2010-11-23 | 1 | -2/+3 |
| | | | | Remove unneeded ';' | ||||
* | Use const pointer for return value of dm_basename | Zdenek Kabelac | 2010-10-25 | 1 | -3/+3 |
| | | | | Fix return pointer to const as it is created from passed input const pointer. | ||||
* | Use __attribute__ consistently throughout. | Alasdair Kergon | 2010-07-09 | 1 | -1/+1 |
| | |||||
* | Make mempool optional in dm_split_lvm_name() | Alasdair Kergon | 2009-06-03 | 1 | -1/+1 |
| | |||||
* | more tweaking to get things to compile - dmlib.h for log fns, list.h | Alasdair Kergon | 2008-11-03 | 1 | -1/+1 |
| | |||||
* | Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. | Alasdair Kergon | 2007-08-21 | 1 | -3/+3 |
| | |||||
* | Deal with some more compiler warnings. Hope this doesn't break anything... | Alasdair Kergon | 2007-04-27 | 1 | -1/+1 |
| | |||||
* | Add dm_event_handler_[gs]et_timeout functions. | Alasdair Kergon | 2007-01-22 | 1 | -1/+2 |
| | | | | Streamline dm_report_field_* interface. | ||||
* | More libdevmapper-event interface changes and fixes. | Alasdair Kergon | 2007-01-15 | 1 | -1/+1 |
| | | | | Rename dm_saprintf() to dm_asprintf(). | ||||
* | Lots of dmeventd-related changes. | Alasdair Kergon | 2007-01-11 | 1 | -0/+30 |
| | |||||
* | fix last checkin | Alasdair Kergon | 2007-01-08 | 1 | -1/+1 |
| | |||||
* | Lots of dmevent changes. | Alasdair Kergon | 2007-01-08 | 1 | -0/+8 |
| | | | | | Export dm_basename(). Cope with a trailing space when comparing tables prior to possible reload. | ||||
* | Add dm_snprintf | Alasdair Kergon | 2006-08-21 | 1 | -0/+22 |
| | |||||
* | Add dm_split_words() and dm_split_lvm_name() to libdevmapper. | Alasdair Kergon | 2006-08-21 | 1 | -0/+101 |