mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Kyle Moffett <mrmacman_g4@mac.com>
To: Alasdair G Kergon <agk@redhat.com>
Cc: "Jun'ichi Nomura" <j-nomura@ce.jp.nec.com>,
	Neil Brown <neilb@suse.de>, Lars Marowsky-Bree <lmb@suse.de>,
	device-mapper development <dm-devel@redhat.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/3] sysfs representation of stacked devices (dm/md)
Date: Sat, 18 Feb 2006 01:06:01 -0500	[thread overview]
Message-ID: <DEEF4650-99AF-4905-A291-453C2664A1B5@mac.com> (raw)
In-Reply-To: <20060217194249.GO12169@agk.surrey.redhat.com>

On Feb 17, 2006, at 14:42, Alasdair G Kergon wrote:
> On Fri, Feb 17, 2006 at 01:00:17PM -0500, Jun'ichi Nomura wrote:
>> Though md0, dm-0, dm-1 and sd[a-d] contain same LVM2 meta data,  
>> LVM2 should pick up md0 as PV, not dm-0, dm-1 and sdXs. mdadm  
>> should build md0 from dm-0 and dm-1, not from sdXs. Similar things  
>> will happen on 'mount' and 'fsck' if we use file system labels  
>> instead of LVM2.
>
> I can't speak for the 'mount' code base, but I don't think it'll  
> make any significant difference to LVM2 - we'd still have to do all  
> the same device scanning as we do now because we have to be aware  
> of md devices defined in on-disk metadata regardless of whether or  
> not the kernel knows about them at the time the command is run.

Aha!  This is a very valid reason why we should export partition  
types from the kernel to userspace:  Partitions/devices that appear  
to have 2 different filesystems/formats.  The _kernel_ cannot  
reliably tell which to use.  On the other hand, a properly configured  
_userspace_ initramfs could use configured partition-type  
information, a small config file, and a user-configurable detection  
algorithm to figure out that the device is _actually_ the first  
segment of an ext3-on-LVM-on-RAID1, instead of a raw ext3, and mount  
it appropriately.  Now, this requires that the admin correctly  
specify the partition types, but that seems a bit more reliable than  
depending on the probe-order to get things right.

Cheers,
Kyle Moffett

--
Unix was not designed to stop people from doing stupid things,  
because that would also stop them from doing clever things.
   -- Doug Gwyn



  parent reply	other threads:[~2006-02-18  6:06 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-17 18:00 Jun'ichi Nomura
2006-02-17 18:01 ` [PATCH 1/3] sysfs representation of stacked devices (dm/md common) Jun'ichi Nomura
2006-02-17 18:44   ` Alasdair G Kergon
2006-02-18  1:03     ` Jun'ichi Nomura
2006-02-18 19:50       ` Alasdair G Kergon
2006-02-21 15:33         ` Jun'ichi Nomura
2006-02-21 15:52           ` Alasdair G Kergon
2006-02-17 18:03 ` [PATCH 2/3] sysfs representation of stacked devices (dm) Jun'ichi Nomura
2006-02-17 18:05 ` [PATCH 3/3] sysfs representation of stacked devices (md) Jun'ichi Nomura
2006-02-17 19:42 ` [PATCH 0/3] sysfs representation of stacked devices (dm/md) Alasdair G Kergon
2006-02-18  1:21   ` Jun'ichi Nomura
2006-02-18 19:53     ` Alasdair G Kergon
2006-02-21 15:34       ` Jun'ichi Nomura
2006-02-18  6:06   ` Kyle Moffett [this message]
2006-02-19 22:04 ` Neil Brown

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=DEEF4650-99AF-4905-A291-453C2664A1B5@mac.com \
    --to=mrmacman_g4@mac.com \
    --cc=agk@redhat.com \
    --cc=dm-devel@redhat.com \
    --cc=j-nomura@ce.jp.nec.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lmb@suse.de \
    --cc=neilb@suse.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

all inboxes | Powered by JetHome®