[udev] rules files for event proxying and kpartx split (2)
authorChristophe Varoqui <cvaroqui@zezette.localdomain>
Tue, 5 Jun 2007 21:50:20 +0000 (23:50 +0200)
committerChristophe Varoqui <cvaroqui@zezette.localdomain>
Tue, 5 Jun 2007 21:50:20 +0000 (23:50 +0200)
So that multipathd can use the udev-provided socket for event listening
and kpartx can have a truly independent udev setup (think dmraid without
multipath case).

Hannes Reinecke, Suse.

kpartx/Makefile
multipath/multipath.rules

index a43f881..fd6ab8f 100644 (file)
@@ -39,6 +39,9 @@ $(MULTIPATHLIB)-$(BUILD).a:
 install: $(EXEC) $(EXEC).8
        install -d $(DESTDIR)$(bindir)
        install -s -m 755 $(EXEC) $(DESTDIR)$(bindir)
+       install -m 755 kpartx_id $(DESTDIR)$(bindir)
+       install -d $(DESTDIR)/etc/udev/rules.d
+       install -m 644 kpartx.rules $(DESTDIR)/etc/udev/rules.d/
        install -d $(DESTDIR)$(mandir)
        install -m 644 $(EXEC).8.gz $(DESTDIR)$(mandir)
 
index 10751ce..9d3579f 100644 (file)
@@ -1,18 +1,7 @@
 #
-# multipath and multipath partitions nodes are created in /dev/mapper/
-# this file should be installed in /etc/udev/rules.d
+# udev rules for multipathing.
+# The persistent symlinks are created with the kpartx rules
 #
-# !! udev must not discard DM events !!
-# !! check the other installed rules !!
-#
-
-# lookup the devmap name
-#ACTION=="add", SUBSYSTEM=="block", KERNEL=="dm-*", \
-#      PROGRAM="/sbin/devmap_name %M %m"
-ACTION=="add", SUBSYSTEM=="block", KERNEL=="dm-*", \
-       PROGRAM="/sbin/dmsetup -j %M -m %m --noopencount --noheadings -c -o name info"
-
-# take care of devmap partitioning
-ACTION=="add", SUBSYSTEM=="block", KERNEL=="dm-*", \
-       RUN+="/sbin/kpartx -a /dev/mapper/%c"
 
+# socket for uevents
+RUN+="socket:/org/kernel/dm/multipath_event"