btrfs-progs/cmds
Su Yue 31934b1161 btrfs-progs: fi resize: fix false 0.00B size output
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.

Fix it by handling the case if mod is 0 in check_resize_args().

Issue: #307
Reported-by: Chris Murphy <lists@colorremedies.com>
Reviewed-by: Boris Burkov <boris@bur.io>
Signed-off-by: Su Yue <l@damenly.su>
Signed-off-by: David Sterba <dsterba@suse.com>
2021-05-06 16:41:44 +02:00
..
balance.c btrfs-progs: balance: fix raid56 warning for other profiles 2021-03-23 17:04:22 +01:00
commands.h btrfs-progs: help: define helper for command with flags 2019-07-03 20:49:04 +02:00
device.c btrfs-progs: build: fix linking with static libmount 2021-01-25 23:31:56 +01:00
filesystem-du.c btrfs-progs: fix short/long unit size options 2020-12-16 17:08:52 +01:00
filesystem-usage.c btrfs-progs: a bunch of typo fixes 2021-01-13 22:33:10 +01:00
filesystem-usage.h btrfs-progs: move all cmds-fi*.c to cmds/ 2019-07-03 20:49:03 +02:00
filesystem.c btrfs-progs: fi resize: fix false 0.00B size output 2021-05-06 16:41:44 +02:00
inspect-dump-super.c btrfs-progs: move ctree.c to kernel-shared/ 2020-08-31 17:01:05 +02:00
inspect-dump-tree.c btrfs-progs: factor open_ctree parameters to a structure 2021-03-24 22:20:19 +01:00
inspect-tree-stats.c btrfs-progs: move volumes.c to kernel-shared/ 2020-08-31 17:01:06 +02:00
inspect.c btrfs-progs: inspect: use find_mount_fsroot in logical-resolve 2021-01-18 17:49:22 +01:00
property.c btrfs-progs: move ctree.c to kernel-shared/ 2020-08-31 17:01:05 +02:00
qgroup.c btrfs-progs: build: fix linking with static libmount 2021-01-25 23:31:56 +01:00
quota.c btrfs-progs: move ctree.c to kernel-shared/ 2020-08-31 17:01:05 +02:00
receive-dump.c btrfs-progs: move send-utils.c to common/ 2020-08-31 17:01:04 +02:00
receive-dump.h btrfs-progs: move send-dump.c to cmds/receive-dump.c 2020-08-31 17:01:04 +02:00
receive.c btrfs-progs: receive: remove workaround for setting capabilities 2021-02-19 15:18:39 +01:00
replace.c btrfs-progs: fix return code for failed replace start 2021-02-19 19:58:01 +01:00
rescue-chunk-recover.c btrfs-progs: pass in fs_info to btrfs_csum_data 2021-03-24 22:20:19 +01:00
rescue-super-recover.c btrfs-progs: move volumes.c to kernel-shared/ 2020-08-31 17:01:06 +02:00
rescue.c btrfs-progs: factor open_ctree parameters to a structure 2021-03-24 22:20:19 +01:00
rescue.h btrfs-progs: super-recover: add global verbose option 2020-06-12 19:31:37 +02:00
restore.c btrfs-progs: factor open_ctree parameters to a structure 2021-03-24 22:20:19 +01:00
scrub.c btrfs-progs: fix short/long unit size options 2020-12-16 17:08:52 +01:00
send.c btrfs-progs: send: fix crash on unknown option 2021-01-13 22:33:09 +01:00
subvolume.c btrfs-progs: subvol set-default: change id to 5 if specified as 0 2021-01-18 17:49:23 +01:00