Package: dmsetup Version: 2:1.02.27-4 Severity: wishlist Tags: patch Hello,
while dmsetup creates /dev/mapper/<name> device nodes (itself? I think
it does it itself), udev creates /dev/dm-<minor> nodes which are exposed
to the user (via df, for example) when filesystems are mounted via
LABEL= or UUID= ... this is because findfs returns the /dev/dm-<minor>
node.
This can be suppressed by telling udev a different device NAME, in which
case findfs returns the descriptive node.
Patch attached.
Perhaps... for backward compatibility one could additionally
SYMLINK+="%k". Don't know if this is really needed, since the dm-<minor>
nodes are quite dynamic anyways.
Thanks for your work & regards
Mario
--
File names are infinite in length where infinity is set to 255 characters.
-- Peter Collinson, "The Unix File System"
--- /etc/udev/rules.d/65_dmsetup.rules.orig 2008-10-01 19:05:55.000000000 +0200
+++ /etc/udev/rules.d/65_dmsetup.rules 2008-10-09 23:22:23.000000000 +0200
@@ -16,6 +16,9 @@
ENV{DM_STATE_ACTIVE}!="?*", GOTO="device_mapper_end"
ENV{DM_TARGET_TYPES}=="|*error*", GOTO="device_mapper_end"
+# Suppress creation of /dev/dm-* nodes, dmsetup creates /dev/mapper/name nodes.
+KERNEL=="dm-*", NAME="mapper/$env{DM_NAME}"
+
IMPORT{program}="vol_id --export $tempnode"
OPTIONS+="link_priority=-100"
signature.asc
Description: Digital signature

