diff options
author | Masaki Matsushita <glass.saga@gmail.com> | 2020-08-29 15:38:07 +0900 |
---|---|---|
committer | Masaki Matsushita <glass.saga@gmail.com> | 2020-08-29 15:38:07 +0900 |
commit | 93df3010482ad52e5ada2e416c996005da956e1e (patch) | |
tree | c6a4e3e467c175f7951eff117eba14275437485f /io.c | |
parent | c2011d1a51b71a17bf279f6ae90cab4172f80624 (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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |