From mboxrd@z Thu Jan 1 00:00:00 1970 From: Al Viro Subject: Re: mountpoint information a get_sb Date: Thu, 23 Nov 2006 18:32:27 +0000 Message-ID: <20061123183227.GL3078@ftp.linux.org.uk> References: <1164283656.15003.4.camel@mdube> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel@vger.kernel.org Return-path: Received: from zeniv.linux.org.uk ([195.92.253.2]:65210 "EHLO ZenIV.linux.org.uk") by vger.kernel.org with ESMTP id S1756361AbWKWSc2 (ORCPT ); Thu, 23 Nov 2006 13:32:28 -0500 To: Mathieu Dube Content-Disposition: inline In-Reply-To: <1164283656.15003.4.camel@mdube> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Thu, Nov 23, 2006 at 12:07:36PM +0000, Mathieu Dube wrote: > Hi, > > the fs Im building needs to know where its being mounted prior to > creating its superblock. > > struct vfsmount that is passed to my fs specific get_sb has > mnt_mountpoint set to NULL. > > I assume this is the normal behavior and I am looking for a way to > obtain information about the mount point my fs is being mounted on. It might be mounted at any number of places, including 0. Moreover, it might be mounted at some place only to be immediately moved elsewhere. The question makes no sense.