On Tue, Aug 14, 2012 at 8:21 AM, Fajar A. Nugraha <list@xxxxxxxxx> wrote: > On Tue, Aug 14, 2012 at 9:09 PM, cwillu <cwillu@xxxxxxxxxx> wrote: >>>> If I understand correctly, if I don't use LVM, then such move and resize >>>> operations can't be done for an online filesystem and it has more risk. >>> >>> You can resize, add, and remove devices from btrfs online without the >>> need for LVM. IIRC LVM has finer granularity though, you can do >>> something like "move only the first 10GB now, I'll move the rest >>> later". >> >> You can certainly resize the filesystem itself, but without lvm I >> don't believe you can resize the underlying partition online. > > I'm pretty sure you can do that with parted. At least, when your > version of parted is NOT 2.2. block/ioctl.c:blkdev_reread_part calls into block/partition-generic.c:rescan_partitions, which fails out early with EBUSY if block/partition-generic.c:drop_partitions sees a non-zero bdev->bd_part_count, which is a count of the open partition bdev's. Calvin mentions below that this may be changing shortly, but I'm going to claim to be right on this one. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
