mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-04 13:21:45 +00:00
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>
This commit is contained in:
parent
9391558411
commit
c81d57679e
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue