1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/config
Peter Rajnoha 67c52a4453 config: add CFG_DISABLED flag and mark system_id settings with that flag
If configuration setting is marked in config_setting.h with CFG_DISABLED
flag, default value is always used for such setting, no matter if it's defined
by user (in --config/lvm.conf/lvmlocal.conf).

A warning message is displayed if this happens:

For example:

[1] f21/~ # lvm dumpconfig --validate
  WARNING: Configuration setting global/system_id_source is disabled. Using default value.
  LVM configuration valid.

[1] f21/~ # pvs
  WARNING: Configuration setting global/system_id_source is disabled. Using default value.
  PV         VG     Fmt  Attr PSize   PFree
  /dev/sdb          lvm2 ---  128.00m 128.00m
  ...
2015-03-04 14:08:47 +01:00
..
config_settings.h config: add CFG_DISABLED flag and mark system_id settings with that flag 2015-03-04 14:08:47 +01:00
config.c config: add CFG_DISABLED flag and mark system_id settings with that flag 2015-03-04 14:08:47 +01:00
config.h config: add CFG_DISABLED flag and mark system_id settings with that flag 2015-03-04 14:08:47 +01:00
defaults.h config: Adjust system_id defaults. 2015-02-23 21:20:51 +00:00