Page 2 of 2

Re: Deluge keeps pause and resume by itself.

Posted: Mon Aug 06, 2007 10:11 am
by Lord_neo
I had the same problem with version 0.5.4 on Feisty, by installing your binary for i386.

Only for some torrents, they are paused and resumed continuosly. It seems now ok by setting compact allocation. :D


Thanks and good work. ;)


Bye

Re: Deluge keeps pause and resume by itself.

Posted: Mon Aug 06, 2007 5:54 pm
by mezz
markybob wrote:ok, i've committed the change to svn trunk. give rev 1310 a shot and let me know how full allocation works or doesnt work :)
Thanks!

Bummer, it doesn't work. I have tried to do add like this:

Code: Select all

#if defined(__FreeBSD__)
// for statfs()
#include <sys/param.h>
#include <sys/mount.h>
#endif
Then add ' || defined(__FreeBSD__)' in two places (984 and 1029 line) and it compiles fine, but it still doesn't work in runtime. I think it will requiring more hack than just do simple thing. It can't be same with '__APPLE__', because FreeBSD doesn't has getattrlist() function. I will have to ask in FreeBSD mailing list to see if someone can help me to port storage.cpp on FreeBSD.

I think, you should keep this patch in case if someone is using Linux and mount in UFS2.

Re: Deluge keeps pause and resume by itself.

Posted: Mon Aug 06, 2007 7:41 pm
by plisk
mezz: have you tried to compile libtorrent without -DNDEBUG=1 ? It's in setup.py line 104. Then libtorrent will write buf.f_type in storage.cpp line 1035 and this is the magic number what it expects to enable sparsed files support for specific filesystem.

Re: Deluge keeps pause and resume by itself.

Posted: Mon Aug 06, 2007 10:34 pm
by mezz
plisk wrote:mezz: have you tried to compile libtorrent without -DNDEBUG=1 ? It's in setup.py line 104. Then libtorrent will write buf.f_type in storage.cpp line 1035 and this is the magic number what it expects to enable sparsed files support for specific filesystem.
No, I haven't tried until now. The output is strange. It displays as 'buf.f_type 5'. I am not sure where it gets from. I went ahead to skip check on the filesystem by using this patch:

http://people.freebsd.org/~mezz/diff/pa ... torage.cpp

It works great so far, I can see Deluge creates fake files with size. I will committing it in our ports tree, so it's your choice if you want to use this patch or not since it's hack.

While I am here, is it normal for Deluge to leave the fake files when I remove the torrent from Deluge? I selected which file I want to download, so when I deleted torrent from Deluge and the fake files are still in directory.

Re: Deluge keeps pause and resume by itself.

Posted: Mon Aug 06, 2007 11:06 pm
by markybob
mezz wrote:
plisk wrote:mezz: have you tried to compile libtorrent without -DNDEBUG=1 ? It's in setup.py line 104. Then libtorrent will write buf.f_type in storage.cpp line 1035 and this is the magic number what it expects to enable sparsed files support for specific filesystem.
No, I haven't tried until now. The output is strange. It displays as 'buf.f_type 5'. I am not sure where it gets from. I went ahead to skip check on the filesystem by using this patch:

http://people.freebsd.org/~mezz/diff/pa ... torage.cpp

It works great so far, I can see Deluge creates fake files with size. I will committing it in our ports tree, so it's your choice if you want to use this patch or not since it's hack.

While I am here, is it normal for Deluge to leave the fake files when I remove the torrent from Deluge? I selected which file I want to download, so when I deleted torrent from Deluge and the fake files are still in directory.
i've committed it to svn trunk

Re: Deluge keeps pause and resume by itself.

Posted: Mon Aug 06, 2007 11:35 pm
by markybob
mezz wrote:While I am here, is it normal for Deluge to leave the fake files when I remove the torrent from Deluge? I selected which file I want to download, so when I deleted torrent from Deluge and the fake files are still in directory.
yes...i'll fix this.

Re: Deluge keeps pause and resume by itself.

Posted: Tue Aug 07, 2007 1:12 am
by mezz
Thanks! :)

Re: Deluge keeps pause and resume by itself.

Posted: Sat Aug 11, 2007 7:02 am
by mezz
Umm... I am not sure why libtorrent/src/storage.cpp has been changed without test on FreeBSD? There are two problems:

1) It doesn't build, because of two missing include of headers for statfs(). See my old comments above about that (sys/param.h and sys/mount.h).
2) After fix that build, it still doesn't work in the runtime. Again, see my old comments above.

Update patch: http://people.freebsd.org/~mezz/diff/pa ... torage.cpp

Re: Deluge keeps pause and resume by itself.

Posted: Sat Aug 11, 2007 5:37 pm
by plisk
mezz: i'd better submit issue with FreeBSD directly to libtorrent's trac, so you can discuss all of it with the author of libtorrent itself without deluge being a mediator.

Re: Deluge keeps pause and resume by itself.

Posted: Sat Sep 29, 2007 9:47 pm
by defcon
http://forum.deluge-torrent.org/viewtop ... &sk=t&sd=a
same problem with ubuntu Gutsy Gibbon Beta, all updates installed, I am using NAT, could this be the problem?
Transmission and every other client works but I do not like them, deluge rocks!