How to tell rtorrent to check for free disk space before loading the torrent?

I’m using rtorrent/rutorrent with autodl and I want to config rutorrent to check for free disk space before loading the torrent. Otherwise rtorrent will try loading the torrent, say there’s no space left then shut itself down.

I tried setting quota to the master user but that doesn’t seem to do what I want.

Any idea?

nano ~/.rtorrent.rc

Insert minimum size after _diskspace= Use M for megabyte G for gigabyte.
schedule = low_diskspace,5,60,close_low_diskspace=

Example:
schedule = low_diskspace,5,60,close_low_diskspace=1G

2 Likes

Thank you very much.