[OpenAFS] sqlite on AFS will not work, even with whole-file locking

Hans-Werner Paulsen hans@MPA-Garching.MPG.DE
Wed, 21 Apr 2010 15:26:56 +0200

On Wed, Apr 21, 2010 at 08:46:54AM -0400, Derrick Brashear wrote:
> if you have a valid callback, the file better be up to date. uh....
Hm, I do not understand. I have the following code on one client:
(1) fd =3D open("afs-file",O_RDWR)
(2) flock(fd,LOCK_EX)
When the file is modified on the fileserver after (1) and before (2)
the copy on the client is NOT up to date (the file is opened O_RDWR).


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
D-85741 Garching