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:
parent
c2011d1a51
commit
93df301048
5
io.c
5
io.c
@ -11311,6 +11311,11 @@ nogvl_copy_stream_sendfile(struct copy_stream_struct *stp)
|
|||||||
case EINVAL:
|
case EINVAL:
|
||||||
#ifdef ENOSYS
|
#ifdef ENOSYS
|
||||||
case ENOSYS:
|
case ENOSYS:
|
||||||
|
#endif
|
||||||
|
#ifdef ENOTSUP
|
||||||
|
/* some RedHat kernels may return ENOTSUP on an NFS mount.
|
||||||
|
see also: [Feature #16965] */
|
||||||
|
case ENOTSUP:
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
case EAGAIN:
|
case EAGAIN:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user