Skip to contentSkip to conversation

master - config: use devices/ignore_suspended_devices=0 by default

PATCH Peter Rajnoha 1 participant 1 message Apr 24, 2014

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=8e8a47143fa920b49f279ec4d096022a1afb36ec
Commit:        8e8a47143fa920b49f279ec4d096022a1afb36ec
Parent:        2b09def6068e69a920972211572235a827e7c474
Author:        Peter Rajnoha <[email protected]>
AuthorDate:    Thu Apr 24 12:12:28 2014 +0200
Committer:     Peter Rajnoha <[email protected]>
CommitterDate: Thu Apr 24 12:12:39 2014 +0200

config: use devices/ignore_suspended_devices=0 by default

ignore_suspended_devices=0 is already used in lvm.conf we distribute, but it was still "1" in the code (so it was used when lvm.conf value was not defined). It should be "0" too.

---
 WHATS_NEW             |    1 +
 lib/config/defaults.h |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)
WHATS_NEW +1 -0
index e7c9b04..1615f37 100644
@@ -1,5 +1,6 @@
 Version 2.02.107 - 
 ==================================
+  Use devices/ignore_suspended_devices=0 by default if not defined in lvm.conf.
   Use proper libmem mempool for allocation of unknown segment name.
   Add --readonly to reporting and display tools for lock-free metadata access.
   Add locking_type 5 for dummy locking for tools that do not need any locks.
lib/config/defaults.h +1 -1
index 2268e0b..137b4c8 100644
@@ -35,7 +35,7 @@
 #define DEFAULT_MD_CHUNK_ALIGNMENT 1
 #define DEFAULT_IGNORE_LVM_MIRRORS 1
 #define DEFAULT_MULTIPATH_COMPONENT_DETECTION 1
-#define DEFAULT_IGNORE_SUSPENDED_DEVICES 1
+#define DEFAULT_IGNORE_SUSPENDED_DEVICES 0
 #define DEFAULT_DISABLE_AFTER_ERROR_COUNT 0
 #define DEFAULT_REQUIRE_RESTOREFILE_WITH_UUID 1
 #define DEFAULT_DATA_ALIGNMENT_OFFSET_DETECTION 1