From owner-freebsd-questions@FreeBSD.ORG Sat Jan 15 23:54:39 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 031CB16A4CE for ; Sat, 15 Jan 2005 23:54:39 +0000 (GMT) Received: from top.daemonsecurity.com (FW-182-254.go.retevision.es [62.174.254.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 67D6143D3F for ; Sat, 15 Jan 2005 23:54:38 +0000 (GMT) (envelope-from norgaard@locolomo.org) Received: from [192.168.0.32] (charm.daemonsecurity.com [192.168.0.32]) by top.daemonsecurity.com (Postfix) with ESMTP id 1F2D1FD01F; Sun, 16 Jan 2005 00:54:37 +0100 (CET) Message-ID: <41E9AD3A.6050209@locolomo.org> Date: Sun, 16 Jan 2005 00:54:34 +0100 From: Erik Norgaard User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20041114 X-Accept-Language: en, en-us, da, it, es MIME-Version: 1.0 To: Bryce Kahle References: <24CF3A7650B276458F0A28E49AF18EBE015FBE@binary.exchange.binary.net> In-Reply-To: <24CF3A7650B276458F0A28E49AF18EBE015FBE@binary.exchange.binary.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: NFS file locking X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Jan 2005 23:54:39 -0000 Bryce Kahle wrote: > I've been researching NFS and its file locking capabilities on FreeBSD > and I can't seem to find the answer to my question, so I thought I would > ask it here. > > In this document > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install-post.h > tml#NETWORK-CONFIGURATION-CONT > > It mentions this: > "The next option listed here is the rpc.lockd option, which, when > selected, will provide file locking services. This is usually used with > rpc.statd to monitor what hosts are requesting locks and how frequently > they request them. While these last two options are marvelous for > debugging, they are not required for NFS servers and clients to operate > correctly." > > Is rpc.lockd required for fcntl() style locking to work correctly? NFS in it self does not provide any filelocking mechanisms. Your only option is to rely on lockd. lockd needs statd to start correctly. I think that lockd makes filelocking work among other nfs clients but I don't know if the server will respect this kind of filelocking or if it is interpreted as fcntl style locking. I hope this answers half your question :-) cheers, Erik -- Ph: +34.666334818 web: www.locolomo.org S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt Subject ID: A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9 Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2