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

Brian Burkhalter bpb at openjdk.java.net
Wed Jun 23 18:24:44 UTC 2021


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.

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

Commit messages:
 - 8269074: Change Unix permissions to 664
 - 8269074: (fs) Files.copy fails to copy from /proc on some linux kernel versions

Changes: https://git.openjdk.java.net/jdk17/pull/128/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk17&pr=128&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8269074
  Stats: 68 lines in 1 file changed: 38 ins; 28 del; 2 mod
  Patch: https://git.openjdk.java.net/jdk17/pull/128.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk17 pull/128/head:pull/128

PR: https://git.openjdk.java.net/jdk17/pull/128


More information about the nio-dev mailing list