]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: replace EINVAL with EOPNOTSUPP for dev_replace raid56
authorGui Hecheng <guihc.fnst@cn.fujitsu.com>
Thu, 5 Jun 2014 02:02:51 +0000 (10:02 +0800)
committerChris Mason <clm@fb.com>
Tue, 10 Jun 2014 00:21:12 +0000 (17:21 -0700)
commit722099b27209feb446c0ec899d68690a32cb32a4
tree3aa34ebc64c9c1233752a01918f80c0c8f0baefd
parent7948b53e70ad0fd583f6eee43620b34636205ba1
btrfs: replace EINVAL with EOPNOTSUPP for dev_replace raid56

To return EOPNOTSUPP is more user friendly than to return EINVAL,
and then user-space tool will show that the dev_replace operation
for raid56 is not currently supported rather than showing that
there is an invalid argument.

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