Linux Device Mapper development
 help / color / mirror / Atom feed
From: Phillip Susi <psusi@cfl.rr.com>
To: device-mapper development <dm-devel@redhat.com>
Subject: Differentiating between dm devices
Date: Wed, 23 Mar 2011 13:30:59 -0400	[thread overview]
Message-ID: <4D8A2E53.10401@cfl.rr.com> (raw)

There are different classes of dm devices that different utilities may
or may not care about.  Some are intended to represent whole disks (
dmraid ) that can be partitioned.  Some ARE partitions and should
contain filesystems.  Still others are used only internally by the tools
( -real, -cow for lvm, and raid10 subvolumes for dmraid ).  I can not
find any good way to differentiate between these types.

One way of fixing this is to add a new attribute to the device where the
tools creating them can specify a hint about what they are and how they
should be used.  Another way is to embed that information in the UUID.
For instance, logical volumes have UUIDs that start with "LVM-" and
dmraid disks start with "DMRAID-".  Perhaps dmraid partitions could have
their uuids changed to "DMRAIDP-" and internal devices changed to
"DMRAIDI-" and "LVMI-" for dmraid and lvm respectively.

Which of these ways sounds best, or is there a better one I have not
thought of?

             reply	other threads:[~2011-03-23 17:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-23 17:30 Phillip Susi [this message]
2011-03-24  7:23 ` Differentiating between dm devices Hannes Reinecke
2011-03-24  8:32   ` Milan Broz
2011-03-25 18:34     ` Phillip Susi

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=4D8A2E53.10401@cfl.rr.com \
    --to=psusi@cfl.rr.com \
    --cc=dm-devel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox