From: Bastian Blank <waldi@debian.org>
To: Marc Haber <mh+debian-bugs@zugschlus.de>,
542422@bugs.debian.org, agk@redhat.com
Subject: [linux-lvm] Re: Bug#542422: dmsetup: I would like to have speaking device names back
Date: Mon, 07 Sep 2009 18:39:17 -0000 [thread overview]
Message-ID: <20090819151513.GA23929@wavehammer.waldi.eu.org> (raw)
In-Reply-To: <20090819145009.4865.25675.reportbug@swivel.zugschlus.de>
[-- 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"
parent reply other threads:[~2009-09-07 18:39 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <20090819145009.4865.25675.reportbug@swivel.zugschlus.de>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090819151513.GA23929@wavehammer.waldi.eu.org \
--to=waldi@debian.org \
--cc=542422@bugs.debian.org \
--cc=agk@redhat.com \
--cc=linux-lvm@redhat.com \
--cc=mh+debian-bugs@zugschlus.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).