8225461: (fs) Investigate filtering duplicates out of Iterable returned by java.nio.file.FileSystem::getFileStores

Brian Burkhalter brian.burkhalter at oracle.com
Mon Aug 12 23:05:38 UTC 2019


> On Aug 9, 2019, at 11:54 AM, Brian Burkhalter <brian.burkhalter at oracle.com> wrote:
> 
>> On Aug 9, 2019, at 11:49 AM, Bernd Eckenfels <ecki at zusammenkunft.net <mailto:ecki at zusammenkunft.net>> wrote:
>> 
>> I wonder if for the df case you should word-split the mountpoints, assuming that if duplicate lines are possible they might differ in any of the other columns which are not relevant for the test. (And i wonder if this as well as the /proc/mounts Support Blanks in the path)
> 
> That might be a good idea.

Here is a modified version [1] which uses only the device/filesystem and mount point fields of the df and /proc/mounts lines.

Thanks,

Brian

[1] http://cr.openjdk.java.net/~bpb/8225461/webrev.02/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20190812/9b84d67f/attachment.html>


More information about the nio-dev mailing list