From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Wilcox Subject: Re: mountpoint information a get_sb Date: Thu, 23 Nov 2006 11:53:46 -0700 Message-ID: <20061123185346.GA6083@parisc-linux.org> References: <1164283656.15003.4.camel@mdube> <20061123183227.GL3078@ftp.linux.org.uk> <1164289884.15003.13.camel@mdube> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Al Viro , linux-fsdevel@vger.kernel.org Return-path: Received: from palinux.external.hp.com ([192.25.206.14]:32652 "EHLO mail.parisc-linux.org") by vger.kernel.org with ESMTP id S1755308AbWKWSxr (ORCPT ); Thu, 23 Nov 2006 13:53:47 -0500 To: Mathieu Dube Content-Disposition: inline In-Reply-To: <1164289884.15003.13.camel@mdube> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Thu, Nov 23, 2006 at 01:51:24PM +0000, Mathieu Dube wrote: > On Thu, 2006-11-23 at 18:32 +0000, Al Viro wrote: > > > 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. > > Im sorry Im fairly new to this. > > youre saying there is no way to know the mount point unless its already > mounted? He's saying that even if you happen to know where it's currently mounted, there's no guarantee the place where it's mounted might not be changed without your filesystem knowing. Indeed, it can be mounted nowhere at all (and yet still active) or it can be mounted in 2 or more places at the same time. What you've told us you're trying to do is impossible. > I need to know the subtree that will be made invisible once the fs is > mounted > > is there a way ? No way at all. What are you actually trying to do?