Article View: bionet.software.acedb
Article #2841Re: more on locks
From: Henry J. Cobb
Date: Sun, 26 Sep 1993 10:37
Date: Sun, 26 Sep 1993 10:37
23 lines
1408 bytes
1408 bytes
OK gang, time for ultimate defensive driving here! First: the semaphores will not help NFS one little bit, so drop em. Now the plan: 1) Check to see if the file exists. 2) If it doesn't then open it for exclusive create with no buffering (O_SYNC). 3) Write out the usual stuff. 4) (redundantly) flush it then close it. 5) Reopen the file for reading and check to see if it has what we (hopefully) just wrote to it, and nothing more. Fail on any error, complain to the log files (with an option to mail the Admin) and clean up whatever seems to be resonable. -- Henry J. Cobb hcobb@fly2.berkeley.edu SFB Tyrant
Technical Details
Message-ID:
<HCOBB.93Sep26103706@fly2.berkeley.edu>Path:
arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!mcsun!uknet!doc.ic.ac.uk!agate!fly2.berkeley.edu!hcobbReferences:
<1993Sep23.214236.3664@gserv1.dl.ac.uk> <HCOBB.93Sep24121839@fly2.berkeley.edu> <281t94$5ss@overload.lbl.gov>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f6d40,55885d0bd44c2676 X-Google-Attributes: gidf6d40,public X-Google-ArrivalTime: 1993-09-26 10:41:34 PST Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!mcsun!uknet!doc.ic.ac.uk!agate!fly2.berkeley.edu!hcobb From: hcobb@fly2.berkeley.edu (Henry J. Cobb) Newsgroups: bionet.software.acedb Subject: Re: more on locks Date: 26 Sep 93 10:37:06 Organization: University of California, Berkeley Lines: 23 Distribution: bionet Message-ID: <HCOBB.93Sep26103706@fly2.berkeley.edu> References: <1993Sep23.214236.3664@gserv1.dl.ac.uk> <HCOBB.93Sep24121839@fly2.berkeley.edu> <281t94$5ss@overload.lbl.gov> NNTP-Posting-Host: fly2.berkeley.edu In-reply-to: bks@s27w007.pswfs.gov's message of 25 Sep 1993 16:57:08 GMT