Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config: Add disk space check for any new item #70

Open
pyroscope opened this issue Jun 5, 2018 · 2 comments
Open

config: Add disk space check for any new item #70

pyroscope opened this issue Jun 5, 2018 · 2 comments

Comments

@pyroscope
Copy link
Owner

pyroscope commented Jun 5, 2018

See rakshasa/rtorrent#727 (comment)

  • Use d.free_diskspace in a greater check against d.size_bytes
  • Use math.sub if available to keep a reserved amount free
  • stop the item in its tracks (+ log that) if disk space is low, and set it to prio=0 (to avoid further auto-starts by other config or cron)
  • there is a problem regarding other items that still fit, get started, and in sum eat up all disk space – so possibly force sychronized disk allocation when disk free gets near the reserved space (does f.set_create_queued help?)
  • test it with a load.start schedule, whether any space is claimed before the trigger fires
@chros73
Copy link
Contributor

chros73 commented Jun 5, 2018

One of my pull req has the fix and command for d.disk_freespace.

@chros73
Copy link
Contributor

chros73 commented Jun 5, 2018

That's the one d.is_enough_diskspace : rakshasa/rtorrent#604
The problem was: "fix free_diskspace() method in libtorrent to report back proper size even if a download is stopped"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants