Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Apr 2007 22:19:00 -0400
From:      "Stephane E. Potvin" <sepotvin@FreeBSD.org>
To:        freebsd-current@FreeBSD.org
Cc:        Greg Lewis <glewis@eyesbeyond.com>, Pawel Jakub Dawidek <pjd@FreeBSD.org>
Subject:   ZFS, procfs and java
Message-ID:  <46297494.5050104@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------040905070709090605040409
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

-----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-----

--------------040905070709090605040409
Content-Type: application/octet-stream;
	name="patch-j2se::src::solaris::bin::java_md.c.sig"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="patch-j2se::src::solaris::bin::java_md.c.sig"

iD8DBQBGKXSMmdOXtTCX/nsRAvRbAKC+MUiLGyfN7Lh0G1ZU3UB7NicDGACeMRXeSNXzc/kk
h6Mzq5n94D/5nRk=
--------------040905070709090605040409
Content-Type: application/octet-stream;
	name*0="patch-deploy::src::javaws::solaris::native::system_md.c.sig"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename*0="patch-deploy::src::javaws::solaris::native::system_md.c.sig"

iD8DBQBGKXSMmdOXtTCX/nsRAoEOAJ4/23kZrNas1CqWFGLHUNU42Vdm/gCgsioZJkJB+s1h
+x3mct+nBMmVNTA=
--------------040905070709090605040409--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46297494.5050104>