Opened 11 years ago

Closed 11 years ago

#4202 closed Enhancement (invalid)

Reserve disk space

Reported by: Elbandi Owned by: jordan
Priority: Normal Milestone: None Set
Component: libtransmission Version: 2.22
Severity: Normal Keywords:
Cc:

Description

If the download dir and the home dir are in same disk, and disk runs out of space, T cannot save the settings and resume file. It would be nice, if T reserve disk a little space to save that file. I mean, if free space goes down below the level, stop the torrent.

Change History (1)

comment:1 Changed 11 years ago by jordan

  • Resolution set to invalid
  • Status changed from new to closed

I can see where this would be useful in some situations, but in general I'm wary of "nanny" features and, in this particular case, it seems like there are a lot of pitfalls. Off the top of my head:

  • There's no way to prevent *other* apps from continuing to write to the partition, eliminating whatever was saved by Transmission's restraint
  • It would require the future "disk space available" code to understand per-user disk limits
  • Determining if the download dir and home dir are on the same disk is possible, but nontrivial to do portably
  • There is the open question of how much space is enough, prompting a new configuration option for the amount
  • Not to mention the standard headache of any user-visible configuration option: added code for the Mac, GTK+, Qt, Web client, and transmission-remote apps in-house... and the dozen or so of third-party apps.

So... even though I appreciate this suggestion and agree it could be useful in some cases, overall I don't think its benefits are worth the extra cost in code and trouble.

Note: See TracTickets for help on using tickets.