From: Chuck Lever <chuck.lever@oracle.com>
To: James Lentini <jlentini@netapp.com>
Cc: nfs@lists.sourceforge.net
Subject: Re: [PATCH] NFS: initialize default port in kernel mount client
Date: Mon, 24 Sep 2007 18:32:41 -0400 [thread overview]
Message-ID: <46F83B09.2090202@oracle.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0709241731560.32008@jlentini-linux.nane.netapp.com>
[-- Attachment #1: Type: text/plain, Size: 1119 bytes --]
Hi James-
James Lentini wrote:
> If no mount server port number is specified, this change to the kernel
> mount client
>
> http://linux-nfs.org/cgi-bin/gitweb.cgi?p=nfs-2.6.git;a=commitdiff;h=209ce98
> 06996537eceaf07d95def0e9300316c84
>
> 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>
> --
>
> super.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> Index: nfs-2.6/fs/nfs/super.c
> ===================================================================
> --- nfs-2.6/fs/nfs/super.c
> +++ nfs-2.6/fs/nfs/super.c
> @@ -1006,6 +1006,8 @@ static int nfs_try_mount(struct nfs_pars
> sin = args->nfs_server.address;
> if (args->mount_server.port != 0)
> sin.sin_port = htons(args->mount_server.port);
> + else
> + sin.sin_port = htons(0);
Why not just set sin.sin_port = args->mount_server.port unconditionally?
[-- Attachment #2: chuck.lever.vcf --]
[-- Type: text/x-vcard, Size: 290 bytes --]
begin:vcard
fn:Chuck Lever
n:Lever;Chuck
org:Oracle Corporation;Corporate Architecture: Linux Projects Group
adr:;;1015 Granger Avenue;Ann Arbor;MI;48104;USA
title:Principal Member of Staff
tel;work:+1 248 614 5091
x-mozilla-html:FALSE
url:http://oss.oracle.com/~cel
version:2.1
end:vcard
[-- Attachment #3: Type: text/plain, Size: 228 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
[-- Attachment #4: Type: text/plain, Size: 140 bytes --]
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
next prev parent reply other threads:[~2007-09-24 22:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-24 21:32 [PATCH] NFS: initialize default port in kernel mount client James Lentini
2007-09-24 22:32 ` Chuck Lever [this message]
2007-09-24 23:53 ` James Lentini
2007-09-25 15:58 ` Chuck Lever
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46F83B09.2090202@oracle.com \
--to=chuck.lever@oracle.com \
--cc=jlentini@netapp.com \
--cc=nfs@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox