[2427] in testers
Re: sun4 7.7B: afs: byte-range lock/unlock ignored; make sure no one else is running this program again
daemon@ATHENA.MIT.EDU (Ezra Peisach)
Wed Jun 22 11:33:31 1994
To: Carla Fermann <carla@MIT.EDU>
Cc: testers@MIT.EDU
In-Reply-To: Your message of Wed, 22 Jun 1994 11:24:05 -0400.
<9406221524.AA06888@mickey-mouse.MIT.EDU>
Date: Wed, 22 Jun 1994 11:33:22 EDT
From: Ezra Peisach <epeisach@MIT.EDU>
I;ve seen this part of the AFS kernel code...
What this warning means is that a program tried to use fcntl(), or from
lockf() to lock a range of a file.... AFS can only do whole-fie flocks,
not byte ranges and gives the warning that any other program using the
code will trample over the file....
Looking at the kernel source code however, I am dismayed to find (at
least in 3.3beta for OSF/1 possibly others) that the warning is issued
and then the lock operation is ignored... I would prefer a whole lck
then, but then the same procee may deadlock...
Note: if you lock the entire file, then all is ok and now warning is
issued... Maybe mh-rmail can be modified to lock the entire file in this
scenario...
Ezra