Re: Bittorrent and filesystem API / integration
Jesus Cea <[email protected]>
| Newsgroups | gmane.network.bit-torrent.general |
|---|---|
| Organization | Argo Redes y Servicios Telematicos, S.A. |
| Message-ID | <[email protected]> |
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 _/_/ _/_/_/ _/_/_/ [email protected] 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: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/