RFR: 8269074: (fs) Files.copy fails to copy from /proc on some linux kernel versions

Brian Burkhalter bpb at openjdk.java.net
Tue Jun 22 17:18:00 UTC 2021


On Mon, 21 Jun 2021 20:39:02 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> On Linux, if while executing `java.nio.file.Files.copy(Path,Path,CopyOption...)` the native function `sendfile(2)` fails with `EINVAL`, fall back to transferring via user-space buffers.

Moved user-space copy into a separate C function.

-------------

PR: https://git.openjdk.java.net/jdk/pull/4543


More information about the nio-dev mailing list