RFR: 8334339: Test java/nio/file/attribute/BasicFileAttributeView/CreationTime.java fails on alinux3 [v2]

SendaoYan syan at openjdk.org
Mon Jun 17 12:07:11 UTC 2024


On Mon, 17 Jun 2024 09:26:18 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> Would it be possible to say what `Files.getFileStore(file).type()` returns? The test has an existing method to skip and I'm wonder if that could be used rather than introducing another.

`Files.getFileStore(file).type()` returns `tmpfs`. But does it possible that the linux kernel can support `birth time` for `tmpfs`type files in future. I think it is more accurate to use the `stat` command to determine whether a file supports `birth` than to obtain the file type throuht `Files.getFileStore(file).type()`.

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

PR Comment: https://git.openjdk.org/jdk/pull/19737#issuecomment-2173215538


More information about the nio-dev mailing list