<div dir="ltr">Hi Florian,<div><br></div><div>do I understand this correctly: by backporting the user-space emulation for copy_file_range, glibc 2.27 broke compatibility with kernels < 4.5?<div><br></div><div>If yes, why did glibc not retain the emulation for the ENOSYS case?</div><div><br></div><div>Cheers, Thomas</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Aug 27, 2022 at 12:20 PM Florian Weimer <<a href="mailto:fweimer@openjdk.org">fweimer@openjdk.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Now that the userspace emulation is not leveraged anymore, it would be possible to issue the system call directly for all glibc versions, but it's probably best not to start using `copy_file_range` where it hasn't been used before (the el7 kernel has a strange backport, if I recall correctly).<br>
<br>
-------------<br>
<br>
Commit messages:<br>
- 8293004: (fs) copy_file_range needs fallback handling for ENOSYS<br>
<br>
Changes: <a href="https://git.openjdk.org/jdk/pull/10055/files" rel="noreferrer" target="_blank">https://git.openjdk.org/jdk/pull/10055/files</a><br>
Webrev: <a href="https://webrevs.openjdk.org/?repo=jdk&pr=10055&range=00" rel="noreferrer" target="_blank">https://webrevs.openjdk.org/?repo=jdk&pr=10055&range=00</a><br>
Issue: <a href="https://bugs.openjdk.org/browse/JDK-8293004" rel="noreferrer" target="_blank">https://bugs.openjdk.org/browse/JDK-8293004</a><br>
Stats: 3 lines in 1 file changed: 3 ins; 0 del; 0 mod<br>
Patch: <a href="https://git.openjdk.org/jdk/pull/10055.diff" rel="noreferrer" target="_blank">https://git.openjdk.org/jdk/pull/10055.diff</a><br>
Fetch: git fetch <a href="https://git.openjdk.org/jdk" rel="noreferrer" target="_blank">https://git.openjdk.org/jdk</a> pull/10055/head:pull/10055<br>
<br>
PR: <a href="https://git.openjdk.org/jdk/pull/10055" rel="noreferrer" target="_blank">https://git.openjdk.org/jdk/pull/10055</a><br>
</blockquote></div>