[mythtv-users] Storage directory management across SSD/HD

Hika van den Hoven hikavdh at gmail.com
Sat Mar 11 16:23:47 UTC 2023


Hoi Jan,

Saturday, March 11, 2023, 7:37:02 AM, you wrote:

> On 11/03/2023 05:53, Ram Ramesh wrote:
>> Do you mean mythtv will delete files even if they are not marked to be
>> deleted? I expect that it will not record any new shows when disk is
>> full. Deleting a recording that I want to keep is not very user
>> friendly.  I never had this happen as I always had enough space. May be
>> I never had to deal with it and therefore assumed this never happens.

> MythTV will only auto-delete recordings that have been set to
> auto-expire. So probably when discussing this functionality we should
> use that word: auto-expire.

> Each recording rule contains a flag that determines whether the
> recordings carried out under it will be marked to auto-expire. But you
> can also individually set or clear the auto-expire flags on already-made
> recordings.

> There's a brief write-up on the wiki here: [1].

> [1]: https://www.mythtv.org/wiki/Using_MythTV#How_MythTV_Records

> HTH, Jan

Not entirely true. Unless policies have changed in more recent mythtv
versions. It will first try to make space by deleting recordings set
for deletion and then those set to auto-expire. However finally it
will start with other recordings, oldest first. You can set several
parameters in your setup.

About deleting in-use files under Linux. This is entirely possible
without disturbing the in-use processes. When a directory entry is
deleted the actual data is still there and is in the background
protected from overwriting until it is no longer in-use.
This as opposed to Windows filesystems. This is why Windows needs
endlessly reboots during installation.

This goes for ext2/3/4 filesystems. I am not sure if this also goes
for the newer filesystems but I guess it does.


Tot mails,
  Hika                            mailto:hikavdh at gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens



More information about the mythtv-users mailing list