Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8225461

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

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 13
    • Fix Version/s: tbd
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Understanding:
      Fix Understood
    • CPU:
      generic
    • OS:
      generic

      Description

      In some cases it is possible that duplicate stores exist in the underlying native representation, for example duplicate mount points in a mount table. This can result from a bad configuration, auto-mounting, etc. Currently it is an error flagged by java/nio/file/FileStore/Basic.java to have duplicate FileStores in the getFileStores returned Iterable. It should be investigated whether it would be better to detect duplicate stores (mount points) in the Java libraries and automatically filter them out. In this case the duplicate check in Basic.java could be removed, as could be checking the output of 'df' for duplicates on Unix systems.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bpb Brian Burkhalter
              Reporter:
              bpb Brian Burkhalter
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: