Linux NFS development
 help / color / mirror / Atom feed
From: Steve Dickson <SteveD@redhat.com>
To: nfs@lists.sourceforge.net
Subject: [PATCH 09/11] nfs-utils: mount: Fixed mounts to multi-home servers
Date: Mon, 26 Feb 2007 06:18:54 -0500	[thread overview]
Message-ID: <45E2C21E.9030501@RedHat.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 0 bytes --]



[-- Attachment #2: patch-09.dif --]
[-- Type: text/x-patch, Size: 814 bytes --]

commit 253c6b866a1ed4678c30131a41ef96821bae9d5f
Author: Steve Dickson <steved@redhat.com>
Date:   Sat Feb 24 16:08:22 2007 -0500

    Doing a connect on UDP sockets causes the Linux network
    stack to reject UDP patches from multi-home server with
    nic on the same subnet which caused mounts to hang.
    
    Signed-off-by: Steve Dickson <steved@redhat.com>

diff --git a/support/nfs/conn.c b/support/nfs/conn.c
index 89f7676..06afcc4 100644
--- a/support/nfs/conn.c
+++ b/support/nfs/conn.c
@@ -98,7 +98,7 @@ int get_socket(struct sockaddr_in *saddr, u_int p_prot, int resvp)
 			return RPC_ANYSOCK;
 		}
 	}
-	if (type == SOCK_STREAM || type == SOCK_DGRAM) {
+	if (type == SOCK_STREAM) {
 		cc = connect(so, (struct sockaddr *)saddr, namelen);
 		if (cc < 0) {
 			rpc_createerr.cf_stat = RPC_SYSTEMERROR;

[-- Attachment #3: Type: text/plain, Size: 345 bytes --]

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

[-- Attachment #4: Type: text/plain, Size: 140 bytes --]

_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

             reply	other threads:[~2007-02-26 11:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-26 11:18 Steve Dickson [this message]
2007-02-27  6:32 ` [PATCH 09/11] nfs-utils: mount: Fixed mounts to multi-home servers Neil Brown
2007-02-27 18:12   ` Jeff Layton
2007-03-01  1:48     ` Neil Brown
2007-03-11 19:58       ` Jeff Layton
2007-03-11 22:38         ` Neil Brown

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=45E2C21E.9030501@RedHat.com \
    --to=steved@redhat.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