From owner-freebsd-bugs@FreeBSD.ORG Sun Apr 13 21:35:20 2003 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B366B37B404 for ; Sun, 13 Apr 2003 21:35:20 -0700 (PDT) Received: from osprey.activesky.com.au (osprey.activesky.com.au [202.92.123.99]) by mx1.FreeBSD.org (Postfix) with SMTP id ACC8043FBD for ; Sun, 13 Apr 2003 21:35:17 -0700 (PDT) (envelope-from shaoz@activesky.com) Received: (qmail 21897 invoked by uid 10018); 14 Apr 2003 04:35:16 -0000 Received: from shaoz@activesky.com by osprey.activesky.com.au by uid 0 with qmail-scanner-1.16 (uvscan: v4.1.60/v4247. Clear:. Processed in 0.231539 secs); 14 Apr 2003 04:35:16 -0000 X-Qmail-Scanner-Mail-From: shaoz@activesky.com via osprey.activesky.com.au X-Qmail-Scanner: 1.16 (Clear:. Processed in 0.231539 secs) Received: from unknown (HELO shaoz.activesky.com.au) (203.185.212.194) by osprey.activesky.com.au with SMTP; 14 Apr 2003 04:35:16 -0000 Received: from shaoz.activesky.com.au (localhost [127.0.0.1]) h3E4Z7FD002003; Mon, 14 Apr 2003 14:35:07 +1000 (EST) (envelope-from shaoz@activesky.com) Received: (from shaoz@localhost) by shaoz.activesky.com.au (8.12.6/8.12.6/Submit) id h3E4Z66r002002; Mon, 14 Apr 2003 14:35:06 +1000 (EST) (envelope-from shaoz@activesky.com) X-Authentication-Warning: shaoz.activesky.com.au: shaoz set sender to shaoz@activesky.com using -f To: Doug Barton X-Face: $>)r}og6b.JbA$y%X0q?2"p4u&N/WI_fF>^HU'dC+Ze8t]K-SgKfn%U (Doug Barton's message of "Sun, 13 Apr 2003 21:22:51 -0700 (PDT)") References: <200304110718.h3B7IIbJ027995@shaoz.activesky.com.au> <20030411210755.G3888@gamplex.bde.org> <20030413212145.D28372@znfgre.tberna.bet> From: Shao Zhang Date: Mon, 14 Apr 2003 14:35:06 +1000 Message-ID: User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-bugs@FreeBSD.org cc: FreeBSD-gnats-submit@FreeBSD.org Subject: Re: kern/50807: NFS file locking as client deos not working X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Apr 2003 04:35:21 -0000 On [Sun, 13 Apr 2003 21:22:51 -0700 (PDT)], Doug Barton wrote: > On Mon, 14 Apr 2003, Shao Zhang wrote: > >> My understanding is that you only need to enable lockd and statd for the >> server. According to man rc.conf: > > Unfortunately, the rc docs haven't been updated properly in this regard. > The nature of RPC services pretty much requires rpc.statd. If you're using > locking, you definitely need it on both the client and server. I have tried to enable both rpc.lockd and rpc.statd on FreeBSD. The Linux file server runs rpc.lockd in kernel mode and rpc.statd is running as well. Now any program that requires file locking simply hangs on FreeBSD. I verified this using bogofilter -s < ~/Mail/spam, or just mutt -f ~/Mail/spam. If you do a strace on it, it hangs on fcntl(..., O_FSETLK, ...) Currently, I am using nolockd in /etc/fstab as a workaround. Regards, Shao.