From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH] private mounts Date: Wed, 11 May 2005 10:00:02 +0100 Message-ID: <20050511090002.GC24841@infradead.org> References: <20050424205422.GK13052@parcelfarce.linux.theplanet.co.uk> <20050424210616.GM13052@parcelfarce.linux.theplanet.co.uk> <20050424211942.GN13052@parcelfarce.linux.theplanet.co.uk> <20050425071047.GA13975@vagabond> <20050430083516.GC23253@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: hch@infradead.org, bulb@ucw.cz, viro@parcelfarce.linux.theplanet.co.uk, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, akpm@osdl.org Return-path: Received: from pentafluge.infradead.org ([213.146.154.40]:65450 "EHLO pentafluge.infradead.org") by vger.kernel.org with ESMTP id S261938AbVEKJAL (ORCPT ); Wed, 11 May 2005 05:00:11 -0400 To: Miklos Szeredi Content-Disposition: inline In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Sat, Apr 30, 2005 at 11:25:10AM +0200, Miklos Szeredi wrote: > > > > I can't write a script that reads your mind. But I sure can write > > > > a script that finds out what you mounted in the other shells (with help > > > > of a little wrapper around the mount command). > > > > > > How do you bind mount it from a different namespace? You _do_ need > > > bind mount, since a new mount might require password input, etc... > > > > Not nessecarily. The filesystem gets called into ->get_sb for every mount, > > and can then decided whether to return an existing superblock instance or > > setup a new one. If the credentials for the new mount match an old one > > it can just reuse it. (e.g. for block based filesystem it will always reuse > > right now) > > And if the credentials are checked in userspace (sshfs)? The it needs to call to userspace in ->get_sb..