SOURCES: multipath-tools-kpartx-udev.patch (NEW) - dmsetup export ...

glen glen at pld-linux.org
Fri Oct 26 13:50:19 CEST 2007


Author: glen                         Date: Fri Oct 26 11:50:19 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- dmsetup export for rules
- keep default partition suffix for partitions

---- Files affected:
SOURCES:
   multipath-tools-kpartx-udev.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/multipath-tools-kpartx-udev.patch
diff -u /dev/null SOURCES/multipath-tools-kpartx-udev.patch:1.1
--- /dev/null	Fri Oct 26 13:50:19 2007
+++ SOURCES/multipath-tools-kpartx-udev.patch	Fri Oct 26 13:50:14 2007
@@ -0,0 +1,24 @@
+--- kpartx.rules	2007-08-03 00:05:37.000000000 +0300
++++ /tmp/kpartx.rules	2007-10-26 01:16:10.000000000 +0300
+@@ -7,6 +7,9 @@
+ KERNEL!="dm-*", GOTO="kpartx_end"
+ ACTION=="remove", GOTO="kpartx_end"
+ 
++IMPORT{program}="/sbin/dmsetup export -j%M -m%m"
++ENV{DM_NAME}!="?*", GOTO="kpartx_end"
++
+ ENV{DM_TABLE_STATE}!="LIVE", GOTO="kpartx_end"
+ 
+ ENV{DM_UUID}=="?*", IMPORT{program}=="/lib/udev/kpartx_id %M %m $env{DM_UUID}"
+@@ -27,9 +30,9 @@
+ 
+ # Create dm tables for partitions
+ ENV{DM_STATE}=="ACTIVE", ENV{DM_UUID}=="mpath-*", \
+-        RUN+="/sbin/kpartx -a -p -part /dev/$kernel"
++        RUN+="/sbin/kpartx -a /dev/$kernel"
+ ENV{DM_STATE}=="ACTIVE", ENV{DM_UUID}=="dmraid-*", \
+-        RUN+="/sbin/kpartx -a -p -part /dev/$kernel"
++        RUN+="/sbin/kpartx -a /dev/$kernel"
+ 
+ LABEL="kpartx_end"
+ 
================================================================


More information about the pld-cvs-commit mailing list