]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Ensure that NFS version 4 mounts use NFS_PORT if nfsport wasn't set
authorChuck Lever <chuck.lever@oracle.com>
Fri, 26 Oct 2007 17:32:19 +0000 (13:32 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 30 Jan 2008 07:05:45 +0000 (02:05 -0500)
commitc605cfa54fd107d7d100675d84b4ed3c419a5b27
treeff60c92740377b50e27a879b4155394dcd32844d
parent7a2d96d885bf4a34e7a8ce56d0c23cd0e3765cdc
NFS: Ensure that NFS version 4 mounts use NFS_PORT if nfsport wasn't set

Text-based mount option parsing introduced a minor regression in the
behavior of NFS version 4 mounts.  NFS version 4 is not supposed to require
a running rpcbind service on the server in order for a mount to succeed.

In other words, if the mount options don't specify a port number, the port
number is supposed to default to 2049.  For earlier versions of NFS, the
default port number was zero in order to cause the RPC client to autobind
to the server's NFS service.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/super.c