[NFS] [PATCH] NFS: initialize default port in kernel mount client
authorJames Lentini <jlentini@netapp.com>
Mon, 24 Sep 2007 21:32:49 +0000 (17:32 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 9 Oct 2007 21:17:04 +0000 (17:17 -0400)
If no mount server port number is specified, the previous change to the
kernel mount client inadvertently allows the NFS server's port number to be
the used as the mount server's port number. If the user specifies an NFS
server port (-o port=x), the mount will fail.

The fix below sets the mount server's port to 0 if no mount server
port is specified by the user.

Signed-off-by: James Lentini <jlentini@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

No differences found