btrfs-progs: show meaningful msgs for replace cmd upon raid56
authorGui Hecheng <guihc.fnst@cn.fujitsu.com>
Thu, 5 Jun 2014 02:02:52 +0000 (10:02 +0800)
committerDavid Sterba <dsterba@suse.cz>
Fri, 22 Aug 2014 12:41:15 +0000 (14:41 +0200)
commit4da2751451ffa2757f11b8433fdf02c949c5e21e
treebaae6d6b623e1fa4ceab15523bfff8e50eaf55db
parent2da5099c6930fbd179a5cd8a72dc0688e07826de
btrfs-progs: show meaningful msgs for replace cmd upon raid56

This depends on the kernel patch:
[PATCH] btrfs:replace EINVAL with EOPNOTSUPP for dev_replace

This catches the EOPNOTSUPP and output msg that says dev_replace raid56
is not currently supported. Note that the msg will only be shown when
run dev_replace not in background.

Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
cmds-replace.c