Thread (3 messages) 3 messages, 3 authors, 2021-05-06

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

From: David Sterba <hidden>
Date: 2021-05-06 14:23:51

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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help