btrfs-progs: fix improper error prompt for defragment
authorGui Hecheng <guihc.fnst@cn.fujitsu.com>
Wed, 11 Dec 2013 09:27:46 +0000 (17:27 +0800)
committerChris Mason <clm@fb.com>
Fri, 31 Jan 2014 16:22:13 +0000 (08:22 -0800)
commitd9d970451024709bdff71bf20b99843a132c195d
tree64a312109aa739e889d1f93ebd0161b882518391
parentd47b4e4dd284a7668b517671d4dd5de35e8a912d
btrfs-progs: fix improper error prompt for defragment

The error msg:
"ERROR: defrag range ioctl not supported in this kernel,
 please try without any options."
should only show up when failing to do a range defraging,
not upon non-range defraging.

Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
cmds-filesystem.c