[OpenAFS] flock on AFS files
Mon, 27 Oct 2008 17:16:45 +0100
today I am totally confused how the flock(2) call should work on
Normally locking works in the following way:
1 fd =3D open("afs-file",O_RDWR)
do something with "afs-file"
When there are two processes (on different machines) executing that
code, the (2) flock call has to update the local copy of the afs-file,
otherwise locking is useless. And the (3) flock call has to sync the
local copy with the fileserver.
Writing a small test program I see that this synchronization isn't done.
How can I use the flock(2) call on AFS files?
Thank you for any help,
Hans-Werner Paulsen hans@MPA-Garching.MPG.DE
MPI f=FCr Astrophysik Tel 089-30000-2602
Karl-Schwarzschild-Str. 1 Fax 089-30000-2235=09