1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib
Peter Rajnoha 67a61cce1b config: add find_config_tree_array
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.
2015-07-08 12:59:22 +02:00
..
activate cache: support clear-needs-check 2015-07-07 09:57:27 +02:00
cache Add lvmlockd 2015-07-02 15:42:26 -05:00
cache_segtype debug: extra validation of passed segment 2015-05-08 15:15:11 +02:00
commands config: add find_config_tree_array 2015-07-08 12:59:22 +02:00
config config: add find_config_tree_array 2015-07-08 12:59:22 +02:00
datastruct datastruct: Add str_list_add_list. 2015-03-26 18:30:37 +00:00
device cleanup: cast minor to dev_t 2015-05-08 15:15:10 +02:00
display Add lvmlockd 2015-07-02 15:42:26 -05:00
error segtype: drop cmdcontex pointer 2014-10-30 23:58:49 +01:00
filters config: use timestamp with nanosecond precision 2015-03-18 13:42:56 +01:00
format1 format1: check for lvm1_system_id 2015-05-08 15:15:10 +02:00
format_pool cache: Store metadata size and checksum. 2015-03-18 23:43:02 +00:00
format_text macros: Wrap PRI with FMT. 2015-07-06 15:09:17 +01:00
freeseg segtype: drop cmdcontex pointer 2014-10-30 23:58:49 +01:00
label cache: Store metadata size and checksum. 2015-03-18 23:43:02 +00:00
locking config: remove read_only_lock_modes 2015-07-06 11:44:28 -05:00
log include: Standardise around new tool.h. 2015-07-06 17:30:18 +01:00
lvmpolld lvmpolld-client.c: debug print when querying progress 2015-05-21 11:20:21 +02:00
metadata clean-up: typos s/bellow/below/ 2015-07-06 10:15:11 -05:00
mirror macros: Wrap PRI with FMT. 2015-07-06 15:09:17 +01:00
misc cache: support clear-needs-check 2015-07-07 09:57:27 +02:00
mm xlate: add new variants 2015-06-16 09:30:14 -05:00
properties report: add support for time (basic) 2015-06-30 15:15:10 +02:00
raid macros: Wrap PRI with FMT. 2015-07-06 15:09:17 +01:00
replicator macros: Wrap PRI with FMT. 2015-07-06 15:09:17 +01:00
report report: select: add handler to recognize fuzzy time specification 2015-07-03 10:51:31 +02:00
snapshot segtype: add SEG_ONLY_EXCLUSIVE flag 2014-11-10 22:05:48 +01:00
striped segtype: drop cmdcontex pointer 2014-10-30 23:58:49 +01:00
thin thin: move pool messaging from resume to suspend 2015-07-03 16:13:14 +02:00
unknown segtype: drop cmdcontex pointer 2014-10-30 23:58:49 +01:00
uuid macros: Wrap PRI with FMT. 2015-07-06 15:09:17 +01:00
zero cleanup: remove unused headers 2014-11-13 17:49:42 +01:00
Makefile.in Add lvmlockd 2015-07-02 15:42:26 -05:00