mrc0mmand / rpms / lvm2

Forked from rpms/lvm2 2 years ago
Clone
Blob Blame History Raw
From 823cff48df8cb6b077e608818f81c5805b26acc0 Mon Sep 17 00:00:00 2001
From: David Teigland <teigland@redhat.com>
Date: Wed, 20 Feb 2019 13:30:46 -0600
Subject: [PATCH 1/5] config: change scan_lvs default to 0

so that lvm does not scan LVs for PVs by default.

+ build: make generate

(cherry picked from commit 7be6791e707da333e56aea3cc50c079ab6207bad)
---
 conf/example.conf.in  | 2 +-
 lib/config/defaults.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/conf/example.conf.in b/conf/example.conf.in
index a54dc62..2e7bb3c 100644
--- a/conf/example.conf.in
+++ b/conf/example.conf.in
@@ -168,7 +168,7 @@ devices {
 
 	# Configuration option devices/scan_lvs.
 	# Scan LVM LVs for layered PVs.
-	scan_lvs = 1
+	scan_lvs = 0
 
 	# Configuration option devices/multipath_component_detection.
 	# Ignore devices that are components of DM multipath devices.
diff --git a/lib/config/defaults.h b/lib/config/defaults.h
index 3da29f0..e763a17 100644
--- a/lib/config/defaults.h
+++ b/lib/config/defaults.h
@@ -301,6 +301,6 @@
 #define DEFAULT_VDO_POOL_AUTOEXTEND_THRESHOLD 100
 #define DEFAULT_VDO_POOL_AUTOEXTEND_PERCENT 20
 
-#define DEFAULT_SCAN_LVS 1
+#define DEFAULT_SCAN_LVS 0
 
 #endif				/* _LVM_DEFAULTS_H */
-- 
1.8.3.1