From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 14 19:00:02 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F6801065670 for ; Thu, 14 Aug 2008 19:00:02 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id 336F08FC1D for ; Thu, 14 Aug 2008 19:00:02 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 4E98D68BC1C; Thu, 14 Aug 2008 20:43:33 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mJabmAcoMIT0; Thu, 14 Aug 2008 20:43:30 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 3DDF868BC1B; Thu, 14 Aug 2008 20:43:30 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.2/8.14.2/Submit) id m7EIhT37060627; Thu, 14 Aug 2008 20:43:29 +0200 (CEST) (envelope-from rdivacky) Date: Thu, 14 Aug 2008 20:43:29 +0200 From: Roman Divacky To: Uladzislau Rezki Message-ID: <20080814184329.GA60497@freebsd.org> References: <200808142120.13609.v.rezkii@sam-solutions.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200808142120.13609.v.rezkii@sam-solutions.net> User-Agent: Mutt/1.4.2.3i Cc: freebsd-hackers@freebsd.org Subject: Re: textvp_fullpath 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: Thu, 14 Aug 2008 19:00:02 -0000 On Thu, Aug 14, 2008 at 09:20:12PM +0300, Uladzislau Rezki wrote: > Hello folks, > > I'm using "textvp_fullpath" function to get full path from vnode up to root dir. > The problem is that, sometimes it works, sometimes no. > > I know that "textvp_fullpath" goes through the cache of the vnode and > try to build full path. > > Are there any other ways to get full path? > I haven't had any ideas yet, that is why I am asking you. no... the vnode->full_path lookup is unreliable by definition in FreeBSD... what exactly are you trying to acomplish? I believe there might be other way to do whatever you want to do.. roman