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
See rakshasa/rtorrent#727 (comment)
d.free_diskspacein agreatercheck againstd.size_bytesmath.subif available to keep a reserved amount freef.set_create_queuedhelp?)load.startschedule, whether any space is claimed before the trigger fires