linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Matt Brown <shadowfax@gmx.com>
To: linux-btrfs@vger.kernel.org
Subject: Mounting raid without a btrfsctl scan
Date: Sat, 15 May 2010 05:11:54 -0600	[thread overview]
Message-ID: <4BEE817A.7060604@gmx.com> (raw)

Hi,

Would it be possible and feasible to support mounting btrfs
raid/multi-device filesystems without having to run 'btrfsctl -a'?

Currently, as you may know, if a one wants to attach a btrfs raid
filesystem to a system (usb, hotswap, reboot, etc), the user or program
has to run:

btrfsctl -a (or similar)
mount /dev/sdb1 /mount/point

While this works, it will require patching of various subsystems
involved with managing disks, such as udev, mkinitrd, dracut, hal, and
others. Each one will have to know to scan, then mount.

For example, I have a system that has a btrfs raid1 as root. However, I
had to patch the boot loader (dracut) so during boot it would scan just
before mounting the root filesystem.

I filed a bug with dracut, but the more I think of it, the more it seems
that either mount.btrfs should be taking care of this, or another part
of btrfs.

Any thoughts or plans on the matter?

Thanks,
Matt


             reply	other threads:[~2010-05-15 11:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-15 11:11 Matt Brown [this message]
2010-05-15 14:36 ` Mounting raid without a btrfsctl scan Goffredo Baroncelli
2010-05-15 16:47   ` Sebastian 'gonX' Jensen
2010-05-16  0:02     ` Tomasz Torcz
2010-05-16  0:41       ` Sebastian 'gonX' Jensen
2010-05-16 18:44         ` Goffredo Baroncelli
2010-05-16 19:38           ` Sebastian 'gonX' Jensen

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=4BEE817A.7060604@gmx.com \
    --to=shadowfax@gmx.com \
    --cc=linux-btrfs@vger.kernel.org \
    /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).