Re: [PATCH v3] btrfs-progs: filesystem-resize: make output more readable
From: David Sterba <hidden>
Date: 2021-02-19 18:14:37
From: David Sterba <hidden>
Date: 2021-02-19 18:14:37
On Fri, Feb 19, 2021 at 05:18:18PM +0000, Sidong Yang wrote:
This patch make output of filesystem-resize command more readable and give detail information for users. This patch provides more information about filesystem like below. Before: Resize '/mnt' of '1:-1G' After: Resize device id 1 (/dev/vdb) from 4.00GiB to 3.00GiB Signed-off-by: Sidong Yang <redacted>
Code-wise it looks good, but I tried a simple test and it does not work: # truncate -s 4g image # mkfs.btrfs image # mount -o loop image mnt # btrfs fi resize -1G mnt ERROR: cannot find devid: 0 while running the same command with the installed system 'btrfs' resizes the fs: "Resize '.' of '-1G'".