From owner-freebsd-hackers Tue Aug 24 23:19:20 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (Postfix) with ESMTP id 5607C15A3D; Tue, 24 Aug 1999 23:18:57 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id PAA29687; Wed, 25 Aug 1999 15:45:43 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id PAA03209; Wed, 25 Aug 1999 15:45:41 +0930 (CST) Date: Wed, 25 Aug 1999 15:45:41 +0930 From: Greg Lehey To: hackers@FreeBSD.org Cc: cvs-committers@FreeBSD.org Subject: Re: Locking in Vinum (was: Mandatory locking?) Message-ID: <19990825154541.P83273@freebie.lemis.com> References: <199908250152.SAA16323@usr01.primenet.com>; <19990825113518.D83273.kithrup.freebsd.cvs-all@freebie.lemis.com> <199908250528.WAA16151@kithrup.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <199908250528.WAA16151@kithrup.com>; from Sean Eric Fagan on Tue, Aug 24, 1999 at 10:28:10PM -0700 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tuesday, 24 August 1999 at 22:28:10 -0700, Sean Eric Fagan wrote: > In article <19990825113518.D83273.kithrup.freebsd.cvs-all@freebie.lemis.com> you write: >> Correct. I lock a stripe at a time. > > What people need to realize is that Greg is doing this locking in user mode. > > As such, he has two real options: > > 1. Implement a vinum-specific ioctl that locks a region of a file at the > device level, or > > 2. Implement standard mandatory region locking, which damned near every > OS in existence has, and which OSes which have existed for decades > longer than unix has existed have always had. > > Now, because this _is_ (currently) a vinum-specific requirement, doing (1) is > not all that unpalatable. However, it's at the wrong level (device driver, > instead of file), and it is merely putting off the inevitable. In fact, this confusion with Vinum is more historical than anything. I started thinking "what tools are available for this as yet not clearly defined task that will run in user mode and require locking?". The obvious first question was "do we support read (i.e. mandatory) locking?". > Or does nobody wish to have working Linux and Solaris/x86 > compatibility after all? > > That reason, if nothing else, is reason to design it, so it gets done > correctly. Exactly, and that was why I started this thread. Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message