[OpenAFS] best practice for salvage
Robert Banz
rob@nofocus.org
Thu, 3 Apr 2008 13:52:43 -0700
On Apr 3, 2008, at 1:11 PM, Jeffrey Altman wrote:
> Robert Banz wrote:
>
>> That wouldn't work, because the file could have been open()'d by
>> two different cache managers, unlinked by one, but should still be
>> able to be written to.
>
> That doesn't work. Eventually the cache manager on the machine on
> which
> the unlink() was executed is going to call RXAFS_RemoveFile(). When
> that happens the other client that has the file open locally is
> going to lose. Next time it calls RXAFS_StoreFile() it will get
> VNOVNODE.
>
Only if one of them closes the file will that occur ;)
-rob