vfs_vnops.c: Change the error return from ENOSYS to EOPNOTSUPP
When the COPY_FILE_RANGE_CLONE flag argument is provided to
copy_file_range(2), it will return failure if block cloning
is not supported by the underlying file system.
This patch changes the errno returned for this failure from
ENOSYS to EOPNOTSUPP.
Suggested by: kib
Fixes: 37b2cb5ecb ("vfs: Add support for file cloning to VOP_COPY_FILE_RANGE")
This commit is contained in:
@@ -3444,7 +3444,7 @@ vn_generic_copy_file_range(struct vnode *invp, off_t *inoffp,
|
||||
dat = NULL;
|
||||
|
||||
if ((flags & COPY_FILE_RANGE_CLONE) != 0) {
|
||||
error = ENOSYS;
|
||||
error = EOPNOTSUPP;
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user