Date: Fri, 12 Dec 2008 00:57:38 +0000 (UTC) From: Joe Marcus Clarke <marcus@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/kern vfs_cache.c vfs_default.c vnode_if.src Message-ID: <200812120057.mBC0vqeh031209@repoman.freebsd.org>
index | next in thread | raw e-mail
marcus 2008-12-12 00:57:38 UTC
FreeBSD src repository
Modified files:
sys/kern vfs_cache.c vfs_default.c vnode_if.src
Log:
SVN rev 185956 on 2008-12-12 00:57:38Z by marcus
Add a new VOP, VOP_VPTOCNP, which translates a vnode to its component name
on a best-effort basis. Teach vn_fullpath to use this new VOP if a
regular VFS cache lookup fails. This VOP is designed to supplement the
VFS cache to provide a better chance that a vnode-to-name lookup will
succeed.
Currently, an implementation for devfs is being committed. The default
implementation is to return ENOENT.
A big thanks to kib for the mentorship on this, and to pho for running it
through his stress test suite.
Reviewed by: arch
Approved by: kib
Revision Changes Path
1.129 +77 -24 src/sys/kern/vfs_cache.c
1.146 +8 -0 src/sys/kern/vfs_default.c
1.95 +10 -0 src/sys/kern/vnode_if.src
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812120057.mBC0vqeh031209>
