From: Ashish Khurange Subject: Re: get vfsmount from dentry Date: Sun, 12 Mar 2006 23:30:49 +0530 Message-ID: <441461D1.6090803@it.iitb.ac.in> References: <441425BB.6030604@it.iitb.ac.in> <20060312135543.GB27946@ftp.linux.org.uk> <44145873.6010802@it.iitb.ac.in> <20060312174149.GC27946@ftp.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org Return-path: Received: from smtp1.iitb.ac.in ([59.163.25.49]:64917 "HELO smtp1.iitb.ac.in") by vger.kernel.org with SMTP id S1750832AbWCLSEp (ORCPT ); Sun, 12 Mar 2006 13:04:45 -0500 To: Al Viro In-Reply-To: <20060312174149.GC27946@ftp.linux.org.uk> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Al Viro wrote: >On Sun, Mar 12, 2006 at 10:50:51PM +0530, Ashish Khurange wrote: > > > >>Yes thats it, the pathname that is used by a process to access a file, I >>want to that pathname. >> >> > >Which process? > > > come on ... As per my knowledge in vfs layer file is either accessed by pathname or file structure pointer. In file struct you have both dentry of the file and vfsmount. When a file is accessed by a name first path look up happens and its nameidata is created which holds both dentry and vfsmount. In may function calls only dentry is passed as an argument. Now I want the path name of the file (forget what I want, as term pathname is not clear between us). For some reason, I need vfsmount of the file as well. Regards, - Ashish