From mboxrd@z Thu Jan 1 00:00:00 1970 From: Al Viro Subject: Re: [PATCH 1/4] VFS: Add a VFS helper function vfs_remote_path_lookup() Date: Fri, 3 Apr 2009 02:53:12 +0100 Message-ID: <20090403015312.GT28946@ZenIV.linux.org.uk> References: <20090402195212.GK28946@ZenIV.linux.org.uk> <20090402195759.GL28946@ZenIV.linux.org.uk> <20090402202846.GM28946@ZenIV.linux.org.uk> <1238705130.16087.58.camel@heimdal.trondhjem.org> <20090402205418.GN28946@ZenIV.linux.org.uk> <1238710585.31262.28.camel@heimdal.trondhjem.org> <20090402231859.GP28946@ZenIV.linux.org.uk> <20090403010954.GQ28946@ZenIV.linux.org.uk> <20090403015220.GS28946@ZenIV.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Linus Torvalds , linux-fsdevel@vger.kernel.org To: Trond Myklebust Return-path: Received: from zeniv.linux.org.uk ([195.92.253.2]:48822 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751238AbZDCBxP (ORCPT ); Thu, 2 Apr 2009 21:53:15 -0400 Content-Disposition: inline In-Reply-To: <20090403015220.GS28946@ZenIV.linux.org.uk> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Fri, Apr 03, 2009 at 02:52:20AM +0100, Al Viro wrote: > OK, that's actually doable. > See git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6.git/ cache-root > for current variant; it's for comments *only* - not for merge. After that > one we should be able to do a modified variant of e.g. vfs_path_lookup() > that would do > get_path(root); path_get(root), even > nd->root = root; > instead of > nd->root.mnt = NULL; > and have lookup with root set to given place without touching current->fs > at all. Warning: this is completely untested. Not even "does it boot?", > just a code dump. > -- > To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html