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

Bernd Eckenfels ecki at zusammenkunft.net
Fri Aug 9 17:35:28 UTC 2019


Hello,

The bug title is a bit misleading, can that be fixed before it shows up in the commit?

Gruss
Bernd


--
http://bernd.eckenfels.net

________________________________
Von: nio-dev <nio-dev-bounces at openjdk.java.net> im Auftrag von Brian Burkhalter <brian.burkhalter at oracle.com>
Gesendet: Freitag, August 9, 2019 7:18 PM
An: nio-dev
Betreff: 6937320: (fs) Path getFileStore().type() does not return correct type of file store on Linux

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20190809/1a1a5ec2/attachment.html>


More information about the nio-dev mailing list