summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorMasaki Matsushita <glass.saga@gmail.com>2020-08-29 15:38:07 +0900
committerMasaki Matsushita <glass.saga@gmail.com>2020-08-29 15:38:07 +0900
commit93df3010482ad52e5ada2e416c996005da956e1e (patch)
treec6a4e3e467c175f7951eff117eba14275437485f /io.c
parentc2011d1a51b71a17bf279f6ae90cab4172f80624 (diff)
IO.copy_stream: handle ENOTSUP on copy_file_range(2)
fallback to other methods on ENOTSUP. some RedHat kernels may return ENOTSUP on an NFS mount. [Feature #16965]
Diffstat (limited to 'io.c')
-rw-r--r--io.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/io.c b/io.c
index 5e4fdd5d95..3b3ce3ff82 100644
--- a/io.c
+++ b/io.c
@@ -11312,6 +11312,11 @@ nogvl_copy_stream_sendfile(struct copy_stream_struct *stp)
#ifdef ENOSYS
case ENOSYS:
#endif
+#ifdef ENOTSUP
+ /* some RedHat kernels may return ENOTSUP on an NFS mount.
+ see also: [Feature #16965] */
+ case ENOTSUP:
+#endif
return 0;
case EAGAIN:
#if defined(EWOULDBLOCK) && EWOULDBLOCK != EAGAIN