[BitTorrent] Bittorrent and filesystem API / integration

Nick Johnson arachnid at notdot.net
Wed Jan 12 00:04:06 EST 2005

Elliott Mitchell wrote:

> You've got the wrong approach to this problem. You shouldn't change the
>FS, but the way BT stores things. Explicitly store a bit of data about
>the download status, instead of relying on the implicit "if the checksum
>matches, it has been downloaded". No FS change needed. Ensure the status
>data is updated correctly and you needn't ever check the entire thing
>(unless you know something has gone wrong).
For example, you could, when allocating files, create a temporary 
(hidden) file in the same directory that contains the bitmap for the 
torrent. Before starting, check the mtime on the bitmap file is at least 
as recent as the most recent of the torrent files, and if so, use it 
instead of hashing the whole thing manually.

-Nick Johnson

Yahoo! Groups Links

<*> To visit your group on the web, go to:

<*> To unsubscribe from this group, send an email to:
    BitTorrent-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:

More information about the BitTorrent mailing list