1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/config
Peter Rajnoha 932e75e89f config: separate cfg_def_default_value_hint out of cfg_def_get_default_value
If the config setting is defined as having no default value, but it's
still not NULL, it means such a value acts as a *hint* only
(e.g. a starting value from which the default value is calculated).

The new "cfg_def_get_default_value_hint" will always return the value
as defined in config_settings.h.

The original "cfg_def_get_default_value" will always return 0/NULL if
the config setting is defined with CFG_DEFAULT_UNDEFINED flag (hence
ignoring the hint).

This is needed for proper distiction between a correct default value
and the value which is just a hint or a starting point in calculation,
but it's not the final value (yes, we do have such settings!).
2014-03-06 11:18:19 +01:00
..
config_settings.h config: runtime default for activation/mirror_image_fault_policy 2014-03-06 11:16:23 +01:00
config.c config: separate cfg_def_default_value_hint out of cfg_def_get_default_value 2014-03-06 11:18:19 +01:00
config.h config: runtime default for activation/mirror_image_fault_policy 2014-03-06 11:16:23 +01:00
defaults.h cache: Code changes to allow creation of cache pools 2014-02-04 11:57:08 -06:00