[tahoe-dev] How does file deletion work?

David Triendl david at triendl.name
Tue Jul 14 09:19:15 PDT 2009


On Tue, Jul 14, 2009 at 05:01:00PM +0100, Rufus Pollock wrote:
> 1. a node will keep (its chunks of) a file based on renewal requests.
Yes, storage nodes keep their data until all leases expired (typically they
expire after 30 days).

> 2. If these don't come in the file will be marked for garbage collection.
The storage nodes regularly perform scans of all data and all data with no
leases (leases are stored together with chunk data) will be removed.

> 3. If a file is listed in a directory then this will lead
> automatically to renewal of the relevant leases
No, the files in the directory need to have their leases renewed as well.
This can simply be done with a single deep-check with &add-lease=true call,
which will reach all directories and files beneath it and renew their leases at
the currently reachable servers.

> 4. However if it is no longer linked from any directory explicit
> renewal requests would have to be sent.
Explicit renawal requests always need to be sent, if garbage collection is
enabled on the storage servers.

> 5. So by unlinking a file from all directories, in the absence, of any
> explicit renewal requests, it will be deleted from the grid.
Yes, but you can also just abandon the whole directory, which will yield the
same results.

Cheers,
David
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: Digital signature
Url : http://allmydata.org/pipermail/tahoe-dev/attachments/20090714/9ac0409c/attachment.pgp 


More information about the tahoe-dev mailing list