6937320: (fs) Path getFileStore().type() does not return correct type of file store on Linux
Brian Burkhalter
brian.burkhalter at oracle.com
Fri Aug 9 16:18:04 UTC 2019
https://bugs.openjdk.java.net/browse/JDK-6937320
http://cr.openjdk.java.net/~bpb/6937320/webrev.00/
The failure addressed here occurred on Linux when trying to obtain the FileStore of “/“ which on some misconfigured systems was “rootfs” instead of the actual device due to duplicate entries for “/“ in /proc/mounts with the rootfs entry being first. The change is to attempt to recognize an actual device path, e.g., /dev/sda1, in the entry and to use the first non-path entry, e.g., rootfs, only if a path-like entry was not encountered first.
Thanks,
Brian
More information about the nio-dev
mailing list