From owner-freebsd-stable@FreeBSD.ORG Sun Apr 6 13:45:34 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 73065106566B; Sun, 6 Apr 2008 13:45:34 +0000 (UTC) (envelope-from dfr@rabson.org) Received: from itchy.rabson.org (mail.rabson.org [IPv6:2002:50b1:e8f2:1::143]) by mx1.freebsd.org (Postfix) with ESMTP id 128A48FC31; Sun, 6 Apr 2008 13:45:34 +0000 (UTC) (envelope-from dfr@rabson.org) Received: from [IPv6:2002:50b1:e8f2:1:21b:63ff:feb8:5abc] (unknown [IPv6:2002:50b1:e8f2:1:21b:63ff:feb8:5abc]) by itchy.rabson.org (Postfix) with ESMTP id 01D203F9F; Sun, 6 Apr 2008 14:45:32 +0100 (BST) Message-Id: <9913DBA8-256C-4862-8456-773CBC6E5211@rabson.org> From: Doug Rabson To: Tz-Huan Huang In-Reply-To: <6a7033710804060348r4c80fedmb3774bd73dbe1b27@mail.gmail.com> Content-Type: multipart/mixed; boundary=Apple-Mail-115--598417642 Mime-Version: 1.0 (Apple Message framework v919.2) Date: Sun, 6 Apr 2008 14:45:32 +0100 References: <6a7033710804020517y2b0a0336v7ab840ca5a5f5ff4@mail.gmail.com> <6a7033710804052218u3660441bk6d37458af03e7ed@mail.gmail.com> <6eb82e0804052305k4c44679dn92c86c58ac591cdc@mail.gmail.com> <6a7033710804052338l5af386f9xdd5c8d4729be2683@mail.gmail.com> <6a7033710804060158j38c1314u371130b05225c247@mail.gmail.com> <8BB84DC5-36D9-4487-BC04-AA8C8285B947@rabson.org> <6a7033710804060348r4c80fedmb3774bd73dbe1b27@mail.gmail.com> X-Mailer: Apple Mail (2.919.2) Cc: freebsd-stable@freebsd.org, dfr@freebsd.org, Rong-en Fan , Ken Chen Subject: Re: lock problem: nfs server on FreeBSD 7-stable, client on linux X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Apr 2008 13:45:34 -0000 --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 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--