6937320: (fs) Path getFileStore().type() does not return correct type of file store on Linux

Alan Bateman Alan.Bateman at oracle.com
Mon Aug 12 13:34:18 UTC 2019


On 09/08/2019 17:18, Brian Burkhalter wrote:
> 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.
>
Do you have examples, or maybe any references, to how these mount 
entries are setup? I think we need these before deciding if changes are 
needed.

-Alan


More information about the nio-dev mailing list