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

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


Hoi Ram,

Saturday, March 11, 2023, 5:23:47 PM, you wrote:

> 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.


This comes from a different philosophy. Under Windows the directory
entry is the file and filelocks are set to the directory entry.
Under Linux a directory is just another file and filelocks are set to
the actual file or actually to the inodes. This is also why hardlinks
are possible under Linux and not under Windows.


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