btrfs-progs: Accurate errormsg for resize operation on no-enouth-free-space case
authorZhao Lei <zhaolei@cn.fujitsu.com>
Wed, 22 Jul 2015 07:58:06 +0000 (15:58 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 31 Aug 2015 17:25:09 +0000 (19:25 +0200)
commite16cb7cb53e0cf36d918b1e018402d2226c602ec
tree37cd7a51dfd86cf530d3e00d442e5172124b1228
parentef433bb08388461ec551188705820ca4d26832b5
btrfs-progs: Accurate errormsg for resize operation on no-enouth-free-space case

btrfs progs output following error message when doing resize on
no-enouth-free-space case:
 # btrfs filesystem resize +10g /mnt/btrfs_5gb
 Resize '/mnt/btrfs_5gb' of '+10g'
 ERROR: unable to resize '/mnt/btrfs_5gb' - File too large
 #

It is not a good description for users, and this patch changed it to:
 # ./btrfs filesystem resize +10G /mnt/tmp1
 Resize '/mnt/tmp1' of '+10G'
 ERROR: unable to resize '/mnt/tmp1' - no enouth free space
 #

Reported-by: Taeha Kim <kthguru@gmail.com>
Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-filesystem.c