From owner-freebsd-bugs@FreeBSD.ORG Sun Apr 13 21:40:10 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 460AC37B401 for ; Sun, 13 Apr 2003 21:40:10 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E45D943FAF for ; Sun, 13 Apr 2003 21:40:09 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h3E4e9Up082099 for ; Sun, 13 Apr 2003 21:40:09 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h3E4e9Ah082098; Sun, 13 Apr 2003 21:40:09 -0700 (PDT) Date: Sun, 13 Apr 2003 21:40:09 -0700 (PDT) Message-Id: <200304140440.h3E4e9Ah082098@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Shao Zhang 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 Reply-To: Shao Zhang List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Apr 2003 04:40:10 -0000 The following reply was made to PR kern/50807; it has been noted by GNATS. From: Shao Zhang To: Doug Barton Cc: Bruce Evans , freebsd-bugs@FreeBSD.org, FreeBSD-gnats-submit@FreeBSD.org Subject: Re: kern/50807: NFS file locking as client deos not working Date: Mon, 14 Apr 2003 14:35:06 +1000 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.