Summary: | net-libs/libtorrent should use --with-posix-fallocate | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Steven Robertson <nihilismwow> |
Component: | [OLD] Library | Assignee: | Peter Alfredsen (RETIRED) <loki_val> |
Status: | RESOLVED UPSTREAM | ||
Severity: | enhancement | CC: | drizzt, net-p2p |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Steven Robertson
2008-06-12 14:27:45 UTC
But on filesystems that only nominally support this call, it works by touching every page of every file. Upstream does not recommend this for normal use and I tend to agree. "There's no generic non-blocking way of allocating this space, and posix_fallocate seems to be implemented such that it just touches each page." If it works on your system, I think this is a suitable place for EXTRA_ECONF to be used. Untill such a time as it can be guaranteed that posix_fallocate won't block access to the hard drive for a considerable time when starting a torrent on old filesystems, I'll consider the feature non-finished. Write a patch (or make upstream write a patch) that makes posix_fallocate only be used on filesystems that support it well natively or wait for old systems to be discontinued. |