A possible fix for JDK-8165852: Mount point not found for a file which is present in overlayfs

Fridrich Strba fridrich.strba at suse.com
Wed Sep 27 12:31:13 UTC 2017


Hello, good people,

I think I fixed the overlayfs and btrfs problems in LinuxFileStore. The
attached patch is what makes it work for us. Basically, when we come to
the device-id boundary, we check whether it corresponds to a mount point
in the files and if so, we return. If not, we go down the file system
looking for another boundary. If we come to the root of the file-system
without finding other mount-point and if the / is in the files, we
return the entry that corresponds to it. If not, we throw the exception.

It is not elegant, but it works. I would love to have someone to look at
it and consider whether it could be up-streamed.

Thanks in advance

Fridrich


-------------- next part --------------
A non-text attachment was scrubbed...
Name: java-10-openjdk-linuxfilestore.patch
Type: text/x-patch
Size: 949 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20170927/bf97ef0c/java-10-openjdk-linuxfilestore.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: OpenPGP digital signature
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20170927/bf97ef0c/signature.asc>


More information about the nio-dev mailing list