lvm2/0002-lvm2-default-allow-changes-with-duplicate-pvs.patch
2021-11-23 14:34:14 +08:00

31 lines
1.1 KiB
Diff

diff --git a/conf/example.conf.in b/conf/example.conf.in
index 245973a..3d08b30 100644
--- a/conf/example.conf.in
+++ b/conf/example.conf.in
@@ -393,8 +393,7 @@ devices {
# or activating LVs in it while a PV appears on multiple devices.
# Enabling this setting allows the VG to be used as usual even with
# uncertain devices.
- # This configuration option has an automatic default value.
- # allow_changes_with_duplicate_pvs = 0
+ allow_changes_with_duplicate_pvs = 1
# Configuration option devices/allow_mixed_block_sizes.
# Allow PVs in the same VG with different logical block sizes.
diff --git a/lib/config/defaults.h b/lib/config/defaults.h
index 1b1568a..4d6d40f 100644
--- a/lib/config/defaults.h
+++ b/lib/config/defaults.h
@@ -56,7 +56,7 @@
#define DEFAULT_DATA_ALIGNMENT_DETECTION 1
#define DEFAULT_ISSUE_DISCARDS 0
#define DEFAULT_PV_MIN_SIZE_KB 2048
-#define DEFAULT_ALLOW_CHANGES_WITH_DUPLICATE_PVS 0
+#define DEFAULT_ALLOW_CHANGES_WITH_DUPLICATE_PVS 1
#define DEFAULT_LOCKING_LIB "liblvm2clusterlock.so"
#define DEFAULT_ERROR_WHEN_FULL 0
--
1.8.3.1