Coder Social home page Coder Social logo

Comments (2)

rakshasa avatar rakshasa commented on July 26, 2024

It is a planned feature, yet not going to be done anytime soon.

from rtorrent.

pyroscope avatar pyroscope commented on July 26, 2024

An implementation of this that would add a transparent mapping of "info.files.path" entries to filesystem paths that should be actually used would not add much of an additional implementation burden (instead of say adding a "." in front of deselected files, just do a map lookup instead). This would open the possibility to reroute a torrent's content paths in addition to its root path (which is already possible).

Say, "f.path.target[.set]", storing the map in the session dir under a new key "file_targets". To ease implementation, the setter would error out if the file was already created and the item is not in stopped state; if stopped, it would mark all affected chunks as unseen, so whatever outside party changes a mapping after initial creation must trigger a rehash afterwards.

That could be slighty enhanced to NOT do that if both paths reside in the same filesystem and the target doesn't exist yet (just rename() then). All active mmap()s should survive this, since they're bound to the handle and thus the inode, which doesn't change.

from rtorrent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.