summaryrefslogtreecommitdiffstats
path: root/libdm/libdm-config.c
Commit message (Collapse)AuthorAgeFilesLines
* whitespaceAlasdair G Kergon2012-08-071-1/+0
|
* Remove redundant (potentially harmful) semicolonMarian Csontos2012-08-021-1/+1
|
* config: fix one-node dumpconfig, add dm_config_write_one_nodePeter Rajnoha2012-07-201-2/+13
| | | | | | | | | | | | | | | | | | A regression introduced in 2.02.89 (11e520256b3005ed813ce83f8770aaab74edef3f) caused the lvm dumpconfig <node> to print out the node as well as its subsequent siblings. The information about "only_one" mode got lost. Before this patch (just an example node): # lvm dumpconfig global/use_lvmetad use_lvmetad=1 thin_check_executable="/usr/sbin/thin_check" thin_check_options="-q" (...all nodes to the end of the section) With this patch applied: # lvm dumpconfig global/use_lvmetad use_lvmetad=1
* Log value chosen in _find_config_bool like other variable types do.Alasdair Kergon2012-05-081-11/+18
|
* Use 64 bit integers whenever extracting numbers from daemon replies.Petr Rockai2012-03-011-0/+5
|
* Fix empty string warning logic in _find_config_str. (1.02.68)Alasdair Kergon2012-02-281-8/+10
| | | | | | | | pvcreate gives WARNING: Ignoring unsupported value for metadata/pvmetadataignore. It was warning if there is no config file entry instead of only if the node exists but is empty.
* add constAlasdair Kergon2012-01-231-1/+3
|
* Update for gcc old-styleZdenek Kabelac2012-01-191-1/+1
|
* Add dm_config_find_str_allow_emptyZdenek Kabelac2011-12-211-0/+6
| | | | Support empty string values.
* Make a cleaner split between config tree and config file functionality. MovePetr Rockai2011-12-181-144/+20
| | | | the latter out of libdm.
* Move dm_config_write out of libdm, back to lib/config, as config_write.Petr Rockai2011-12-111-61/+5
|
* In the dm_config_*get_* functions, make the actual value retrieval optionalPetr Rockai2011-12-111-5/+10
| | | | (useful for just checking that a given key is of a given type).
* Fix core on buggy config fileZdenek Kabelac2011-10-281-1/+5
| | | | Since fixed within unreleased version so no WHATS_NEW
* Add find_config_tree_str_allow_emptyZdenek Kabelac2011-10-281-5/+14
| | | | | Add function to allow read of empty strings as valid arguments. Add a warning message if string argument has ignored value.
* Remove test for NULLZdenek Kabelac2011-09-251-3/+1
| | | | | | | | Since it's internal function and we always check for NULL value before call - this is safe. Just for case add nonnull attribute so analyzer might better catch error.
* Add missing log_error messagesZdenek Kabelac2011-09-251-6/+14
|
* Add backtrace when allocation fails for _typeZdenek Kabelac2011-09-251-1/+2
|
* Replace test for NULL of root->child with test for NULL lZdenek Kabelac2011-09-251-1/+1
| | | | | | It's 100% equivalent test - since it always happen for the first iteration. But the check for 'l' is understandable with analyzers - since analyzer is not smart enough to deduce connection between root->child == NULL.
* Simplier attribute formatZdenek Kabelac2011-09-251-2/+1
| | | | No need to repeat whole declaration for static function.
* Chheck for failing filename strdupZdenek Kabelac2011-09-251-2/+7
|
* Use NULL for pointersZdenek Kabelac2011-09-251-10/+10
|
* Move cascade inside libdm etc.Alasdair Kergon2011-09-021-5/+31
| | | | | | Makes dumpconfig whole-section output wrong in a different way from before, but we should be able to merge cft_cmdline properly into cmd->cft now and remove cascade.
* Comments, FIXMEs, name changes.Alasdair Kergon2011-09-011-13/+27
|
* Use const casting when it's neededZdenek Kabelac2011-09-011-7/+7
| | | | Keep the lookup operation const and use const casting at the dm_ function level.
* Replace const usage of dm_config_find_node with more appropriate value-lookupPetr Rockai2011-08-311-5/+38
| | | | | | | | | | | | | functionality. A number of bugs (copied and pasted all over the code) should disappear: - most string lookup based on dm_config_find_node would segfault when encountering a non-zero integer (the intention there was to print an error message instead) - check for required sections in metadata would have been satisfied by values as well (i.e. not sections) - encountering a section in place of expected flag value would have segfaulted (due to assumed but unchecked cn->v != NULL)
* Fix warnings and constness handling in lvmetad-core (adjusting thePetr Rockai2011-08-311-8/+8
| | | | | dm_config_find_node to give non-const node pointer, since that better reflects the contract of that function).
* Move the core of the lib/config/config.c functionality into libdevmapper,Petr Rockai2011-08-301-0/+1237
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.