Bug#501736: dmsetup: please prevent udev from creating /dev/dm-* nodes

Mario 'BitKoenig' Holbe Mario.Holbe at TU-Ilmenau.DE
Thu Oct 9 21:30:18 UTC 2008

Package: dmsetup
Version: 2:1.02.27-4
Severity: wishlist
Tags: patch


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>

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
File names are infinite in length where infinity is set to 255 characters.
                                -- Peter Collinson, "The Unix File System"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 65_dmsetup.rules.patch
Type: text/x-diff
Size: 502 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-lvm-maintainers/attachments/20081009/9179a761/attachment.patch 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 481 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-lvm-maintainers/attachments/20081009/9179a761/attachment.pgp 

More information about the pkg-lvm-maintainers mailing list