Hello,

[email protected] writes:

> On Linux, fallocate() and posix_fallocate() can be used to pre-allocate
> space. The advantage of fallocate() is that, by using the
> FALLOC_FL_KEEP_SIZE flag, space is allocated but the apparent file size is
> unchanged. That means resuming with --continue works as normal.
> posix_fallocate() on the other hand, sets the file length to its full
> size, meaning that --continue won't work unless there were some way to
> specify the byte offset that wget should continue from.

would you like to send a patch which implements this?  It should be
enabled only for those files that have a known file size (FTP or HTTP
with an explicit content-length header).  I can't imagine of any
admissible heuristic that we can use when this information is missing.

Cheers,
Giuseppe

Reply via email to