linux/fs/nfs
Chuck Lever f22d6d79fe NFS: Save the value of the "port=" mount option
During a remount based on the mount options displayed in /proc/mounts, we
want to preserve the original behavior of the mount request.  Let's save
the original setting of the "port=" mount option in the mount's nfs_server
structure.

This allows us to simplify the default behavior of port setting for NFSv4
mounts: by default, NFSv2/3 mounts first try an RPC bind to determine the
NFS server's port, unless the user specified the "port=" mount option;
Users can force the client to skip the RPC bind by explicitly specifying
"port=<value>".

NFSv4, by contrast, assumes the NFS server port is 2049 and skips the RPC
bind, unless the user specifies "port=".  Users can force an RPC bind for
NFSv4 by explicitly specifying "port=0".

I added a couple of extra comments to clarify this behavior.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Cc: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
2008-03-19 18:00:19 -04:00
..
callback_proc.c
callback_xdr.c nfs: fix sparse warnings 2008-02-20 16:15:44 -05:00
callback.c Wrap buffers used for rpc debug printks into RPC_IFDEBUG 2008-02-21 18:42:29 -05:00
callback.h
client.c NFS: Save the value of the "port=" mount option 2008-03-19 18:00:19 -04:00
delegation.c nfs: fix sparse warnings 2008-02-20 16:15:44 -05:00
delegation.h
dir.c SUNRPC: Add a helper rpcauth_lookup_generic_cred() 2008-03-14 13:42:49 -04:00
direct.c NFS: Ensure that the asynchronous RPC calls complete on nfsiod. 2008-02-25 21:40:37 -08:00
file.c
getroot.c
idmap.c nfs: fix sparse warnings 2008-02-20 16:15:44 -05:00
inode.c SUNRPC: Add a helper rpcauth_lookup_generic_cred() 2008-03-14 13:42:49 -04:00
internal.h NFS: Save the value of the "port=" mount option 2008-03-19 18:00:19 -04:00
iostat.h
Makefile
mount_clnt.c
namespace.c Introduce path_put() 2008-02-14 21:13:33 -08:00
nfs2xdr.c NFS: clean up short packet handling for NFSv2 readdir 2008-03-19 18:00:03 -04:00
nfs3acl.c
nfs3proc.c
nfs3xdr.c NFS: clean up short packet handling for NFSv3 readdir 2008-03-19 18:00:06 -04:00
nfs4_fs.h
nfs4namespace.c
nfs4proc.c SUNRPC: Add a helper rpcauth_lookup_generic_cred() 2008-03-14 13:42:49 -04:00
nfs4renewd.c
nfs4state.c SUNRPC: Add a (empty for the moment) destructor for rpc_wait_queues 2008-02-28 23:17:27 -08:00
nfs4xdr.c NFS: clean up short packet handling for NFSv4 readdir 2008-03-19 18:00:10 -04:00
nfsroot.c
pagelist.c
proc.c
read.c nfs: remove duplicate initializations of nfs_read_data field 2008-03-19 17:59:59 -04:00
super.c NFS: Save the value of the "port=" mount option 2008-03-19 18:00:19 -04:00
symlink.c
sysctl.c
unlink.c SUNRPC: Add a helper rpcauth_lookup_generic_cred() 2008-03-14 13:42:49 -04:00
write.c nfs: nfs_redirty_request 2008-03-19 17:59:56 -04:00