java/nio/file/DirectoryStream/SecureDS.java fails AtomicMoveNotSupportedException

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 27
    • Affects Version/s: 27
    • Component/s: core-libs
    • Environment:
    • b08
    • generic
    • linux

      Test java/nio/file/DirectoryStream/SecureDS.java fails "java.nio.file.AtomicMoveNotSupportedException: file -> file: Invalid cross-device link" when /tmp directory mount as diffrent volume to current jtreg work directory.

      The test log snippet shows below:
      java.nio.file.AtomicMoveNotSupportedException: file -> file: Invalid cross-device link
      at java.base/sun.nio.fs.UnixSecureDirectoryStream.move(UnixSecureDirectoryStream.java:223)
      at java.base/sun.nio.fs.UnixSecureDirectoryStream.move(UnixSecureDirectoryStream.java:42)
      at SecureDS.doMoveTests(SecureDS.java:304)
      at SecureDS.main(SecureDS.java:60)

      /tmp directory was mount to tmpfs:
      > mount | grep /tmp
      tmpfs on /tmp type tmpfs (rw,nosuid,nodev)

            Assignee:
            Sendao Yan
            Reporter:
            Sendao Yan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: