Attachments (2)
Change History (16)
by , 16 years ago
Attachment: | torrent.torrent added |
---|
comment:1 by , 16 years ago
sometimes renaming do half-renaming, sometimes renaming do rollback after restart.
here is example torrent.
- add torrent as paused state
- go to files tab, rename root folder
- refresh screen (click to any other torrent, and go back)
- you can see two folders with old name and new name in files tab
- after restart you can see old name\half old half new names\ new names
tested for 1.1.0
comment:2 by , 16 years ago
Version: | 1.1.0_RC3 → 1.1.0 |
---|
each deluge restart you lose one renamed torrent
comment:3 by , 16 years ago
it should be easy to solve. i have run simple test:
- run deluge with one torrent
- check state/ folder
- rename folder, and quit deluge
- and check state/ folder again.
here is output:
[axet@axet-laptop state]$ ll total 112 -rw-rw-r-- 1 axet axet 10394 2009-01-19 00:24 7436273c4e53c5daf7621060617838a6902cd4f3.fastresume -rw-rw-r-- 1 axet axet 92487 2009-01-18 21:20 7436273c4e53c5daf7621060617838a6902cd4f3.torrent -rw-rw-r-- 1 axet axet 909 2009-01-19 18:50 torrents.state [axet@axet-laptop state]$ ll total 112 -rw-rw-r-- 1 axet axet 10394 2009-01-19 00:24 7436273c4e53c5daf7621060617838a6902cd4f3.fastresume -rw-rw-r-- 1 axet axet 92487 2009-01-18 21:20 7436273c4e53c5daf7621060617838a6902cd4f3.torrent -rw-rw-r-- 1 axet axet 909 2009-01-25 17:18 torrents.state [axet@axet-laptop state]$
as you can see state is not changed! look like as simple .save option miss.
comment:4 by , 16 years ago
i check this situation in deluge and libtorrent sources. and found two places:
one is in libtorrent library, it called torrent resume data. you can found code in two functions torrent::read_resume_data/torrent::write_resume_data
library call special field in resume data structure as "mapped_files", which help libtorrent to rename and restore new file names from real file names from original .torrent file.
second place is in deluge, torrent.py make a native call to libtorrent library from def rename_folder / rename_files.
i think deluge forgot to call save resume state.
can anyone confirm this bug, and its location?
comment:5 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:8 by , 16 years ago
Version: | 1.1.0 → 1.1.4 |
---|
persist in 1.1.4
did you mark it as fixed just for fun?
by , 16 years ago
Attachment: | 7436273c4e53c5daf7621060617838a6902cd4f3.torrent added |
---|
torrent file example
comment:11 by , 16 years ago
Version: | 1.1.7 → 1.1.8 |
---|
comment:12 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
There have been some recent fixes to libtorrent regarding renaming files and I suspect this would fix the issue you are experiencing. You can test this by using the 1.1.0_RC branch from svn, using libtorrent's RC_0_14 branch from svn or waiting for libtorrent 0.14.5 to be released.
example torrent with root folder