From owner-p4-projects@FreeBSD.ORG Thu May 13 14:37:33 2010 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id D058F1065672; Thu, 13 May 2010 14:37:32 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 88086106564A for ; Thu, 13 May 2010 14:37:32 +0000 (UTC) (envelope-from gpf@FreeBSD.org) Received: from repoman.freebsd.org (unknown [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 75B4A8FC15 for ; Thu, 13 May 2010 14:37:32 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o4DEbWH7018722 for ; Thu, 13 May 2010 14:37:32 GMT (envelope-from gpf@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o4DEbWOG018720 for perforce@freebsd.org; Thu, 13 May 2010 14:37:32 GMT (envelope-from gpf@FreeBSD.org) Date: Thu, 13 May 2010 14:37:32 GMT Message-Id: <201005131437.o4DEbWOG018720@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to gpf@FreeBSD.org using -f From: Efstratios Karatzas To: Perforce Change Reviews Precedence: bulk Cc: Subject: PERFORCE change 178200 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 May 2010 14:37:33 -0000 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 ...