From owner-freebsd-questions Wed Apr 26 12:49:39 2000 Delivered-To: freebsd-questions@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 5BCDC37B9D0 for ; Wed, 26 Apr 2000 12:49:36 -0700 (PDT) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id e3QKIpl29478; Wed, 26 Apr 2000 13:18:51 -0700 (PDT) Date: Wed, 26 Apr 2000 13:18:51 -0700 From: Alfred Perlstein To: Chris Webb Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Local locking on NFS mounts Message-ID: <20000426131851.U9754@fw.wintelcom.net> References: <20000426201955.A332@miranda.arachsys.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000426201955.A332@miranda.arachsys.com>; from chris@arachsys.com on Wed, Apr 26, 2000 at 08:19:55PM +0100 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Chris Webb [000426 12:57] wrote: > I'm putting together a diskless box that will be mounting its partitions > from an NFS server on the local network. I'm aware that FreeBSD (at > least as of 4.0) doesn't yet have working NFS locking. > > On a Linux box, I can mount an NFS partition with the option 'nolock' > which arranges for locking to be supported locally[1]---this is quite > sufficient for my application as only one box at a time will have the > relevant partition mounted read-write. (ISTR that this support was > around long before proper NFS locking appeared in Linux, which is why I > came across it.) Is this the default behaviour on FreeBSD, and if not, > is it possible to configure things in this way? I notice there's no > 'nolock' option for FreeBSD mount_nfs. > > [1] I.e. two processes on a single client are protected against one > another, even though processes on two different clients can hold a lock > on the same file because the locks aren't exported. > > Any thoughts gratefully received! Yes, even though the locks don't go across the network local locks are made. -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message