summaryrefslogtreecommitdiff
path: root/lib/cache
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2022-07-25 13:50:43 -0500
committerDavid Teigland <teigland@redhat.com>2022-07-25 13:50:43 -0500
commit99ce09ae778c2cc4aa2611e425bba5287b8b9513 (patch)
tree36a0b352bff627e7c5fd5fca1f9b537716bd1dbf /lib/cache
parentc0f8e6675c62332263acdc7c3c2f61eca20bd60f (diff)
downloadlvm2-99ce09ae778c2cc4aa2611e425bba5287b8b9513.tar.gz
apply multipath_component_detection=0 to duplicate PV handling
multipath_component_detection=0 has always applied to the filter-based component detection. Also apply this setting to the duplicate-PV handling which also eliminates multipath components (based on duplicate PVs having the same wwid.)
Diffstat (limited to 'lib/cache')
-rw-r--r--lib/cache/lvmcache.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/cache/lvmcache.c b/lib/cache/lvmcache.c
index a1c4a61c8..00916885c 100644
--- a/lib/cache/lvmcache.c
+++ b/lib/cache/lvmcache.c
@@ -652,6 +652,9 @@ static int _all_multipath_components(struct cmd_context *cmd, struct lvmcache_in
*dev_mpath = NULL;
+ if (!find_config_tree_bool(cmd, devices_multipath_component_detection_CFG, NULL))
+ return 0;
+
/* This function only makes sense with more than one dev. */
if ((info && dm_list_empty(altdevs)) || (!info && (dm_list_size(altdevs) == 1))) {
log_debug("Skip multipath component checks with single device for PVID %s", pvid);