* [linux-lvm] Re: Bug#542422: dmsetup: I would like to have speaking device names back
[not found] <20090819145009.4865.25675.reportbug@swivel.zugschlus.de>
@ 2009-09-07 18:39 ` Bastian Blank
0 siblings, 0 replies; only message in thread
From: Bastian Blank @ 2009-09-07 18:39 UTC (permalink / raw)
To: Marc Haber, 542422, agk
[-- Attachment #1: Type: text/plain, Size: 989 bytes --]
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
[-- Attachment #2: diff --]
[-- Type: text/plain, Size: 536 bytes --]
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"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-09-07 18:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20090819145009.4865.25675.reportbug@swivel.zugschlus.de>
2009-09-07 18:39 ` [linux-lvm] Re: Bug#542422: dmsetup: I would like to have speaking device names back Bastian Blank
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).