RFR: 8337966: (fs) Files.readAttributes fails with Operation not permitted on older docker releases [v2]

Alexey Bakhtin abakhtin at openjdk.org
Thu Aug 29 16:13:21 UTC 2024


On Thu, 29 Aug 2024 14:44:59 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> Alexey Bakhtin has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Verify EPERM at runtime
>
> src/java.base/unix/native/libnio/fs/UnixNativeDispatcher.c line 691:
> 
>> 689:             copy_statx_attributes(env, &statx_buf, attrs);
>> 690:             return;
>> 691:         } else if (errno != ENOSYS && errno != EPERM) {
> 
> Why is `ENOSYS` added here? Has this also been observed?

No, I do not observe `ENOSYS`, but it is a common error code for an unsupported syscall. It is similar to copy_file_range.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/20484#discussion_r1736609427


More information about the nio-dev mailing list