All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: btrfs-devel@arbitraryconstant.com
Cc: linux-btrfs@vger.kernel.org
Subject: Re: btrfs device management
Date: Mon, 9 Jun 2008 02:43:58 -0400	[thread overview]
Message-ID: <20080609064358.GA27849@infradead.org> (raw)
In-Reply-To: <62325.68.145.107.21.1212882817.squirrel@avalon.arbitraryconstant.com>

On Sat, Jun 07, 2008 at 05:53:37PM -0600, btrfs-devel@arbitraryconstant.com wrote:
> Hello,
> 
> I've noticed one mounts btrfs filesystems by device name (eg /dev/sda1),
> even in a multi-device filesystem. I see there's a uuid for the filesystem
> in btrfs_super_block, so this is safe to do even if the devices change
> names in the future, but it's somewhat sub-optimal in that one's fstab
> won't necessarily continue to work. Even if the devices themselves have
> uuid's that get used in fstab, a given device could just as easily go away
> in the future.

You can mount by uuid, altough not yet a multi-device btrfs setup.

> I also see the standard Linux mount command is used here, and it's clearly
> designed around the assumption of a 1:1 relationship between block devices
> and filesystems, with multi-device stuff happening at another layer. One
> assumes the btrfs code in the kernel just grabs the uuid from that device
> and uses it to assemble the filesystem from whatever devices are also
> members.

It doesn't even automatically assemble all other devices.

> My question is: are there plans to support mounting by uuid of the
> filesystem directly, or by providing something like /dev/btrfs/XXXXX to
> make the mount command happy? Wherever this has been done in Linux to date
> (eg filesystems, software RAID, LVMs, etc) it's almost always been a good
> thing, it would be a step down to eg worry about what order drives were
> plugged in.

Yes, I plan to work on adding properly designed multiple device support
for btrfs and my upcoming similar xfs work.  I'll live in good old mount
and libvolume_id.


  parent reply	other threads:[~2008-06-09  6:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-07 23:53 btrfs device management btrfs-devel
2008-06-09  1:45 ` Chris Mason
2008-06-09  6:43 ` Christoph Hellwig [this message]
2008-06-09 10:06   ` Chris Mason
2008-06-09 13:45     ` Miguel Sousa Filipe
2008-06-09 13:52       ` Chris Mason
2008-06-09 15:37         ` Miguel Sousa Filipe
2008-06-09 16:19           ` Christian Hesse
2008-06-09 16:22             ` 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=20080609064358.GA27849@infradead.org \
    --to=hch@infradead.org \
    --cc=btrfs-devel@arbitraryconstant.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 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.