1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib
Peter Rajnoha ac3143c093 config: {thin,cache}_{check,repair}_options are never undefined
Require global/{thin,cache}_{check,repair}_options to be always defined.
If not defined directly by user in the configuration and if there's no
concrete default option to use, make "" (empty string) the default one -
it's then clearly visible in the "lvmconfig --type default" (and
generated lvm.conf) and also it makes its handling in the code more
straightforward so we don't need to handle undefined values.

This means, if there are no default values for these settings defined,
we end up with this generated now:
  {thin,cache}_{check,repair}_options = [ "" ]

So the value is never undefined and if it is, it's an error.

(The cache_repair_options is actually not used in the code at the moment,
but once the code using this setting is in, it will follow the same logic
as used for thin_repair_options.)
2015-07-14 10:13:41 +02:00
..
activate config: {thin,cache}_{check,repair}_options are never undefined 2015-07-14 10:13:41 +02:00
cache pvcreate: remove recent warning message 2015-07-09 15:26:32 -05:00
cache_segtype debug: extra validation of passed segment 2015-05-08 15:15:11 +02:00
commands config: replace find_config_tree_node with find_config_tree_array where appropriate 2015-07-08 13:03:08 +02:00
config config: {thin,cache}_{check,repair}_options are never undefined 2015-07-14 10:13:41 +02:00
datastruct datastruct: Add str_list_add_list. 2015-03-26 18:30:37 +00:00
device config: replace find_config_tree_node with find_config_tree_array where appropriate 2015-07-08 13:03:08 +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 coverity: fix possible invalid dereferences 2015-07-09 12:07:41 +02:00
format_pool cache: Store metadata size and checksum. 2015-03-18 23:43:02 +00:00
format_text metadata: add comments describing lock_args for lvmlockd 2015-07-09 15:16:28 -05: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 lockd: allow nolocking and readonly options 2015-07-13 13:15:51 -05:00
log coverity: fix regresions from 16e9b32c2f 2015-07-08 15:41:48 +02:00
lvmpolld lvmpolld: Fix segfault on 32 bit architectures 2015-07-10 16:16:57 +02:00
metadata lockd: disable part of lock_args validation 2015-07-10 15:53:21 -05:00
mirror macros: Wrap PRI with FMT. 2015-07-06 15:09:17 +01:00
misc config: replace find_config_tree_node with find_config_tree_array where appropriate 2015-07-08 13:03:08 +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 coverity: missing return value checks 2015-07-09 15:15:15 +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 config: replace find_config_tree_node with find_config_tree_array where appropriate 2015-07-08 13:03:08 +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