PERFORCE change 178200 for review

Efstratios Karatzas gpf at FreeBSD.org
Thu May 13 14:37:33 UTC 2010


http://p4web.freebsd.org/@@178200?ac=10

Change 178200 by gpf at 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 ...


More information about the p4-projects mailing list