<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Fri, Apr 22, 2016 at 2:01 PM R. G. Newbury <<a href="mailto:newbury@mandamus.org">newbury@mandamus.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 04/22/2016 01:21 AM, Blammo wrote:<br>
><br>
> So I went digging into mysql, and I may have stumbled across the answer:<br>
><br>
> mysql> SELECT COUNT(1) FROM recorded where recgroup not like "Deleted";<br>
> +----------+<br>
> | COUNT(1) |<br>
> +----------+<br>
> |     1845 |<br>
> +----------+<br>
> 1 row in set (0.00 sec)<br>
><br>
> mysql> SELECT COUNT(1) FROM recorded where recgroup like "Deleted";<br>
> +----------+<br>
> | COUNT(1) |<br>
> +----------+<br>
> |     1028 |<br>
> +----------+<br>
> 1 row in set (0.00 sec)<br>
><br>
><br>
> What now?<br>
<br>
You have seen the stupid and it burns. You actually have no control over<br>
the recordings on the box, due to some really-off-the-wall-decisions by<br>
some of the devs.<br>
<br>
Myth does not actually delete things until it *has* to when it needs the<br>
space. Even if you go into System status and spend eons pushing 'delete'<br>
now, it does not.<br>
<br>
The only way to actually delete the programs, and actually really see<br>
what it in use on the disk, is to do it yourself.<br>
<br>
You need to run a mysql script which (in pseudocode) goes something like:<br>
select basename from recorded into outfile somefile where storagegroup<br>
like "%Deleted%";<br>
<br>
then, outside mysql, feed somefile into a script: while read line; do rm<br>
-f $line; done < somefile<br>
(once for each disk, as $line will exist on only one disk)<br>
<br>
and then do the same in thing mysql: delete from recorded where<br>
storagegroup like "%Deleted";<br>
<br>
Why do I know this? Because housekeeping does not empty the trash and<br>
that bothers me.<br>
I like to have my database and my OS agree about things like this.<br>
<br>
I know the reasoning of the devs and I think it misguided. It ONLY works<br>
where the box is dedicated to being a mythbox, and even then it is<br>
misleading and bothersome, to those of us who like to see what the real<br>
situation is.<br>
<br>
Think of it like the difference between the balance the ATM reports and<br>
the reconciled balance with the outstanding cheques deducted.<br>
<br>
Geoff<br><br></blockquote><div><br></div><div>I can't look right now, but I'm pretty confident there is a "delete expired items immediately" setting in the backend.</div><div><br></div><div>Empty disk space is technically wasted disk space. Similar to how unused RAM is wasted.</div></div></div><div dir="ltr">-- <br></div><div dir="ltr">Thomas Mashos</div>