From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 27 15:40:36 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1F16616A412 for ; Mon, 27 Nov 2006 15:40:36 +0000 (UTC) (envelope-from quetzal@zone3000.net) Received: from mx1.sitevalley.com (sitevalley.com [209.67.60.43]) by mx1.FreeBSD.org (Postfix) with SMTP id 5D0C143E1A for ; Mon, 27 Nov 2006 15:36:47 +0000 (GMT) (envelope-from quetzal@zone3000.net) Received: from unknown (HELO localhost) (217.144.69.37) by 209.67.61.254 with SMTP; 27 Nov 2006 15:37:39 -0000 Date: Mon, 27 Nov 2006 17:37:12 +0200 From: Nikolay Pavlov To: Ruslan Ermilov Message-ID: <20061127153712.GA14947@zone3000.net> Mail-Followup-To: Nikolay Pavlov , Ruslan Ermilov , freebsd-hackers@freebsd.org References: <20061127120740.GA12728@zone3000.net> <20061127152003.GA20294@rambler-co.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061127152003.GA20294@rambler-co.ru> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 6.1-RELEASE-p10 Cc: freebsd-hackers@freebsd.org Subject: Re: vn_fullpath question. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2006 15:40:36 -0000 On Monday, 27 November 2006 at 18:20:03 +0300, Ruslan Ermilov wrote: > On Mon, Nov 27, 2006 at 02:07:40PM +0200, Nikolay Pavlov wrote: > > Hi. I am trying to extend fstat utility, so that it can use name cache > > to recreate full path at least for text. I have found vn_fullpath > > function usefull in this case. I am newbe in C, so it could be stupid > > question, but could someone explaine what is "struct thread *td" in > > argument list of this function. Is this the thread which opened the > > vnode initially or it is the thread which searches for the vnode? i.e. > > fstat thread. In any case how i can get this *td structure? > > > There's a vn_fullpath(9) manpage which should answer this. Yes i know about this man, but still not sure how to get *td structure. > > > Cheers, > -- > Ruslan Ermilov > ru@FreeBSD.org > FreeBSD committer -- ====================================================================== - Best regards, Nikolay Pavlov. <<<----------------------------------- ======================================================================