[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:
>> There is one exception to this behaviour on Unix. If you have opened =
>> file for writing, and dirtied that file, then the version of the data =
>> your client remains that at the point the file was dirtied - any
>> subsequent changes on the fileserver won't be delivered to your =
>> until you close the open file handle (and the data is sent to the
>> server)
> 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.