Hi,
On my system, disk usage is always about 99%, because VDR cares about deleting old recordings, when needed.
But when editing a recording, the automatic deletion fails:
--8<---------------cut here---------------start------------->8--- 17:36:28 vdr[28116]: [28116] info: Editing process started 17:36:50 vdr[28116]: [28834] low disk space while recording, trying to remove a deleted recording... 17:36:50 vdr[28116]: [28834] ...no deleted recording found, priority -1 too low to trigger deleting an old recording 17:36:50 vdr[28116]: [28116] warning: Low disk space! 17:37:01 vdr[28116]: [28834] low disk space while recording, trying to remove a deleted recording... 17:37:01 vdr[28116]: [28834] ...no deleted recording found, priority -1 too low to trigger deleting an old recording 17:37:01 vdr[28116]: [28116] warning: Low disk space! 17:37:09 vdr[28116]: [28116] ERROR: 'safe_write' during editing process 17:37:10 vdr[28116]: [28116] ERROR: Editing process failed! --8<---------------cut here---------------end--------------->8---
How could I make VDR delete old recordings, when low on disk space because of an editing process please?
TIA for any hints,
On 18.02.2016 17:45, Peter Münster wrote:
In the file cutter.c locate the line
AssertFreeDiskSpace(-1);
in the function cCuttingThread::ProcessSequence(). Chnage the '-1' to whatever value between 1 and 100 you like. Note, though, that this will remove old recordings with priorities up to the given value minus one.
Klaus
On Fri, Feb 19 2016, Klaus Schmidinger wrote:
Hi Klaus,
This does not work, because when cutting, vdr writes to disk too fast. That means that "Factor = 10" is needed in AssertFreeDiskSpace(). So "-1" is the right choice here.
I think, that the solution is much simpler: IMO there is no need for special treatment of priorities -1 and 0 in AssertFreeDiskSpace(). If you remove the line "if (Priority > 0) {", then the problem is solved. I've tested it, and it works ok.
You should remove this line anyway, because if someone selects priority = 0 for some timer, the recording would fail if the disk is full, even when there are recordings with expired lifetime.