mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
67a61cce1b
Before, we used general find_config_tree_node function to retrieve array values. This had a downside where if the node was not found, we had to insert default values directly in-situ after the find_config_tree_node call. This way, we had two copies of default values - one in config_settings.h and the other one directly in the code where we found out that find_config_tree_node returned NULL and hence we needed to fall back to defaults. With separate find_config_tree_array used for array config values, we keep all the defaults centrally in config_settings.h because the new find_config_tree_array automatically returns these defaults if it can't find any value set in the configuration. This patch just makes the behaviour exactly the same for arrays as for any other non-array type where we call find_config_tree_<type> already, hence making the internal interface for handling array values consistent with the rest of the config types. |
||
---|---|---|
.. | ||
activate | ||
cache | ||
cache_segtype | ||
commands | ||
config | ||
datastruct | ||
device | ||
display | ||
error | ||
filters | ||
format1 | ||
format_pool | ||
format_text | ||
freeseg | ||
label | ||
locking | ||
log | ||
lvmpolld | ||
metadata | ||
mirror | ||
misc | ||
mm | ||
properties | ||
raid | ||
replicator | ||
report | ||
snapshot | ||
striped | ||
thin | ||
unknown | ||
uuid | ||
zero | ||
Makefile.in |