1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/config
Peter Rajnoha ae0014e2df config: also evaluate default unconfigured values in runtime for 'cfg_runtime' settings
The settings which have their default value evaluated in runtime should
have their 'unconfigured' counterparts also evaluated in runtime since
those values can be constructed by using other settings.

For example, before this patch:

$ lvm dumpconfig --type default --unconfigured devices/cache_dir devices/cache
cache_dir="@DEFAULT_SYS_DIR@/@DEFAULT_CACHE_SUBDIR@"
cache="/etc/lvm/cache/.cache

With this patch applied:

$ lvm dumpconfig --type default --unconfigured devices/cache_dir devices/cache
cache_dir="@DEFAULT_SYS_DIR@/@DEFAULT_CACHE_SUBDIR@"
cache="@DEFAULT_SYS_DIR@/@DEFAULT_CACHE_SUBDIR@/.cache"
2015-04-28 15:36:35 +02:00
..
config_settings.h config: also evaluate default unconfigured values in runtime for 'cfg_runtime' settings 2015-04-28 15:36:35 +02:00
config.c config: also evaluate default unconfigured values in runtime for 'cfg_runtime' settings 2015-04-28 15:36:35 +02:00
config.h config: also evaluate default unconfigured values in runtime for 'cfg_runtime' settings 2015-04-28 15:36:35 +02:00
defaults.h config: fix check_options array 2015-04-23 10:35:34 -05:00