2009-07-29 22:54:07 +00:00
|
|
|
---
|
|
|
|
multipath/Makefile | 4 ++--
|
|
|
|
multipath/multipath.rules | 13 +++++++------
|
|
|
|
2 files changed, 9 insertions(+), 8 deletions(-)
|
|
|
|
|
|
|
|
Index: multipath-tools-090724/multipath/Makefile
|
|
|
|
===================================================================
|
|
|
|
--- multipath-tools-090724.orig/multipath/Makefile
|
|
|
|
+++ multipath-tools-090724/multipath/Makefile
|
|
|
|
@@ -22,7 +22,7 @@ install:
|
2008-05-20 04:37:41 +00:00
|
|
|
$(INSTALL_PROGRAM) -d $(DESTDIR)$(bindir)
|
|
|
|
$(INSTALL_PROGRAM) -m 755 $(EXEC) mpath_wait $(DESTDIR)$(bindir)/
|
|
|
|
$(INSTALL_PROGRAM) -d $(DESTDIR)/etc/udev/rules.d
|
|
|
|
- $(INSTALL_PROGRAM) -m 644 multipath.rules $(DESTDIR)/etc/udev/rules.d/
|
|
|
|
+ $(INSTALL_PROGRAM) -m 644 multipath.rules $(DESTDIR)/etc/udev/rules.d/40-multipath.rules
|
|
|
|
$(INSTALL_PROGRAM) -d $(DESTDIR)$(mandir)
|
|
|
|
$(INSTALL_PROGRAM) -m 644 $(EXEC).8.gz $(DESTDIR)$(mandir)
|
|
|
|
$(INSTALL_PROGRAM) -d $(DESTDIR)$(man5dir)
|
2009-07-29 22:54:07 +00:00
|
|
|
@@ -32,7 +32,7 @@ install:
|
|
|
|
fi
|
2008-05-20 04:37:41 +00:00
|
|
|
|
|
|
|
uninstall:
|
|
|
|
- rm $(DESTDIR)/etc/udev/rules.d/multipath.rules
|
|
|
|
+ rm $(DESTDIR)/etc/udev/rules.d/40-multipath.rules
|
|
|
|
rm $(DESTDIR)$(bindir)/$(EXEC)
|
|
|
|
rm $(DESTDIR)$(bindir)/mpath_wait
|
|
|
|
rm $(DESTDIR)$(mandir)/$(EXEC).8.gz
|
2009-07-29 22:54:07 +00:00
|
|
|
Index: multipath-tools-090724/multipath/multipath.rules
|
|
|
|
===================================================================
|
|
|
|
--- multipath-tools-090724.orig/multipath/multipath.rules
|
|
|
|
+++ multipath-tools-090724/multipath/multipath.rules
|
2008-09-26 23:28:36 +00:00
|
|
|
@@ -1,7 +1,8 @@
|
2008-05-20 04:37:41 +00:00
|
|
|
-#
|
|
|
|
-# udev rules for multipathing.
|
|
|
|
-# The persistent symlinks are created with the kpartx rules
|
|
|
|
-#
|
|
|
|
-
|
|
|
|
-# socket for uevents
|
2009-05-06 20:01:01 +00:00
|
|
|
-SUBSYSTEM=="block", RUN+="socket:/org/kernel/dm/multipath_event"
|
2008-05-20 04:37:41 +00:00
|
|
|
+# multipath wants the devmaps presented as meaninglful device names
|
|
|
|
+# so name them after their devmap name
|
|
|
|
+SUBSYSTEM!="block", GOTO="end_mpath"
|
2009-05-06 20:01:01 +00:00
|
|
|
+RUN+="socket:/org/kernel/dm/multipath_event"
|
2008-05-20 04:37:41 +00:00
|
|
|
+KERNEL!="dm-[0-9]*", GOTO="end_mpath"
|
|
|
|
+PROGRAM!="/sbin/mpath_wait %M %m", GOTO="end_mpath"
|
|
|
|
+ACTION=="add", RUN+="/sbin/dmsetup ls --target multipath --exec '/sbin/kpartx -a -p p' -j %M -m %m"
|
|
|
|
+LABEL="end_mpath"
|