6937320: (fs) Path getFileStore().type() does not return correct type of file store on Linux
Brian Burkhalter
brian.burkhalter at oracle.com
Mon Aug 12 16:01:37 UTC 2019
> On Aug 12, 2019, at 6:34 AM, Alan Bateman <Alan.Bateman at oracle.com> wrote:
>
> On 09/08/2019 17:18, Brian Burkhalter wrote:
>> https://bugs.openjdk.java.net/browse/JDK-6937320 <https://bugs.openjdk.java.net/browse/JDK-6937320>
>> http://cr.openjdk.java.net/~bpb/6937320/webrev.00/ <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.
That this can happen is corroborated by the results of web searches but I don’t recall seeing it myself in actuality. If its occurrence looks too rare then maybe is should just be resolved as NAI.
Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20190812/5eed6581/attachment.html>
More information about the nio-dev
mailing list