Blame 0094-dmraid-mdraid-lvm-udev-don-t-process-DM_MULTIPATH_DE.patch

Harald Hoyer 811c04
From c0cae7f702b5ccf27a80913642aec8bf15fe710e Mon Sep 17 00:00:00 2001
Harald Hoyer 811c04
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 811c04
Date: Mon, 30 Jul 2012 20:32:39 +0200
Harald Hoyer 811c04
Subject: [PATCH] dmraid,mdraid,lvm,udev: don't process
Harald Hoyer 811c04
 DM_MULTIPATH_DEVICE_PATH devs
Harald Hoyer 811c04
Harald Hoyer 811c04
---
Harald Hoyer 811c04
 modules.d/90dmraid/61-dmraid-imsm.rules            | 2 ++
Harald Hoyer 811c04
 modules.d/90lvm/64-lvm.rules                       | 2 ++
Harald Hoyer 811c04
 modules.d/90mdraid/65-md-incremental-imsm.rules    | 2 ++
Harald Hoyer 811c04
 modules.d/95udev-rules/59-persistent-storage.rules | 2 ++
Harald Hoyer 811c04
 modules.d/95udev-rules/61-persistent-storage.rules | 2 ++
Harald Hoyer 811c04
 5 files changed, 10 insertions(+)
Harald Hoyer 811c04
Harald Hoyer 811c04
diff --git a/modules.d/90dmraid/61-dmraid-imsm.rules b/modules.d/90dmraid/61-dmraid-imsm.rules
Harald Hoyer 811c04
index 73ba58e..33e060b 100644
Harald Hoyer 811c04
--- a/modules.d/90dmraid/61-dmraid-imsm.rules
Harald Hoyer 811c04
+++ b/modules.d/90dmraid/61-dmraid-imsm.rules
Harald Hoyer 811c04
@@ -4,6 +4,8 @@
Harald Hoyer 811c04
 
Harald Hoyer 811c04
 SUBSYSTEM!="block", GOTO="dm_end"
Harald Hoyer 811c04
 ACTION!="add|change", GOTO="dm_end"
Harald Hoyer 811c04
+# Also don't process disks that are slated to be a multipath device
Harald Hoyer 811c04
+ENV{DM_MULTIPATH_DEVICE_PATH}=="?*", GOTO="dm_end"
Harald Hoyer 811c04
 
Harald Hoyer 811c04
 ENV{ID_FS_TYPE}=="linux_raid_member", GOTO="dm_end"
Harald Hoyer 811c04
 
Harald Hoyer 811c04
diff --git a/modules.d/90lvm/64-lvm.rules b/modules.d/90lvm/64-lvm.rules
Harald Hoyer 811c04
index ab827a9..3ce0c1f 100644
Harald Hoyer 811c04
--- a/modules.d/90lvm/64-lvm.rules
Harald Hoyer 811c04
+++ b/modules.d/90lvm/64-lvm.rules
Harald Hoyer 811c04
@@ -6,6 +6,8 @@
Harald Hoyer 811c04
 
Harald Hoyer 811c04
 SUBSYSTEM!="block", GOTO="lvm_end"
Harald Hoyer 811c04
 ACTION!="add|change", GOTO="lvm_end"
Harald Hoyer 811c04
+# Also don't process disks that are slated to be a multipath device
Harald Hoyer 811c04
+ENV{DM_MULTIPATH_DEVICE_PATH}=="?*", GOTO="lvm_end"
Harald Hoyer 811c04
 KERNEL=="dm-[0-9]*", ACTION=="add", GOTO="lvm_end"
Harald Hoyer 811c04
 ENV{ID_FS_TYPE}!="LVM?_member", GOTO="lvm_end"
Harald Hoyer 811c04
 
Harald Hoyer 811c04
diff --git a/modules.d/90mdraid/65-md-incremental-imsm.rules b/modules.d/90mdraid/65-md-incremental-imsm.rules
Harald Hoyer 811c04
index c4334db..6dd696a 100644
Harald Hoyer 811c04
--- a/modules.d/90mdraid/65-md-incremental-imsm.rules
Harald Hoyer 811c04
+++ b/modules.d/90mdraid/65-md-incremental-imsm.rules
Harald Hoyer 811c04
@@ -6,6 +6,8 @@ ACTION!="add|change", GOTO="md_end"
Harald Hoyer 811c04
 SUBSYSTEM!="block", GOTO="md_end"
Harald Hoyer 811c04
 ENV{rd_NO_MD}=="?*", GOTO="md_end"
Harald Hoyer 811c04
 KERNEL=="md*", GOTO="md_end"
Harald Hoyer 811c04
+# Also don't process disks that are slated to be a multipath device
Harald Hoyer 811c04
+ENV{DM_MULTIPATH_DEVICE_PATH}=="?*", GOTO="md_end"
Harald Hoyer 811c04
 
Harald Hoyer 811c04
 ENV{ID_FS_TYPE}=="ddf_raid_member|isw_raid_member|linux_raid_member", GOTO="md_try"
Harald Hoyer 811c04
 GOTO="md_end"
Harald Hoyer 811c04
diff --git a/modules.d/95udev-rules/59-persistent-storage.rules b/modules.d/95udev-rules/59-persistent-storage.rules
Harald Hoyer 811c04
index b7d069b..f2756ee 100644
Harald Hoyer 811c04
--- a/modules.d/95udev-rules/59-persistent-storage.rules
Harald Hoyer 811c04
+++ b/modules.d/95udev-rules/59-persistent-storage.rules
Harald Hoyer 811c04
@@ -1,5 +1,7 @@
Harald Hoyer 811c04
 SUBSYSTEM!="block", GOTO="ps_end"
Harald Hoyer 811c04
 ACTION!="add|change", GOTO="ps_end"
Harald Hoyer 811c04
+# Also don't process disks that are slated to be a multipath device
Harald Hoyer 811c04
+ENV{DM_MULTIPATH_DEVICE_PATH}=="?*", GOTO="ps_end"
Harald Hoyer 811c04
 
Harald Hoyer 811c04
 KERNEL=="cciss[0-9]*", IMPORT{builtin}="blkid"
Harald Hoyer 811c04
 KERNEL=="nbd[0-9]*", IMPORT{builtin}="blkid"
Harald Hoyer 811c04
diff --git a/modules.d/95udev-rules/61-persistent-storage.rules b/modules.d/95udev-rules/61-persistent-storage.rules
Harald Hoyer 811c04
index 1136849..7dbd151 100644
Harald Hoyer 811c04
--- a/modules.d/95udev-rules/61-persistent-storage.rules
Harald Hoyer 811c04
+++ b/modules.d/95udev-rules/61-persistent-storage.rules
Harald Hoyer 811c04
@@ -1,5 +1,7 @@
Harald Hoyer 811c04
 SUBSYSTEM!="block", GOTO="pss_end"
Harald Hoyer 811c04
 ACTION!="add|change", GOTO="pss_end"
Harald Hoyer 811c04
+# Also don't process disks that are slated to be a multipath device
Harald Hoyer 811c04
+ENV{DM_MULTIPATH_DEVICE_PATH}=="?*", GOTO="pss_end"
Harald Hoyer 811c04
 
Harald Hoyer 811c04
 ACTION=="change", KERNEL=="dm-[0-9]*", ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}!="1", GOTO="do_pss"
Harald Hoyer 811c04
 KERNEL=="cciss[0-9]*", GOTO="do_pss"