HomeFreeBSD

linux(4): Add sendfile fallback for non-socket fds

Description

linux(4): Add sendfile fallback for non-socket fds

Before Linux 2.6.33, out_fd must refer to a socket. Since Linux 2.6.33
it can be any file.
The patch was originally provided by James McLaughlin and adapted by me
for copy_file_range.

PR: 262535
Differential revision: https://reviews.freebsd.org/D34555
MFC after: 1 month

Details

Provenance
james_mclgh.netAuthored on Aug 17 2023, 7:57 PM
dchaginCommitted on Aug 17 2023, 7:57 PM
Differential Revision
D34555: linuxulator: add sendfile fallback for non-socket FDs
Parents
rG7307c4396347: linux(4): Use native off_t for fo_sendfile call
Branches
Unknown
Tags
Unknown