[OpenAFS] Re: dropbox semantics ("irl")

Derrick J Brashear shadow@dementia.org
Thu, 31 May 2007 09:08:52 -0400 (EDT)


On Thu, 31 May 2007, Adam Megacz wrote:

>> We could make it so it effectively became create+append, but there are
>> some tweaks which would need to be done.
>
> ... meaning that RXAFS_StoreData would be permitted only when storing
> to locations beyond the end of the file?  Yeah, that sounds
> reasonable.  And also RXAFS_RenameFile with the dropbox as a target.

Well, it's not that simple.

Consider what happens if some write RPCs are dropped. You have to allow 
holes to be filled.

> Perhaps a time limit would also make sense (if file's modification
> time is more than 1 hour prior to now, refuse all storedata's, even
> beyond the end of the file).

You need to track the real modtime and not mtime, then.