open() and ESTALE error

Andrey Alekseyev uitm at blackflag.ru
Fri Jun 20 11:55:32 PDT 2003


> Eh, but the generation number for file1 should have been changed! This will

I'm sorry, the generation number is not changed in your scenario. Thus,
I believe if the sequence of actions on the server is 

mv file1 tmpfile
mv file2 file1
mv tmpfile file1

like you described, it's safe to continue to use a cached file handle
for file1 on the server since it still references the original file.
And file2 just disappears from the server.


More information about the freebsd-hackers mailing list