RFR: 8337966: (fs) Files.readAttributes fails with Operation not permitted on older docker releases
Brian Burkhalter
bpb at openjdk.org
Wed Aug 28 16:26:19 UTC 2024
On Wed, 28 Aug 2024 09:11:14 GMT, Alan Bateman <alanb at openjdk.org> wrote:
> For main line and this PR, I don't think we should be testing statx in UnixNativeDispatcher.init.
I concur.
> It's not the same thing the copy_file_range usage in the FileChannel.transferTo implementation as there it is file descriptor specific.
I'm not sure about this. If `copy_file_range` fails with `EPERM`, then I think there will be a failure instead of falling back to something else, such as the read-write loop.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/20484#issuecomment-2315787142
More information about the nio-dev
mailing list