]> sourceware.org Git - lvm2.git/commitdiff
conf: use use_blkid_wiping=0 if not defined in lvm.conf and support not compiled in
authorPeter Rajnoha <prajnoha@redhat.com>
Wed, 10 Feb 2016 13:53:10 +0000 (14:53 +0100)
committerPeter Rajnoha <prajnoha@redhat.com>
Wed, 10 Feb 2016 13:53:10 +0000 (14:53 +0100)
Normally, we generate and provide lvm.conf file where use_blkid_wiping
is set based on whether support for this is compiled in or not. This was
generated properly based on configure.

However, if lvm.conf is not used at all (someone deletes it) or the value
in lvm.conf is commented out (user edited it), we still need to use
proper default value that is based on DEFAULT_USE_BLKID_WIPING taken
from configure script - we used hardcoded value of "1" in this case
by mistake.

WHATS_NEW
lib/config/config_settings.h

index 48fcd55ffd13bb027aa88d68879e68ed517a25a3..6ae8126e3fc4f3a9aa43fd89a25fc3d73b87e054 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
 Version 2.02.142 - 
 ====================================
+  Use use_blkid_wiping=0 if not defined in lvm.conf and support not compiled in.
   Do not check for suspended devices if scanning for lvmetad update.
   Fix part. table filter with external_device_info_source="udev" and blkid<2.20.
 
index 210a06fa70ae7bc86085d73482b7a8c3ff46d885..e554b8eddcdb6ce33702f764f20db18d8452a022 100644 (file)
@@ -420,7 +420,7 @@ cfg(allocation_maximise_cling_CFG, "maximise_cling", allocation_CFG_SECTION, 0,
        "the same disks. This setting can be used to disable the changes\n"
        "and revert to the previous algorithm.\n")
 
-cfg(allocation_use_blkid_wiping_CFG, "use_blkid_wiping", allocation_CFG_SECTION, 0, CFG_TYPE_BOOL, 1, vsn(2, 2, 105), "@DEFAULT_USE_BLKID_WIPING@", 0, NULL,
+cfg(allocation_use_blkid_wiping_CFG, "use_blkid_wiping", allocation_CFG_SECTION, 0, CFG_TYPE_BOOL, DEFAULT_USE_BLKID_WIPING, vsn(2, 2, 105), "@DEFAULT_USE_BLKID_WIPING@", 0, NULL,
        "Use blkid to detect existing signatures on new PVs and LVs.\n"
        "The blkid library can detect more signatures than the native LVM\n"
        "detection code, but may take longer. LVM needs to be compiled with\n"
This page took 0.187032 seconds and 5 git commands to generate.