RFR: 8341282: (fs) Move creation time fallback logic to Java layer (Linux) [v3]

Brian Burkhalter bpb at openjdk.org
Wed Oct 2 15:28:37 UTC 2024


On Tue, 1 Oct 2024 19:57:52 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> Move the decision as to whether `BasicFileAttributes.creationTime()` falls back to the modified time from the native layer to the Java layer.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8341282: Unset birthtime_available when using stat(2) on Linux

> What's strange is that in [22ac46e](https://github.com/openjdk/jdk/commit/22ac46eab211ca32ab046283c6a7efcf215425a8) we set birth time support to false, but we should never enter this code `copy_stat_attributes()` on Linux since we set the capability i.e. `UnixNativeDispatcher.birthtimeSupported()` to true iff `statx` is available and then we'd use `copy_statx_attributes()` instead.

Yes, I was aware of that. The change was a sort of attempt at completeness, but I think too confusing.

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

PR Comment: https://git.openjdk.org/jdk/pull/21274#issuecomment-2388969246


More information about the nio-dev mailing list