summaryrefslogtreecommitdiff
path: root/fs/nfs/super.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2012-03-01 17:01:23 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-03-02 17:18:04 -0500
commit31b8e2aec099f22d40277c424d8c24b2a4c95fce (patch)
tree47092ef0ac344736a78afadd71e4808e4fe63dcc /fs/nfs/super.c
parent2e738fdce22f9a7edf20281fd2d768ef9785922e (diff)
NFS: Make clientaddr= optional
For NFSv4 mounts, the clientaddr= mount option has always been required. Now we have rpc_localaddr() in the kernel, which was modeled after the same logic in the mount.nfs command that constructs the clientaddr= mount option. If user space doesn't provide a clientaddr= mount option, the kernel can now construct its own. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/super.c')
-rw-r--r--fs/nfs/super.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index 7002be11d99f..3935a371f5a0 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -2557,12 +2557,6 @@ static int nfs4_validate_text_mount_data(void *options,
return -EINVAL;
}
- if (args->client_address == NULL) {
- dfprintk(MOUNT,
- "NFS4: mount program didn't pass callback address\n");
- return -EINVAL;
- }
-
return nfs_parse_devname(dev_name,
&args->nfs_server.hostname,
NFS4_MAXNAMLEN,