Skip to content

Allow NFS to use ordinary path lookup when mounting NFSv4

Trond Myklebust linux-fsdevel linux-nfs lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 25 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4VFS: Add a VFS helper function vfs_remote_path_lookup()fs/namei.c fs/namespace.c include/linux/mnt_namespace.h +3 more+138 -925 replies
2/4NFSv4: Use vfs_path_lookup() instead of nfs4_path_walk()fs/nfs/super.c+147 -210 replies
3/4NFS: Fix nfs_path() to always return a '/' at the beginning of the pathfs/nfs/namespace.c+5 -00 replies
4/4NFS: Correct the NFS mount path when following a referralfs/nfs/super.c+24 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] Allow NFS to use ordinary path lookup when mounting NFSv4

The following series of patches contain a VFS change, and hence I'm sending them via mail instead of as a git pull. The first two patches have been posted earlier (see http://thread.gmane.org/gmane.linux.file-systems/29663).

To recap:
The first patch adds VFS support for walking the remote path, using a temporary mount namespace to represent the server's namespace, so that symlinks and referrals can be followed across remote filesystem and server boundaries.
The second patch then uses this VFS helper in the NFSv4 mount code.

The last two patches fix issues with referrals that turned up during testing at Connectathon.

Please apply after pulling the NFS client git tree as requested earlier today, or you can pull the full set of changes from
git pull git://git.linux-nfs.org/projects/trondmy/nfs-2.6.git vfs-changes

Cheers
Trond

Trond Myklebust (4):
VFS: Add a VFS helper function vfs_remote_path_lookup()
NFSv4: Use vfs_path_lookup() instead of nfs4_path_walk()
NFS: Fix nfs_path() to always return a '/' at the beginning of the
path
NFS: Correct the NFS mount path when following a referral

 fs/namei.c                    |   75 ++++++++++++++++-
 fs/namespace.c                |   56 ++++++++++--
 fs/nfs/namespace.c            |    5 +
 fs/nfs/super.c                |  192 ++++++++++++++++++++++++++++++++++++-----
 include/linux/mnt_namespace.h |    2 +
 include/linux/namei.h         |    2 +
 include/linux/nsproxy.h       |    1 +
 kernel/nsproxy.c              |   11 +++
 8 files changed, 314 insertions(+), 30 deletions(-)