Re: [PATCH] btrfs-progs: fi resize: fix false 0.00B sized output

2021-04-19 Thread Su Yue
On Mon 19 Apr 2021 at 20:45, Su Yue wrote: Resize to nums without sign prefix makes false output: Resize device id 1 (/dev/sdb1) from 298.09GiB to 0.00B The resize operation would take effect though. Fix it by handling the case if mod is 0 in check_resize_args(). Issue: #307 Reported-by: C

[PATCH] btrfs-progs: fi resize: fix false 0.00B sized output

2021-04-19 Thread Su Yue
Resize to nums without sign prefix makes false output: Resize device id 1 (/dev/sdb1) from 298.09GiB to 0.00B The resize operation would take effect though. Fix it by handling the case if mod is 0 in check_resize_args(). Issue: #307 Reported-by: Chris Murphy Signed-off-by: Su Yue --- cmds/fil