RFR: 8293004: (fs) copy_file_range needs fallback handling for ENOSYS

Thomas Stüfe thomas.stuefe at gmail.com
Sun Aug 28 06:53:13 UTC 2022


Thanks for the clarification, Florian!

..Thomas

On Sat, Aug 27, 2022 at 2:45 PM Florian Weimer <fweimer at redhat.com> wrote:

> * Thomas Stüfe:
>
> > do I understand this correctly: by backporting the user-space
> > emulation for copy_file_range, glibc 2.27 broke compatibility with
> > kernels < 4.5?
> >
> > If yes, why did glibc not retain the emulation for the ENOSYS case?
>
> The emulation was buggy in corner cases, and the kernel kept changing
> behavior, too.  With the current implementation, an application can
> decide whether they want to roll their own slightly dodgy copying loop
> if there is no kernel support.  With the emulation present, that wasn't
> possible.
>
> (Not sure if the <fweimer at openjdk.org> address works.)
>
> Thanks,
> Florian
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/nio-dev/attachments/20220828/67dfa5a8/attachment-0001.htm>


More information about the nio-dev mailing list