[Libtorrent-devel] Need to create files, not in lazy way

a phantom bestattung at gmail.com
Mon Jun 29 15:35:23 UTC 2009


> An option for pre-allocating files was added for when a file gets
> resized, if that's the reason you need it.

Unfortunately no. I need to see file sizes from external scripts prior
to actually start downloading.

By the way, preallocating seems to block all operations quite a while
when it hits on large file. I think it can't be helped, though...

> Because ^E resets the flags, which are used when the underlying files
> are gone and need to be re-created.

But *not* allowing create/resize is nonsense at all, isn't it? If
there's need to do so, we can't proceed any further without doing
that. If the user wanted to (re)start the download, all create/resize
operation should take place, no matter if it is the first time or not.
Actually if only the contents of files are overwritten and their sizes
are not changed, simple close-and-start cycle does trigger
redownloading. I think there're no reason to specially block cases
with size changes, and current behaviour is not reasonable.

Or, maybe, rtorrent should refuse to restart even when there're no
size changes (i.e. detected only changes of time stamps) rather than
silently queue partial rehash...


More information about the Libtorrent-devel mailing list