ZFS, procfs and java

Stephane E. Potvin sepotvin at FreeBSD.org
Sat Apr 21 03:05:55 UTC 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

It seems that the ZFS cache (dnlc) doesn't update the VSF_namecache
fields in the vnodes (v_cache_src, v_cache_dst and v_dd). This
unfortunately causes the file link in /proc/curproc to return "unknown"
as it uses vn_fullpath which relies on the namecache fields to be set
correctly.

Java uses /proc/curproc/file to know where to find its libraries and
doesn't expect the "unknown" return value returned when using ZFS (due
to vn_fullpath failing). The attached patches to the java/jdk15 port
fixes this issue but it doesn't fix the root of the problem.

Would it be possible to add support in dnlc for updating the VFS
namecache fields or to add knowledge of dnlc into vn_fullpath?

Steph
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGKXSMmdOXtTCX/nsRAgZkAJ9sLwdGsOXMNFAa4etkDFntlZl1IACg/Nzj
pcW5y691zGlxv+ZRFq5ADKs=
=XCss
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-j2se::src::solaris::bin::java_md.c.sig
Type: application/octet-stream
Size: 65 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20070421/e32fe001/java_md.c.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-deploy::src::javaws::solaris::native::system_md.c.sig
Type: application/octet-stream
Size: 65 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20070421/e32fe001/system_md.c.obj


More information about the freebsd-current mailing list