Date: Thu, 13 May 2010 14:37:32 GMT From: Efstratios Karatzas <gpf@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 178200 for review Message-ID: <201005131437.o4DEbWOG018720@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@178200?ac=10 Change 178200 by gpf@gpf_desktop on 2010/05/13 14:36:42 - Add 2 files: vn_fullpath_nocache.c is a lkm for developing and testing vn_fullpath_nocache(9) + the makefile used for building it. Its job is to actualy reconstruct a full fs path from a vnode without use of the name cache. I've managed to recreate fs paths for files in case we supply a directory hint and for regular dirs without using the name cache. This code is heavily dependant on VOP_VPTOCNP(9). It also works only for UFS. Read the code + comments for more info. TODO: still haven't done the exhaustive search in case we are not supplied with a directory hint and our target vnode is not a directory; for NFS, this hint will be kept inside the file handle so it should speed things up except for a few cornercases. This is the first rough draft, be kind. style(9) is ignored on some places, dummy error codes are returned and there are probably a few locks missing here and there; will fix. Affected files ... .. //depot/projects/soc2010/gpf_audit/Makefile#1 add .. //depot/projects/soc2010/gpf_audit/vn_fullpath_nocache.c#1 add Differences ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005131437.o4DEbWOG018720>