I haven't actually looked at the deluge code for this, but am assuming
it's using os.rename?
* If the location is the same, do nothing (deluge 1.3 behavior)
* If the files aren't actually moving (same physical device), don't run
recheck. This is just a couple of inode updates, so should be pretty
safe. (deluge 1.3 behavior)
* When moving to a new location, unless there's a Python function that
already does this, you may want to do the move yourself so that you can
fsync. In that case, the recheck should not be necessary. Opening the fd
after the move and running fsync may also work, but I'm not sure (it may
only try to flush the writes you've done since opening the descriptor
rather than all dirty blocks for the file)
--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3300>
Deluge <https://deluge-torrent.org/>
Deluge Project