All of lore.kernel.org
 help / color / mirror / Atom feed
* btrfs device management
@ 2008-06-07 23:53 btrfs-devel
  2008-06-09  1:45 ` Chris Mason
  2008-06-09  6:43 ` Christoph Hellwig
  0 siblings, 2 replies; 9+ messages in thread
From: btrfs-devel @ 2008-06-07 23:53 UTC (permalink / raw)
  To: linux-btrfs

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.

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.

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.

Thanks for any responses. :)

Cheers,

-Anthony


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-06-09 16:22 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-07 23:53 btrfs device management btrfs-devel
2008-06-09  1:45 ` Chris Mason
2008-06-09  6:43 ` Christoph Hellwig
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

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.