Hi,
When I delete recordings via osd or vdradmin the time remaining are not updated. What time have I to wait to see the free time available updated? Can I force this refresh?
Thanks
Leo Márquez wrote:
When I delete recordings via osd or vdradmin the time remaining are not updated. What time have I to wait to see the free time available updated? Can I force this refresh?
VDR just hides the recording, and does the actual deleting later on in background. Unfortunately, the recording wont be added to free space until it is deleted.
The actual deleting only happens if VDR is idle (no recordings, no playback, no menus, no external connections, etc.), or if VDR is in urgent need of disk space for recording/cutting. (urgent need is less than 1G or 38min left)
Deleting can be done manually, by deleting folders matching *.del in /video, though additional care must be taken in case of multi-disk /video0 /video1 etc. folders.
The first idle delete check will be 6 minutes after VDR start, and then every 60 minutes. In case that VDR is busy, this will be delayed and happens just the moment VDR gets idle. (which can be a little annoying if you just stopped playback)
After one recording actually got deleted, VDR deletes the remaining ones in 10s steps. Imho there's a little bug that causes this delay to be 0s if the 60min timeout did not hit an idle moment. (which can be a little annoying if you just stopped playback *g*)
Cheers,
Udo
On Thu, 2005-11-17 at 16:24 +0100, Udo Richter wrote:
VDR just hides the recording, and does the actual deleting later on in background. Unfortunately, the recording wont be added to free space until it is deleted.
The actual deleting only happens if VDR is idle (no recordings, no playback, no menus, no external connections, etc.), or if VDR is in urgent need of disk space for recording/cutting. (urgent need is less than 1G or 38min left)
Deleting can be done manually, by deleting folders matching *.del in /video, though additional care must be taken in case of multi-disk /video0 /video1 etc. folders.
And don't forget to 'touch /video/update' or you get all sorts of things in the recordings menu!
You can force deletion of recordings using the undelete plugin: if you start that and select 'delete' on one of the 'deleted recordings' it finds, it removes the files then.
Cheers,
Laz
Leo Márquez wrote:
Hi,
When I delete recordings via osd or vdradmin the time remaining are not updated. What time have I to wait to see the free time available updated?
VDR actually removes the files when there is no other activity, so it may take quite a while.
I'm thinking about putting the whole file removal into a separate threat and and kick that off immediately after a recording was deleted. That way the free disk space would be updated almost immediately.
Can I force this refresh?
No - unless you write a plugin that calls RemoveDeletedRecordings().
Klaus
Klaus Schmidinger wrote:
Leo Márquez wrote:
Hi,
When I delete recordings via osd or vdradmin the time remaining are not updated. What time have I to wait to see the free time available updated?
VDR actually removes the files when there is no other activity, so it may take quite a while.
I'm thinking about putting the whole file removal into a separate threat and and kick that off immediately after a recording was
Sorry, that should have read "thread", of course...
Klaus
----- Original Message ----- From: "Leo Márquez" leo@calidae.net Sent: Thursday, November 17, 2005 4:49 PM Subject: [vdr] a little delete recordings doubt
When I delete recordings via osd or vdradmin the time remaining are not updated.
Hi,
just recognized that post (a little late I guess...). I was also irritated by this behaviour first, but am happy with the delayed physical deletion of the recordings. So some time ago, I've done a small patch against vdr-1.3.12 to take into account the *.del files in the directory structure while calculating the free space, instead of "forcing an update" by deleting them.
Since then, I usually spend more time with my girlfriend or watching TV, so I've probably missed the latest VDR developments. But if you like, you might want to try applying the patch to the current VDR version. Good luck!
Here's the original post:
~~~~~~~~~~~<snip> ~~~~~~~~~~~
----- Original Message ----- From: "Christian Vogt" Sent: Friday, August 20, 2004 6:49 PM Subject: [vdr] [PATCH] Calculating free disk space in VDR
Hi all,
I've adapted my little free space patch to vdr-1.3.12. It is named "vdr-1.3.12FreeSpace.diff" and can be found at
http://home.arcor.de/c.v/vdr/patch
The difference to vdr's normal behaviour is just that the amount of diskspace occupied by *.del recordings is taken into account in the headline of the main menu. Thus, when you delete recordings and go back to main menu, you'll immediately see the gain in free disk space even if the recording has not been physically deleted yet.
----- Original Message ----- From: "Patrick Cernko"
I still remember those people with large video-dirs having to increase the watchdog timeout ever and ever again as the find command for the recordings scan took longer and longer. Now that Klaus finally got rid of it (@Klaus: thanks very much for that!), we should not get into the same trouble again.
----- Original Message ----- From: "Christian Vogt"
Well, I did not use any external call for this, but surely scanning the recording directory(s) every time the main menu is opened. So I got your point and totally agree.
Thus, I've made it a config option as suggested (with the default set to "traditional" behaviour). The updated patch can be found here:
http://home.arcor.de/c.v/vdr/patch/vdr-1.3.12FreeSpaceConfig.diff
Regards, Christian