On Tue, Apr 20, 2021 at 12:58:27PM +0800, Su Yue wrote:
Resize to nums without sign prefix makes false output:
btrfs fi resize 1:150g /srv/extra
Resize device id 1 (/dev/sdb1) from 298.09GiB to 0.00B
The resize operation would take effect though.
check_resize_args() does not handle the mod 0 case and new_size is 0.
Simply assigning @diff to @new_size to fix this.
Issue: #307
Reported-by: Chris Murphy <redacted>
Signed-off-by: Su Yue <redacted>
---
Changelog:
v3:
Just assign @diff to @new_size. (Boris Burkov)
Patch replaced in devel, thanks.