[OpenAFS] AFS Locking

Pucky Loucks ploucks@pixpo.com
Thu, 18 May 2006 20:20:57 -0700


Worked perfect thanks.


On May 18, 2006, at 10:14 AM, Chaskiel M Grundman wrote:

> I suggest switching to fcntl() style locking, which will work if  
> l_whence is SEEK_SET, and l_start and l_len are both 0.
>
> I'm actually surprised that flock locking works on 2.4. My reading  
> of 2.4.19 and 2.4.32 suggests that flock() only works locally on  
> 2.4 (i.e., it does not allow a network filesystem to send lock  
> requests to the server) It is possible your vendor kernel or libc  
> converts flock locks to fcntl locks.
>
> Linux 2.6 does allow network filesystems to intercept flock  
> requests, but afs does not yet do this.