Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Apr 2008 14:45:32 +0100
From:      Doug Rabson <dfr@rabson.org>
To:        Tz-Huan Huang <tzhuan@csie.org>
Cc:        freebsd-stable@freebsd.org, dfr@freebsd.org, Rong-en Fan <grafan@gmail.com>, Ken Chen <ken73.chen@gmail.com>
Subject:   Re: lock problem: nfs server on FreeBSD 7-stable, client on linux
Message-ID:  <9913DBA8-256C-4862-8456-773CBC6E5211@rabson.org>
In-Reply-To: <6a7033710804060348r4c80fedmb3774bd73dbe1b27@mail.gmail.com>
References:  <6a7033710804020517y2b0a0336v7ab840ca5a5f5ff4@mail.gmail.com> <d018a9bd0804021002n3a6234e7y66c2b50a1594afe9@mail.gmail.com> <6a7033710804052218u3660441bk6d37458af03e7ed@mail.gmail.com> <6eb82e0804052305k4c44679dn92c86c58ac591cdc@mail.gmail.com> <6a7033710804052338l5af386f9xdd5c8d4729be2683@mail.gmail.com> <AEECB0A1-E0B5-4443-9063-96C69F2CFA5D@rabson.org> <6a7033710804060158j38c1314u371130b05225c247@mail.gmail.com> <8BB84DC5-36D9-4487-BC04-AA8C8285B947@rabson.org> <6a7033710804060348r4c80fedmb3774bd73dbe1b27@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail-115--598417642
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed;
	delsp=yes
Content-Transfer-Encoding: 7bit


On 6 Apr 2008, at 11:48, Tz-Huan Huang wrote:

> On Sun, Apr 6, 2008 at 5:53 PM, Doug Rabson <dfr@rabson.org> wrote:
>> One thing I did notice is that the client appears to be trying to  
>> connect
>> to the server on tcp port 751 and the server is rejecting that  
>> connection.
>> I'm not sure I trust the output of sockstat - could you show me the  
>> output
>> of rpcinfo and netstat -an.
>
> Here you are:
> http://w.csie.org/~tzhuan/tmp/rpcinfo.txt
> http://w.csie.org/~tzhuan/tmp/netstat.txt

This patch should fix the problem. Sorry for the inconvenience.


--Apple-Mail-115--598417642
Content-Disposition: attachment;
	filename=lockd.diff
Content-Type: application/octet-stream;
	x-unix-mode=0664;
	name="lockd.diff"
Content-Transfer-Encoding: 7bit

Index: rpc.statd/statd.c
===================================================================
RCS file: /home/ncvs/src/usr.sbin/rpc.statd/statd.c,v
retrieving revision 1.15
diff -u -r1.15 statd.c
--- rpc.statd/statd.c	5 Aug 2007 16:33:06 -0000	1.15
+++ rpc.statd/statd.c	6 Apr 2008 13:38:20 -0000
@@ -167,6 +167,9 @@
 	      }
 	  }
 
+	  if (nconf->nc_semantics != NC_TPI_CLTS)
+	      listen(sock, SOMAXCONN);
+
 	  transp = svc_tli_create(sock, nconf, NULL,
 	    	RPC_MAXDATASIZE, RPC_MAXDATASIZE);
       } else {
Index: rpc.lockd/lockd.c
===================================================================
RCS file: /home/ncvs/src/usr.sbin/rpc.lockd/lockd.c,v
retrieving revision 1.20.2.1
diff -u -r1.20.2.1 lockd.c
--- rpc.lockd/lockd.c	22 Mar 2008 12:05:35 -0000	1.20.2.1
+++ rpc.lockd/lockd.c	6 Apr 2008 13:36:08 -0000
@@ -425,6 +425,9 @@
 			exit(1);
 		}
 
+		if (nconf->nc_semantics != NC_TPI_CLTS)
+		    listen(fd, SOMAXCONN);
+
 		transp = svc_tli_create(fd, nconf, NULL,
 		    RPC_MAXDATASIZE, RPC_MAXDATASIZE);
 

--Apple-Mail-115--598417642
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed
Content-Transfer-Encoding: 7bit



--Apple-Mail-115--598417642--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9913DBA8-256C-4862-8456-773CBC6E5211>