[OpenAFS] Re: [OpenAFS-devel] OpenAFS callbacks

Simon Wilkinson sxw@inf.ed.ac.uk
Mon, 11 Apr 2011 21:50:03 +0100


On 11 Apr 2011, at 20:47, Russ Allbery wrote:

> Simon Wilkinson <sxw@inf.ed.ac.uk> writes:
>=20
>> There is one exception to this behaviour on Unix. If you have opened =
a
>> file for writing, and dirtied that file, then the version of the data =
on
>> your client remains that at the point the file was dirtied - any
>> subsequent changes on the fileserver won't be delivered to your =
client
>> until you close the open file handle (and the data is sent to the
>> server)
>=20
> Or when you call fflush, no?

The code here is pretty gnarly, but yeah - calling fsync should clear =
the IFDataMod flag which stops us from getting new data from the server, =
and so result in you seeing new data, providing you don't write anything =
else to the file.

Cheers,

Simon.