From owner-freebsd-stable Wed Nov 8 8:45:35 2000 Delivered-To: freebsd-stable@freebsd.org Received: from jak.it.uu.se (jak.it.uu.se [130.238.9.14]) by hub.freebsd.org (Postfix) with ESMTP id 0934E37B479 for ; Wed, 8 Nov 2000 08:45:32 -0800 (PST) Received: (from ertr1013@localhost) by jak.it.uu.se (8.8.5/8.8.5) id RAA16889; Wed, 8 Nov 2000 17:45:21 +0100 (MET) Date: Wed, 8 Nov 2000 17:45:21 +0100 From: Erik Trulsson To: cam Cc: stable@freebsd.org Subject: Re: rpc.lockd broken in FreeBSD NFS Message-ID: <20001108174521.A16846@student.uu.se> References: <200011081355.OAA99219@mailhost.esil.univ-mrs.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200011081355.OAA99219@mailhost.esil.univ-mrs.fr>; from cam@bsdfr.org on Wed, Nov 08, 2000 at 02:53:47PM +0100 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Nov 08, 2000 at 02:53:47PM +0100, cam wrote: > hi > > I have to use rpc.lockd on my NFS server (FreeBSD 4.0-STABLE) and I've notice that it is broken with this line in /etc/defaults/rc.conf: > > 113: rpc_lockd_enable="NO" # Run NFS rpc.lockd (*broken!*) if nfs_server. > > 1/ Why is it broken ? I've search in the archives but I've not found any good answers. You can't have looked that hard. This question did come up earlier this year on -questions and it wasn't difficult to find the answer searching through the list-archives. Anyway, the answer is that lockd is just a dummy implementation. When the client requests a lock rpc.lockd will just say "A lock? Sure, here you have one." without actually locking anything. The only reason for running this is when you have semi-broken clients (usually DOS/Windows based) that insist on getting a lock even though they don't really need it. Then lockd will make them work. > > 2/ Can I use it anyway ? Or this will hang my system ? > Yes, you can use it. No it won't hang your system. But it won't do you any good if you have clients that actually need locking to work. ( I seem to remember somebody saying that there was work in progress writing a fully functional lockd. Has anything materialized on that front? (A quick check doesn't show anything in the repository.)) -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message