Re: multiple device usage

Chris Mason
2008-12-30T21:43:01Z

On Mon, 2008-12-29 at 20:35 +0800, Yan Zheng wrote:
> 2008/12/29 Roland <devzero@web.de>:
> >>> so i can do btrfs-vol -r /dev/sdb while it`s being mounted, pull the disk
> >>> ,
> >>> replace it with a bigger one, rescan-scsi-bus, mkfs.btrfs the new disk
> >>> and
> >>
> >> ~~~~~~~~~~~~~~~~~~~~~~~
> >> This step will fail, you
> >> will
> >> get a "/dev/sdb is mounted" by mkfs.btrfs, but for other slots it's ok.
> >
> > isn`t this sort of a design issue then?
> > no way to work around this ?
> >
>
> No, this is a (easy to fix) bug.

Right, the check for a mounted FS came after we made the device
add/removal work ;) mkfs.btrfs should be changed to do the mounted FS
check differently.

-chris