[lvm-devel] [PATCH] fsadm: add support for btrfs

Ondrej Kozina okozina at redhat.com
Mon Mar 9 08:31:43 UTC 2015


On 03/09/2015 07:48 AM, Lidong Zhong wrote:
> Run `btrfs check` to check filesystem
> Run `btrfs filesystem show` to get the filesystem size and
> `btrfs filesystem resize` to resize.
>

Hi,

thank you for the patch but I'm afraid it is not correct. For example it 
doesn't seem to deal with the possibility of btrfs volume spanning 
across multiple block devices. You have to resize (meant with btrfs 
tools) specific subvolume to not to break the filesystem on LV about to 
get resized with lvresize.

I proposed similar patch before 
(http://www.redhat.com/archives/lvm-devel/2012-November/msg00052.html) 
but in the end came to conclusion it was not worth the pain considering 
the btrfs-check couldn't detect even elemental fs breakage. Is the state 
of btrfs-check tool better than what I described earlier in my patch header?

Kind regards
Ondrej

PS: The original patch is from 2012 so perhaps some of the magic I used 
to extract proper btrfs device id is useless as of now. At least I hope 
so...




More information about the lvm-devel mailing list