All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Linda A. Walsh" <lvm@tlinx.org>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: [linux-lvm] dmsetup -split is buggy
Date: Mon, 15 Aug 2011 02:34:20 -0700	[thread overview]
Message-ID: <4E48E81C.9040504@tlinx.org> (raw)




I'm told that /dev/VG/LV is the official LVM syntax for a devname,

so I passed a /dev/VG/LV, name to LVM, and it mangled the LV name,
splitting it into a LVLayer.




I gave it:

/dev/Home+Space/Home-2011.08.08-03.29.58


Which corresponds to a /home/snapdir/@GMT-2011.08.08-03.29.58
(@GMT-date-time is a required name format), so my volumes
for such snapdirs have the base-LV and the date-time.


There is nothing in the lvm spec that or device name spec, that says
"-" is to be interpreted as some layer.... 

The problem is that when this routine gets a device name, it might be
/dev/mapper/<encoded value>
or /dev/VG/LV

dmsetup splitname, should, I believe, know how to split
names in the only 'supported' name format  i.e. /dev/VG/LV -- but
instead, it's treating it as though it were under /dev/mapper and using 
that for
decoding...

I can hack around the bug, but its surprising that dmsetup doesn't support
the only official LVM names (/dev/VG/LV).

Is this bug a 'feature', or is it something that should be fixed?

             reply	other threads:[~2011-08-15  9:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-15  9:34 Linda A. Walsh [this message]
2011-08-15 10:09 ` [linux-lvm] dmsetup -split is buggy Stephane Chazelas
2011-08-15 11:30 ` Peter Rajnoha

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=4E48E81C.9040504@tlinx.org \
    --to=lvm@tlinx.org \
    --cc=linux-lvm@redhat.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.