Bug#542422: dmsetup: I would like to have speaking device names back

Bastian Blank waldi at debian.org
Wed Aug 19 15:15:13 UTC 2009


On Wed, Aug 19, 2009 at 04:50:09PM +0200, Marc Haber wrote:
> Since the last update, my crypto devices are recognized by the system as
> /dev/dm-xx, for example in fsck and in df's output:
> /dev/dm-15             12G   11G  565M  96% /mnt/home
> /dev/dm-13            7,9G  7,0G  532M  94% /mnt/usr
> /dev/dm-14            3,0G  1,4G  1,5G  50% /mnt/var
> 
> lrwxrwxrwx  1 root root      8 19. Aug 09:06 home -> ../dm-15
> lrwxrwxrwx  1 root root      8 19. Aug 09:06 usr -> ../dm-13
> lrwxrwxrwx  1 root root      8 19. Aug 09:06 var -> ../dm-14
> 
> I'd like them to show up as /dev/mapper/home, /dev/mapper/usr and
> /dev/mapper/var again.

This means that the real devices needs to be named this way as mount
always dereferences symlinks.

Patch which does this against the Debian package is attached.

Alasdair: Does Red Hat solve that problem somehow?

Bastian

-- 
Humans do claim a great deal for that particular emotion (love).
		-- Spock, "The Lights of Zetar", stardate 5725.6
-------------- next part --------------
Index: debian/contrib/dmsetup/lib/udev/rules.d/55-dm.rules
===================================================================
--- debian/contrib/dmsetup/lib/udev/rules.d/55-dm.rules	(revision 711)
+++ debian/contrib/dmsetup/lib/udev/rules.d/55-dm.rules	(working copy)
@@ -39,6 +39,6 @@
 ENV{DM_SUSPENDED}=="Active", ENV{DM_SUSPENDED}="0"
 ENV{DM_SUSPENDED}=="Suspended", ENV{DM_SUSPENDED}="1"
 
-ENV{DM_NAME}=="?*", SYMLINK+="mapper/$env{DM_NAME}"
+ENV{DM_NAME}=="?*", NAME="mapper/$env{DM_NAME}", SYMLINK+="$kernel"
 
 LABEL="dm_end"


More information about the pkg-lvm-maintainers mailing list