|
@@ -1573,7 +1573,7 @@ static noinline int btrfs_ioctl_snap_create_transid(struct file *file,
|
|
|
if (src_inode->i_sb != file_inode(file)->i_sb) {
|
|
|
btrfs_info(BTRFS_I(src_inode)->root->fs_info,
|
|
|
"Snapshot src from another FS");
|
|
|
- ret = -EINVAL;
|
|
|
+ ret = -EXDEV;
|
|
|
} else if (!inode_owner_or_capable(src_inode)) {
|
|
|
/*
|
|
|
* Subvolume creation is not restricted, but snapshots
|