[Tilesathome] Proposal: Keeping tileset as one file

Matthias Julius lists at julius-net.net
Thu Jun 26 14:56:13 BST 2008


Frederik Ramm <frederik at remote.org> writes:

> Hi,
>
>>> If client A uploads a tar with tiles 1, 2, 3, and later B uploads  
>>> a tar
>>> with tiles 10, 11, 3, then you have two choices:
>>>
>>> 2. replace the tile in-place in A's archive, which would require  
>>> taking
>>> apart both tar files and re-assembling them.
>>
>> You just need to delete the file from A and keep the new file in B.
>> Once A is empty you can delete that file as well.
>
> Which would be the same as my option (1) which you have'nt quoted  
> above;-)

I guess I should have.  And this would be choice 1.5.

> ... actually "deleting" the file from, say, a tar archive wouldn't
> gain you anything storage-wise as you cannot shorten the tar, so
> it's enough to simply drop the old reference from the index.  Plus
> you'll need the reverse index to detect whether the file is "empty".

I though you would just need to reed the TOC of the tar file.  Then
you wouldn't need to search the whole index file to find out whether A
is still referenced somewhere.  But then I don't know much about the
internals of a tar archive.

Matthias




More information about the Tilesathome mailing list