On Thu, 2009-04-02 at 21:56 +0100, Al Viro wrote: > On Thu, Apr 02, 2009 at 09:54:18PM +0100, Al Viro wrote: > > On Thu, Apr 02, 2009 at 04:45:30PM -0400, Trond Myklebust wrote: > > > > > The NFS client is constructing the namespace as it walks the path using > > > the ->follow_link() trick to automount new filesystems. As long as we > > > can add a mount namespace argument to do_add_mount(), then we should be > > > able to make use of a namespace in struct nameidata. > > > > *wince* > > Theoretically doable, practically can get ugly. > > BTW, it's enough to tell it "take the namespace mountpoint belongs to", > if we really go that way. True. The only place (apart from check_mnt()) that doesn't use the mountpoint namespace appears to be attach_recursive_mnt() which, for reasons which are not clear, appears to do a touch_mnt_namespace() on current->nsproxy->mnt_ns instead. -- Trond Myklebust Linux NFS client maintainer NetApp Trond.Myklebust@xxxxxxxxxx www.netapp.com -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html