Preallocation not working in 2.2.0beta2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qBittorrent |
Incomplete
|
Undecided
|
Christophe Dumez |
Bug Description
Hi,
I just compiled qbittorrent v2.2.0beta2 and it seems that, even when enabled, preallocation doesn't do a thing. When loading a torrent, there's absolutely no disk activity to be seen and it starts downloading right after being loaded. In other torrent clients (ktorrent, vuze, etc) there's always disk activity for some time while preallocating
My specs/system
openSUSE 11.1 (64 bit)
Ext3 file system
qbittorrent 2.2.0beta2
libtorrent-
QT 4.5.3
I also noticed some odd behavior how it handles trackers. It seems to go through the whole list of tracker and then stops at the first tracker that it can connect to. Other trackers after this one always get the message "Not contacted yet". Is this desirable behavior? I suspect not...
Thanks
For the tracker issue, I don't understand. If you are using libtorrent v0.14.7 (You wrote v0.17.4 but I suppose this is not what you meant), it should not go through the whole list unless all trackers are failing.
With libtorrent v0.15 though, it will go through the whole list, even if the trackers are not failing. This behavior is similar to uTorrent. If you have issues with tracker handling, please ask libtorrent author about it because this is not my code: http:// code.google. com/p/libtorren t/issues/ entry
Regarding the preallocation, I will check my code but first, did you check the hard disk to see if the files were correctly created and it their size is the final expected size? Simply considering hard disk activity is not really a proof that it is not working. Especially because libtorrent uses sparse files to preallocate, it means that it does not actually have to write '0's on the hard disk to preallocate. This is way more efficient and the visual result is the same.