The attached patch adds a posix-fallocate flag to libtorrent. It applies the patch described here: http://libtorrent.rakshasa.no/ticket/460#comment:16 I've confirmed that this works with xfs on x86: file downloaded from http://torrents.gentoo.org/torrents/install-x86-minimal-2008.0.torrent WITHOUT posix-fallocate: $ xfs_bmap install-x86-minimal-2008.0/install-x86-minimal-2008.0.iso install-x86-minimal-2008.0/install-x86-minimal-2008.0.iso: 0: [0..2047]: 704539256..704541303 1: [2048..2175]: 704538112..704538239 2: [2176..2751]: 704538680..704539255 <...SNIP...> 65: [161504..161759]: 704538240..704538495 66: [161760..162287]: 704541304..704541831 67: [162288..162887]: 714383888..714384487 file downloaded from http://torrents.gentoo.org/torrents/install-x86-minimal-2008.0.torrent WITH posix-fallocate: $ xfs_bmap install-x86-minimal-2008.0/install-x86-minimal-2008.0.iso install-x86-minimal-2008.0/install-x86-minimal-2008.0.iso: 0: [0..162887]: 548504..711391
Created attachment 191227 [details, diff] adds posix-fallocate use flag to net-libs/libtorrent
It's seems that posix fallocate is integrated in 0.12.5 ( http://rakshasa.no/pipermail/libtorrent-devel/2009-June/002177.html ). I think there is no reason to keep this bug open.
Closing per last comment.