btrfs: filter invalid arg for btrfs resize
authorGui Hecheng <guihc.fnst@cn.fujitsu.com>
Mon, 31 Mar 2014 10:03:25 +0000 (18:03 +0800)
committerChris Mason <clm@fb.com>
Mon, 7 Apr 2014 16:08:45 +0000 (09:08 -0700)
commit9a40f1222a372de77344d85d31f8fe0e1c0e60e7
tree0f4e9fff808aba25e7f9a0b30543b697102b1395
parent766b5e5ae78dd04a93a275690a49e23d7dcb1f39
btrfs: filter invalid arg for btrfs resize

Originally following cmds will work:
# btrfs fi resize -10A  <mnt>
# btrfs fi resize -10Gaha <mnt>
Filter the arg by checking the return pointer of memparse.

Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/ioctl.c