[Libtorrent-devel] Rtorrent not dereferencing symlinks?

crass at berlios.de crass at berlios.de
Thu Oct 9 15:01:13 UTC 2008


I figured out what it was.  It looks like from 0.7.9 to 0.8.0 there was
a change in the usage of the directory field in the session torrent
file.  Because of this rtorrent couldn't find my torrent data.  I wrote
a program to fix this via xmlrpc, which I've attached.  So this is a
result of using old session files with newer rtorrents.  I'm surprised
no one has had this before or brought it up (that I've seen on this
list).

To avoid this in the future we might want to add versioning info in the
session file, and perhaps migration code in rtorrent.

On Thu, 9 Oct 2008 12:37:11 +0200
Josef Drexler <josef at ttdpatch.net> wrote:

> On Oct 8, 2008, at 7:38 PM, <crass at berlios.de> <crass at berlios.de>
> wrote:
> > I've just tried 0.7.9 and 0.8.2 and neither follow symlinks in the
> > download directory to the torrent data.  This works in 0.7.8.  Is  
> > there
> > an option that I can set to get this functionality back?
> 
> symlinks work fine here, and the only code that checks symlinks  
> (make_directory in file_list.cc) hasn't changed at all in the past  
> months. There are no lstat() or readlink() calls anywhere else in  
> libtorrent/rtorrent (aside from the explicit create_link/delete_link  
> functions). So the problem you are experiencing (whatever it may be;  
> you didn't explain the problem) is likely something else and not  
> related to symlinks.
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rtorrent_fix.py
Type: text/x-python
Size: 763 bytes
Desc: not available
Url : http://rakshasa.no/pipermail/libtorrent-devel/attachments/20081009/b5fa5df8/rtorrent_fix.py


More information about the Libtorrent-devel mailing list