diff options
author | Gui Hecheng | 2014-06-05 04:02:51 +0200 |
---|---|---|
committer | Chris Mason | 2014-06-10 02:21:12 +0200 |
commit | c81d57679ee4b87a5b50e9afe4e5d1866d08b9ad (patch) | |
tree | 3aa34ebc64c9c1233752a01918f80c0c8f0baefd /fs | |
parent | trivial: fs/btrfs/ioctl.c: fix typo s/substract/subtract/ (diff) | |
download | kernel-qcow2-linux-c81d57679ee4b87a5b50e9afe4e5d1866d08b9ad.tar.gz kernel-qcow2-linux-c81d57679ee4b87a5b50e9afe4e5d1866d08b9ad.tar.xz kernel-qcow2-linux-c81d57679ee4b87a5b50e9afe4e5d1866d08b9ad.zip |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/dev-replace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/dev-replace.c b/fs/btrfs/dev-replace.c index 9f2290509aca..2af6e66fe788 100644 --- a/fs/btrfs/dev-replace.c +++ b/fs/btrfs/dev-replace.c @@ -313,7 +313,7 @@ int btrfs_dev_replace_start(struct btrfs_root *root, if (btrfs_fs_incompat(fs_info, RAID56)) { btrfs_warn(fs_info, "dev_replace cannot yet handle RAID5/RAID6"); - return -EINVAL; + return -EOPNOTSUPP; } switch (args->start.cont_reading_from_srcdev_mode) { |