open() and ESTALE error
Don Lewis
truckman at FreeBSD.org
Fri Jun 20 13:40:42 PDT 2003
On 20 Jun, Andrey Alekseyev wrote:
>> 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.
Well just its contents ... but this still violates POLA.
More information about the freebsd-hackers
mailing list