[BitTorrent] Bittorrent and filesystem API / integration

Jesus Cea jcea at argo.es
Thu Jan 13 04:11:18 EST 2005


Nick Johnson wrote:
> No, that's why I stated that you should check the mtime of the bitmap 
> versus the files it concerns before starting. As long as the program 
> ensures it flushes its buffers for the files before writing the updated 
> bitmap, you know that if the bitmap is newer than the files, it is valid.

Yes. You must do "fsync" everywhere. Performance sucks :-p

Perhaps better to update the bitmap not everytime you complete a part, 
but every minute or so.

-- 
Jesus Cea Avion                         _/_/      _/_/_/        _/_/_/
jcea at argo.es http://www.argo.es/~jcea/ _/_/    _/_/  _/_/    _/_/  _/_/
                                       _/_/    _/_/          _/_/_/_/_/
PGP Key Available at KeyServ   _/_/  _/_/    _/_/          _/_/  _/_/
"Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/BitTorrent/

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

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 





More information about the BitTorrent mailing list