Re: [PATCH] btrfs: filter invalid arg for btrfs resize

2014-04-04 Thread David Sterba
On Mon, Mar 31, 2014 at 06:03:25PM +0800, Gui Hecheng wrote: 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. This should probably also go to stable@ Signed-off-by: Gui

[PATCH] btrfs: filter invalid arg for btrfs resize

2014-03-31 Thread Gui Hecheng
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.f...@cn.fujitsu.com --- fs/btrfs/ioctl.c | 5 +++-- 1 file changed, 3 insertions(+), 2