RFR: 8317687: (fs) FileStore.supportsFileAttributeView(posix) incorrectly returns 'true' for FAT32 volume on macOS

Brian Burkhalter bpb at openjdk.org
Fri Oct 6 21:49:31 UTC 2023


On Fri, 6 Oct 2023 21:39:32 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> Change `BsdFileStore.supportsFileAttributeView` to return false for POSIX attributes when the associated volume file system type is FAT32.

This change also exposed a problem in the `java/nio/file/Files/CopyAndMove.java` test which failed in `CopyAndMove.checkBasicAttributes` due to the source and destination last modified time stamps not being equal. This was due to FAT32 volumes having only a resolution of 2 seconds for the write time. The test is incidentally modified to allow an offset of no more than 2 seconds in this case.

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

PR Comment: https://git.openjdk.org/jdk/pull/16084#issuecomment-1751434290


More information about the nio-dev mailing list