Merge commit 'tuncer/for-jesper'
[etorrent.git] / doc / fast_resume.txt
blob5f4d0007bd647693256ef3c36ecdafcbb366af05
1 Fast resume support for etorrent:
3 * First, we should get etorrent to understand that there are mnesia
4   tables which are being disk-logged rather than being in RAM.
6 * Then we should construct a process which periodically checks the
7   current state of torrents, builds their bitfields and adds them to
8   the table that is disk-logged.
10   - Every 5 minute we go through the #piece/#torrent/#tracking_map.
12   - Build a bitfield for each.
14   - Store the bitfield together with what torrent that bitfield is
15     for.
17   - Prune bitfields which has no torrents.
19 * Finally, the fs_checker should use this information when starting.
21 * And then, everything should be checked for odd errors.