At 4:39 PM -0800 11/11/99, Alfred Perlstein wrote:
>On Thu, 11 Nov 1999, Doug Barton wrote:
>> The following small program illustrates an obscure problem with
>> file locking with freebsd as an NFS client. I'm aware of the problems with
>
>We currently don't support client or server locking.
>
>work is in progress, but the dolt that took the job is extremely busy
>right now. (me)
Yup, byte range locking fcntl APIs are present but over NFS they don't work.
So shouldn't one be able to get entire-file locking with the old-fashioned:
open("foo.lockfile", O_CREAT | O_EXCL, 0644)
You would think so, but my experience is that reliably protects critical
sections only when using NFS Version 3. Not V2. Read about EXCLUSIVE in
the CREATE procedure in RFC 1813 for another level of detail.
--
Conrad Minshall ... [EMAIL PROTECTED] ... 408 974-2749
Apple Computer ... Mac OS X Core Operating Systems ... NFS/UDF/etc
Alternative email address: [EMAIL PROTECTED]
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message