Bug#498838: Please set link priority to 100 for dmraid devmapper devices
Package: devmapper
Severity: normal
Tags: patch
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
The attachment is a merged patch from Ubuntu.
For the complete resolution of #497110, and an improved dmraid support,
devmapper needs this trivial patch.
Giuseppe.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkjL6GoACgkQNxpp46476arB6ACfcSyO9wFQeI6ho+YjtUknM85y
pDcAoIiLS+KYweHjSvClj1il142WGDLa
=MDA0
-----END PGP SIGNATURE-----
diff -u devmapper-1.02.27/debian/dmsetup.udev devmapper-1.02.27/debian/dmsetup.udev
--- devmapper-1.02.27/debian/dmsetup.udev
+++ devmapper-1.02.27/debian/dmsetup.udev
@@ -19,6 +19,7 @@
IMPORT{program}="vol_id --export $tempnode"
OPTIONS+="link_priority=-100"
+ENV{DM_UUID}=="DMRAID-*", OPTIONS="link_priority=100"
ENV{DM_TARGET_TYPES}=="*snapshot-origin*", OPTIONS+="link_priority=-90"
ENV{ID_FS_UUID_ENC}=="?*", ENV{ID_FS_USAGE}=="filesystem|other|crypto", \
diff -u devmapper-1.02.27/debian/changelog devmapper-1.02.27/debian/changelog
--- devmapper-1.02.27/debian/changelog
+++ devmapper-1.02.27/debian/changelog
@@ -1,3 +1,13 @@
+devmapper (2:1.02.27-3.1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * debian/dmsetup.udev: Set link priority to 100 for devmapper devices that
+ have an UUID starting with DMRAID- for dmraid devmapper devices, to
+ prevent UUIDs being used to mount hard disk partitions rather than the
+ array itself.
+
+ -- Giuseppe Iuculano <giuseppe@iuculano.it> Sat, 06 Sep 2008 18:57:38 +0200
+
devmapper (2:1.02.27-3) unstable; urgency=low
* Fix junp to undefined label in udev rules. (closes: #491107)
Reply to: