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]
This commit is contained in:
Masaki Matsushita 2020-08-29 15:38:07 +09:00
parent c2011d1a51
commit 93df301048

5
io.c
View File

@ -11311,6 +11311,11 @@ nogvl_copy_stream_sendfile(struct copy_stream_struct *stp)
case EINVAL:
#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: