]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9dea326bfaad23231ede0ee363b77ce2e70ad12d
tree10f9a95817f6491426b80f0353eed54964dc1b90
parent96f27d451bf4bd3a0ddf9f4984627d010a3ae0d1
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