NFSv4: Replace nfs4_path_walk() with VFS path lookup in a private namespace
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 22 Jun 2009 19:09:14 +0000 (15:09 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 23 Jun 2009 04:28:25 +0000 (21:28 -0700)
commitc02d7adf8c5429727a98bad1d039bccad4c61c50
tree10f9a95817f6491426b80f0353eed54964dc1b90
parentcf8d2c11cb77f129675478792122f50827e5b0ae
NFSv4: Replace nfs4_path_walk() with VFS path lookup in a private namespace

As noted in the previous patch, the NFSv4 client mount code currently
has several limitations. If the mount path contains symlinks, or
referrals, or even if it just contains a '..', then the client code in
nfs4_path_walk() will fail with an error.

This patch replaces the nfs4_path_walk()-based lookup with a helper
function that sets up a private namespace to represent the namespace on the
server, then uses the ordinary VFS and NFS path lookup code to walk down the
mount path in that namespace.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/nfs/super.c