From: Linus Torvalds Subject: Re: [PATCH 1/4] VFS: Add a VFS helper function vfs_remote_path_lookup() Date: Thu, 2 Apr 2009 13:17:47 -0700 (PDT) Message-ID: References: <3f1264127d431f695be25b940b477e3d287edc68.1238525532.git.Trond.Myklebust@netapp.com> <20090401021554.GV28946@ZenIV.linux.org.uk> <1238616394.24360.2.camel@heimdal.trondhjem.org> <20090401202629.GG28946@ZenIV.linux.org.uk> <1238628133.24360.51.camel@heimdal.trondhjem.org> <20090401233252.GH28946@ZenIV.linux.org.uk> <1238629407.19782.5.camel@heimdal.trondhjem.org> <20090402191709.GJ28946@ZenIV.linux.org.uk> <1238700874.16087.42.camel@heimdal.trondhjem.org> <20090402195212.GK28946@ZenIV.linux.org.uk> <20090402195759.GL28946@ZenIV.linux.org.uk> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Trond Myklebust , linux-fsdevel@vger.kernel.org To: Al Viro Return-path: Received: from smtp1.linux-foundation.org ([140.211.169.13]:36915 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761655AbZDBUTq (ORCPT ); Thu, 2 Apr 2009 16:19:46 -0400 In-Reply-To: <20090402195759.GL28946@ZenIV.linux.org.uk> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Thu, 2 Apr 2009, Al Viro wrote: > > *growl* > > Right, we are out of clone() flags, thanks to namespace-of-the-week > insanity by openvz bunch ;-/ I really think "clone()" is the wrong kind of granularity, and much too big a hammer. You never answered my suggestion about passing in namespace details to the open routines in nameidata. I don't think it actually needs the whole thing, the only thing (I _think_) it cares about ends up being just the root/cwd. And as we've with openat/fstatat/etc, NFS really isn't the only thing wanting to do per-operation versions of those. Of course, openat() and friends just want to use a temporary local cwd. NFS wants to do the same thing for /. But I think the problems are related, and the solution could be related too - just allow per-operation 'fs' namespaces. And the nameidata really _is_ the logical place for that all. Not the clone flags. Linus