Ticket #1116 (closed task: wontfix)
Opened 6 years ago
Last modified 21 months ago
please add "space available for recordings" stat to go along with "disk space available"
| Reported by: | xris | Owned by: | cpinkham |
|---|---|---|---|
| Priority: | minor | Milestone: | unknown |
| Component: | MythTV - General | Version: | head |
| Severity: | low | Keywords: | |
| Cc: | Ticket locked: | no |
Description
With the new LiveTV code saving its recordings, I've had a couple of users mention that MythWeb now reports "incorrect" disk space usage, since the drive could always look like it's full even though LiveTV recordings will get tossed as soon as space is needed for a "real" recording.
Would be useful to have a stat that shows how much space is really available for recordings (basically, available space on disk + sum of all shows that can be expired). Might be nice to also have one that shows only the difference that LiveTV recordings make, too.
Attachments
Change History
comment:1 Changed 6 years ago by Robert Tsai <rtsai1111>
comment:2 Changed 6 years ago by Robert Tsai <rtsai1111>
(I'm talking about the bottom of the "Recorded Programs" page, but maybe you're talking about the main "Backend Status" information page ...)
comment:8 Changed 6 years ago by cpinkham
Pushing this off till 0.21. It's not overly complicated, but isn't as simple as it seems. I also wonder if this could now be handled in MythWeb itself given the recent changes. MythWeb has access to the filesize, expire status, and recording group and could calculate the amount of space in use by expirable programs and/or LiveTV programs itself. Will take another look after 0.20 is out.
comment:10 Changed 4 years ago by cpinkham
- Milestone changed from 0.21 to unknown
Changing milestone to unknown. The scope of this has increased with the addition of Storage Groups and the special 'Deleted' recording group. There was someone looking at making a patch for this, but I have not heard how much progress, if any, they have made so far.
comment:12 Changed 21 months ago by robertm
- Status changed from accepted to closed
- Resolution set to wontfix
Closing for now as there's never been any progress on it in four years. When/if someone actually writes code to this end, a new ticket can be opened. (Refs #6589)

Can't mythweb compute this itself? It already knows whether or not a recording is set to auto-expire, it knows how big each file is, and it knows whether or not it belongs to the "LiveTV" group ...