Requesting full file preallocation
Posted: Thu Aug 04, 2011 8:47 pm
Hi,
new filesystems (ext4, xfs, etc) support a fast way to allocate a large file in one system call: fallocate(). This would make unfragmented downloads if enabled, which is a nice feature of all torrent client. (btw transmission already supports it, but i like deluge much more ). Is there any plan to support it?
The best way would be not only having a switch to preallocate all files with fallocate, but having a size limit below to use. Because some times there are 100GB+ torrents from which I'd like to download only a couple of megabytes. You might even not have so much free space... So pre-allocation would nicely work for a movie or a dvd image, making them not fragmented, but would be an overkill on extra large torrents.
For discussion about fallocate() see http://trac.fonosfera.org/fon-ng/ticket/997
new filesystems (ext4, xfs, etc) support a fast way to allocate a large file in one system call: fallocate(). This would make unfragmented downloads if enabled, which is a nice feature of all torrent client. (btw transmission already supports it, but i like deluge much more ). Is there any plan to support it?
The best way would be not only having a switch to preallocate all files with fallocate, but having a size limit below to use. Because some times there are 100GB+ torrents from which I'd like to download only a couple of megabytes. You might even not have so much free space... So pre-allocation would nicely work for a movie or a dvd image, making them not fragmented, but would be an overkill on extra large torrents.
For discussion about fallocate() see http://trac.fonosfera.org/fon-ng/ticket/997