[OpenAFS] File locking

Derek Atkins warlord@MIT.EDU
06 Jan 2003 22:02:59 -0500


Synchronization is based on file open/close, not read/write.  If
client 1 close()es the file before client 2 open()s it, then it will
see the new one.  Otherwise it will see the old one.

-derek

"Jayme Cox" <jayme@reality.net> writes:

> I have a question about file locking:
> 
> We have 15 or so openAFS clients (mix of linux and windows) mounting an
> AFS drive over the internet. An application writes a file to the openAFS
> server from client #1 and another application begins to read that same
> file on client #2 microseconds later.
> What version of the file will client #2 read?
> 
> I guess my question boils down to: 
> Does client #2 ask the server if the file is being written (changed)
> every time it does a read? Or does it only ask when it's gotten a 'this
> file has been modified notification'?
> 
> Thanks!
> 
> --Jayme
> 
> --
> Jayme Cox
> Sr Unix Sys Admin
> Kabira Technologies
> One McInnis Parkway
> San Rafael, Ca 94903
> (415) 446-5041
>  
> 
> _______________________________________________
> OpenAFS-info mailing list
> OpenAFS-info@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-info

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord@MIT.EDU                        PGP key available