btrfs-progs icon indicating copy to clipboard operation
btrfs-progs copied to clipboard

`resize`: warn if resizing below 256m

Open kdave opened this issue 1 year ago • 0 comments

https://bugzilla.kernel.org/show_bug.cgi?id=118111 continued.

The lower limit for resizing is 256m and checked by kernel, but the error message is generic when printed from btrfs fi resize:

$ btrfs fi resize 120M mnt
Resize device id 1 (/dev/loop1) from 2.00GiB to 120.00MiB
ERROR: unable to resize 'mnt': Invalid argument

This needs to parse the resize string and check device size agains the absolute or diff size.

kdave avatar Aug 19 '24 13:08 kdave