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:
Rick Macklem
2025-08-22 13:24:25 -07:00
parent 9187f64a74
commit b5a18ea27f
+1 -1
View File
@@ -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;
}