diff options
Diffstat (limited to '0010-RH-multipath-rules-udev-changes.patch')
-rw-r--r-- | 0010-RH-multipath-rules-udev-changes.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/0010-RH-multipath-rules-udev-changes.patch b/0010-RH-multipath-rules-udev-changes.patch new file mode 100644 index 0000000..325e26e --- /dev/null +++ b/0010-RH-multipath-rules-udev-changes.patch @@ -0,0 +1,37 @@ +From 5a43356b54c2672441ce67cd9602904a5df04117 Mon Sep 17 00:00:00 2001 +From: Fabio M. Di Nitto <fdinitto@redhat.com> +Date: Mon, 19 Oct 2009 07:07:01 +0200 +Subject: [PATCH 10/12] RH: multipath rules + udev changes + +Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com> +--- +:100644 100644 ac97749... 064196d... M multipath/multipath.rules + multipath/multipath.rules | 18 +++++++++++------- + 1 files changed, 11 insertions(+), 7 deletions(-) + +diff --git a/multipath/multipath.rules b/multipath/multipath.rules +index ac97749..064196d 100644 +--- a/multipath/multipath.rules ++++ b/multipath/multipath.rules +@@ -1,7 +1,11 @@ +-# +-# udev rules for multipathing. +-# The persistent symlinks are created with the kpartx rules +-# +- +-# socket for uevents +-SUBSYSTEM=="block", RUN+="socket:/org/kernel/dm/multipath_event" ++# multipath wants the devmaps presented as meaninglful device names ++# so name them after their devmap name ++SUBSYSTEM!="block", GOTO="end_mpath" ++RUN+="socket:/org/kernel/dm/multipath_event" ++KERNEL!="dm-*", GOTO="end_mpath" ++ACTION!="change", GOTO="end_mpath" ++ENV{DM_SUSPENDED}=="1", GOTO="end_mpath" ++ENV{DM_UUID}!="mpath-?*", GOTO="end_mpath" ++ENV{DM_ACTION}=="PATH_FAILED", GOTO="end_mpath" ++RUN+="/sbin/kpartx -a -p p $tempnode" ++LABEL="end_mpath" +-- +1.6.5.1 + |