Registered Member
|
Hello,
Ktorrent refuses to start any new torrents because it is complaining there is no space available for it. I'm on freeBSD 7.2 and have seen this with versions 3.3.1 and 3.3.2. It appears that ktorrent calculates the disk available on the root partition '/', not on the path the file is to be downloaded (my home directory) which may be situated on a different partition where the free space is different (as it is in my case). I haven't figured out where this '/' path was defined so I would need some help to go farther. Thank you all for the great piece of software ktorrent is. |
Moderator
|
Are you saving to a partition mounted using gvfs ? |
Registered Member
|
Hi, I'm very much a n00b to ktorrent.
I'm getting the same problem, when I try to download a torrent it tells me I've not enough disk space when I should have about 300Gs. The comp is only a few weeks old, it came with Windows 7 which kept crashing so I put an Ubuntu partition on it, which I use almost solely now. |
Registered Member
|
No, it's my '/usr' partition which is mounted at boot time. And it's separate from the '/' partition. |
Moderator
|
How much available space is actually shown in the dialog ?
|
Registered Member
|
The dialog, you mean, when I open a new torrent ? Yes, the disk space is correct (500 MB). Sorry, I was not clear enough. The problem is with torrents already in the list, when I try to restart them. |
Registered Member
|
Actually, I can't reproduce the problem with my new torrents. It does work. |
Moderator
|
Take a look in the log file (~/.kde/share/apps/ktorrent/log) , occasionally you should see something like this:
FreeBytes XX GB Downloaded YY MB Remaining ZZ MB If there is something wrong with the calculation you should get wrong numbers here. |
Registered Member
|
Here is a sample :
If I modify the following lines of libbtcore/torrent/torrentcontrol.cpp, it works as expected :
And I get the following log (I added some log output at other places) :
And the relevant part of the df command :
|
Moderator
|
The OUTPUTDIR variable in the stats file of that torrent is wrong.
Right click on a torrent -> open directory -> temporary directory In that directory you can find the stats file. The question is how can we get in this situation ? If you open a new torrent is it also wrong ? |
Registered Member
|
Yes, OUTPUTDIR is set to / in the stats file.
No, newer torrents are OK.
I remember I ran out of space at some point. How does Ktorrent manage in that case (if it's unable to save its internal stuff while quiting) ? |
Moderator
|
I'm not quite sure what would happen in such a situation. It probably depends where exactly it goes wrong when the file is saved.
I'm gonna add some code which recovers the OUTPUTDIR variable if it can't be loaded. |
Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]