mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-01 09:47:48 +03:00
932e75e89f
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!).