JDK-8165323 : (fs) Files.getFileStore fails with "Mount point not found" in chroot environment
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-09-02
  • Updated: 2016-09-23
  • Resolved: 2016-09-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
9 b137Fixed
Related Reports
Relates :  
Relates :  
Matthias Klose reports an issue building JDK 9 on Linux in a chroot environment then the kernel is >= 3.19 


It manifests as a build failure because jlink uses FileStore.

The patch fixes the build failure but does not address the inability to obtain a FileStore. A separate issue JDK-8166162 was filed to track that specific problem.

Review thread: http://mail.openjdk.java.net/pipermail/nio-dev/2016-September/003876.html Thread where issue was reported continues here: http://mail.openjdk.java.net/pipermail/jdk9-dev/2016-September/004895.html

I was able to reproduce the failure in a chroot on Ubuntu 16.04 desktop amd64 following the instructions at https://help.ubuntu.com/community/BasicChroot with sudo mount -o bind /proc /var/chroot/proc in the "Setting-up the chroot" section replaced with sudo mount -t proc none /var/chroot/proc and doing 'make images': Error: jdk.tools.jlink.plugin.PluginException: java.io.IOException: Mount point not found InterimImage.gmk:47: recipe for target '/home/jdk9-dev/build/linux-x86_64-normal-server-fastdebug/support/interim-image/bin/java' failed make[3]: *** [/home/jdk9-dev/build/linux-x86_64-normal-server-fastdebug/support/interim-image/bin/java] Error 1 make[3]: *** Deleting file '/home/jdk9-dev/build/linux-x86_64-normal-server-fastdebug/support/interim-image/bin/java' make[2]: *** [interim-image] Error 1 make[2]: *** Waiting for unfinished jobs.... make/Main.gmk:386: recipe for target 'interim-image' failed In the foregoing "/home" is actually "/var/chroot/home."