Commit:     aad700073557c7932ef9f81c19a5e0647f8a6850
Parent:     efd8340bb19c26a43e77c92fee9283b1f5777204
Author:     James Lentini <[EMAIL PROTECTED]>
AuthorDate: Mon Sep 24 17:32:49 2007 -0400
Committer:  Trond Myklebust <[EMAIL PROTECTED]>
CommitDate: Tue Oct 9 17:17:04 2007 -0400

    [NFS] [PATCH] NFS: initialize default port in kernel mount client
    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 <[EMAIL PROTECTED]>
    Signed-off-by: Trond Myklebust <[EMAIL PROTECTED]>
 fs/nfs/super.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index 5085f53..094d2f8 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -1027,8 +1027,10 @@ static int nfs_try_mount(struct nfs_parsed_mount_data 
                sin = args->mount_server.address;
                sin = args->nfs_server.address;
-       if (args->mount_server.port != 0)
-               sin.sin_port = htons(args->mount_server.port);
+       /*
+        * autobind will be used if mount_server.port == 0
+        */
+       sin.sin_port = htons(args->mount_server.port);
         * Now ask the mount server to map our export path
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to