summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/syscall.c
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2020-05-06 17:36:20 +0530
committerhari gowtham <hari.gowtham005@gmail.com>2020-05-26 09:36:12 +0000
commitb04de77523dbd156d440a2f42e99bb0e8cc68d0f (patch)
treef7c27d983044e7c9078f71933d3d832efb6cf83e /libglusterfs/src/syscall.c
parent57b48f2802dbb4af4ccb3f215816a305a6f840a9 (diff)
tests: skip tests on absence of reflink in xfs
Fixes: #1223 Change-Id: I36cb72d920ffd77405051546615c5262c392daef Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> (cherry picked from commit b85f01abab658d1d704cd6caf84dd64eddafbff7)
Diffstat (limited to 'libglusterfs/src/syscall.c')
-rw-r--r--libglusterfs/src/syscall.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libglusterfs/src/syscall.c b/libglusterfs/src/syscall.c
index 1d88c8adac1..e8ec24b7855 100644
--- a/libglusterfs/src/syscall.c
+++ b/libglusterfs/src/syscall.c
@@ -828,7 +828,8 @@ sys_copy_file_range(int fd_in, off64_t *off_in, int fd_out, off64_t *off_out,
return syscall(SYS_copy_file_range, fd_in, off_in, fd_out, off_out, len,
flags);
#else
- return -ENOSYS;
+ errno = ENOSYS;
+ return -1;
#endif /* HAVE_COPY_FILE_RANGE_SYS */
#endif /* HAVE_COPY_FILE_RANGE */
}