Index: trunk/packages/sipb-xen-clvm-config/debian/changelog
===================================================================
--- trunk/packages/sipb-xen-clvm-config/debian/changelog	(revision 502)
+++ trunk/packages/sipb-xen-clvm-config/debian/changelog	(revision 503)
@@ -1,2 +1,9 @@
+sipb-xen-clvm-config (2.0) unstable; urgency=low
+
+  * Depend on multipath-tools because we're going to want it
+  * Fix multipath-tools' udev script because it's horribly broken
+
+ -- Evan Broder <broder@mit.edu>  Mon,  5 May 2008 03:35:00 -0400
+
 sipb-xen-clvm-config (1.2) unstable; urgency=low
 
Index: trunk/packages/sipb-xen-clvm-config/debian/control
===================================================================
--- trunk/packages/sipb-xen-clvm-config/debian/control	(revision 502)
+++ trunk/packages/sipb-xen-clvm-config/debian/control	(revision 503)
@@ -8,5 +8,5 @@
 Package: sipb-xen-clvm-config
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, clvm, cman, ccs
+Depends: ${shlibs:Depends}, ${misc:Depends}, clvm, cman, ccs, multipath-tools
 Provides: ${diverted-files}
 Conflicts: ${diverted-files}
Index: trunk/packages/sipb-xen-clvm-config/debian/control.in
===================================================================
--- trunk/packages/sipb-xen-clvm-config/debian/control.in	(revision 502)
+++ trunk/packages/sipb-xen-clvm-config/debian/control.in	(revision 503)
@@ -8,5 +8,5 @@
 Package: sipb-xen-clvm-config
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, clvm, cman, ccs
+Depends: ${shlibs:Depends}, ${misc:Depends}, clvm, cman, ccs, multipath-tools
 Provides: ${diverted-files}
 Conflicts: ${diverted-files}
Index: trunk/packages/sipb-xen-clvm-config/debian/rules
===================================================================
--- trunk/packages/sipb-xen-clvm-config/debian/rules	(revision 502)
+++ trunk/packages/sipb-xen-clvm-config/debian/rules	(revision 503)
@@ -4,5 +4,6 @@
 DEB_DIVERT_EXTENSION = .sipb-xen
 DEB_DIVERT_FILES_sipb-xen-clvm-config += \
-	/etc/lvm/lvm.conf.sipb-xen
+	/etc/lvm/lvm.conf.sipb-xen \
+	/etc/udev/multipath.rules.sipb-xen
 
 include /usr/share/cdbs/1/rules/debhelper.mk
Index: trunk/packages/sipb-xen-clvm-config/files/etc/udev/multipath.rules.sipb-xen
===================================================================
--- trunk/packages/sipb-xen-clvm-config/files/etc/udev/multipath.rules.sipb-xen	(revision 503)
+++ trunk/packages/sipb-xen-clvm-config/files/etc/udev/multipath.rules.sipb-xen	(revision 503)
@@ -0,0 +1,12 @@
+#
+# multipath and multipath partitions nodes are created in /dev/mapper/
+# this file should be installed in /etc/udev/rules.d
+#
+
+# take care of devmap partitioning
+ACTION=="add", SUBSYSTEM=="block", KERNEL=="dm-*", \
+	PROGRAM="/sbin/dmsetup -j %M -m %m status", \
+	RESULT=="*multipath*", \
+	PROGRAM="/sbin/dmsetup -j %M -m %m --noopencount --noheadings -c -o name info", \
+	RUN+="/sbin/kpartx -a /dev/mapper/%c"
+
