public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Chris Mason <chris.mason@oracle.com>
To: Kay Sievers <kay.sievers@vrfy.org>
Cc: linux-btrfs@vger.kernel.org, Greg <greg@kroah.com>
Subject: Re: btrfs and hotplug, auto-assembly, auto-setup, ...
Date: Wed, 10 Dec 2008 20:30:14 -0500	[thread overview]
Message-ID: <1228959014.21376.6.camel@think.oraclecorp.com> (raw)
In-Reply-To: <ac3eb2510812091002g7d7c163am55f44b188dea0ef6@mail.gmail.com>

On Tue, 2008-12-09 at 19:02 +0100, Kay Sievers wrote:
> Hey,
> I thought it would be a good time good to play around a bit with btrfs
> in the usual hotplug setup, so we can - if needed - adapt things
> before it is going to be finalized.
> 

Thanks a lot for looking at this.

> At a first look, it looks very promising, and I really like the idea
> that the state of the (possibly incomplete) device tree is kept in the
> kernel, and not somewhere in a file in userspace, like we usually see
> for all sorts of multi-volume/multi-device setups. It should make
> things much easier as usual.
> 

I hope so, at least its the only way I can keep my brain wrapped around
it.

> Like with every other subsystem, people will expect btrfs to just work
> with hotpluggable devices, without much configuration and explicit
> setup after device connect. To assemble a mountable volume, we will
> need to find the (possibly several independent) devices containing the
> btrfs data.

I did somewhat have hotplug in mind, there is btrfsctl -a to scan all
of /dev and btrfsctl -A to scan a single device.

[ ...]

Now that I have something close to a stable super block location and
magic, I think the plan below is pretty good.  The majority of my plan
here was to make a simple ioctl that hotplug could trigger, and let
someone who knew hotplug better make suggetions on the best way to
present the information.

-chris



  reply	other threads:[~2008-12-11  1:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-09 18:02 btrfs and hotplug, auto-assembly, auto-setup, Kay Sievers
2008-12-11  1:30 ` Chris Mason [this message]
2008-12-11  2:08   ` Kay Sievers
2008-12-11 13:14     ` Chris Mason

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=1228959014.21376.6.camel@think.oraclecorp.com \
    --to=chris.mason@oracle.com \
    --cc=greg@kroah.com \
    --cc=kay.sievers@vrfy.org \
    --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