Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261161AbVD3IfY (ORCPT ); Sat, 30 Apr 2005 04:35:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261159AbVD3IfY (ORCPT ); Sat, 30 Apr 2005 04:35:24 -0400 Received: from pentafluge.infradead.org ([213.146.154.40]:17838 "EHLO pentafluge.infradead.org") by vger.kernel.org with ESMTP id S261158AbVD3IfR (ORCPT ); Sat, 30 Apr 2005 04:35:17 -0400 Date: Sat, 30 Apr 2005 09:35:16 +0100 From: Christoph Hellwig To: Miklos Szeredi Cc: bulb@ucw.cz, viro@parcelfarce.linux.theplanet.co.uk, hch@infradead.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, akpm@osdl.org Subject: Re: [PATCH] private mounts Message-ID: <20050430083516.GC23253@infradead.org> Mail-Followup-To: Christoph Hellwig , Miklos Szeredi , bulb@ucw.cz, viro@parcelfarce.linux.theplanet.co.uk, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, akpm@osdl.org References: <20050424201820.GA28428@infradead.org> <20050424205422.GK13052@parcelfarce.linux.theplanet.co.uk> <20050424210616.GM13052@parcelfarce.linux.theplanet.co.uk> <20050424211942.GN13052@parcelfarce.linux.theplanet.co.uk> <20050425071047.GA13975@vagabond> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-SRS-Rewrite: SMTP reverse-path rewritten from by pentafluge.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 959 Lines: 19 On Mon, Apr 25, 2005 at 11:58:50AM +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) - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/