Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: VDR deletes fresh recordings



Rainer Zocholl wrote:
Klaus.Schmidinger@cadsoft.de(Klaus Schmidinger)  15.01.05 14:51



Rainer Zocholl wrote:

VDR seems to have deleted the first recordings, or?
Why?

Because the directory had the ".del" extension?!

How could that have happened?
Look what I found in the log file you just sent me via PM:

Jan 14 08:21:15 msi vdr[29270]: timer 132 (272 0700-2345 'ESA') stop
Jan 14 08:21:58 msi vdr[29270]: confirm: Delete recording?
Jan 14 08:22:01 msi vdr[29270]: confirmed
Jan 14 08:22:01 msi vdr[29270]: deleting recording /video0/ESA/2005-01-14.07:00.50.07.rec

If i would have pressed "delete" all recordings would have been gone. (As "timers" and "recording" behaves similiar
that could easily happen)
Right after the delete above you have apparently edited the timer
and started it again:

Jan 14 08:22:20 msi vdr[29270]: timer 132 activated
Jan 14 08:22:21 msi vdr[29270]: timer 132 deactivated
Jan 14 08:22:22 msi vdr[29270]: timer 132 activated
Jan 14 08:22:24 msi vdr[29270]: editing timer 132
Jan 14 08:22:30 msi vdr[29270]: switching device 2 to channel 272
Jan 14 08:22:30 msi vdr[29270]: timer 132 (272 0700-2345 'ESA') start
Jan 14 08:22:30 msi vdr[29270]: waiting for EPG info...
Jan 14 08:22:34 msi vdr[29270]: no EPG info available
Jan 14 08:22:34 msi vdr[29270]: record /video0/ESA/2005-01-14.07:00.50.07.rec
Jan 14 08:22:34 msi vdr[29270]: creating directory /video0/ESA/2005-01-14.07:00.50.07.rec
Jan 14 08:22:34 msi vdr[29270]: recording to '/video0/ESA/2005-01-14.07:00.50.07.rec/001.vdr'

This has created a situation where there are the directories

  /video0/ESA/2005-01-14.07:00.50.07.del
  /video1/ESA/2005-01-14.07:00.50.07.rec

from the previous recording (note that the directory on /video1 is still
named '.rec'), plus the directory

  /video0/ESA/2005-01-14.07:00.50.07.rec

from the new recording, which has links into the /video1/ESA/2005-01-14.07:00.50.07.rec
directory. At the time you have deleted the first recording there were 5 video
files (001.vdr ... 005.vdr). As soon as VDR actually removed the
/video0/ESA/2005-01-14.07:00.50.07.del directory, it also removed these
file files, since the links pointed to them.

A solution to this problem might be to also rename the directories
on other disks when deleting a recording - but the again this is just
one more reason to drop this whole linking stuff altogether...

Too: there was no reason to delete at that time
(no reboot or so)

Was there too much free?
VDR removes deleted recordings whenever it seems suitable.

Why is it removing the files, but not the links?

AFAICS it did remove the links for the first 5 files:

Only The files, not the links!

See my first mailing.



23:28:34[29270]: removing /video1/ESA/2005-01-14.07:00.50.07.rec/001.vdr 23:28:38[29270]: removing /video0/ESA/2005-01-14.07:00.50.07.del/001.vdr ...

The links still exists:
: replay /video0/ESA/2005-01-14.07:00.50.07.rec
: loading /video0/ESA/2005-01-14.07:00.50.07.rec//marks.vdr
As explained above, these have been created by your _second_ recording.

# ll /video0/ESA/2005-01-14.07:00.50.07.rec
total 10616
lrwxrwxrwx       46 Jan 14 08:22 001.vdr -> /video1/ESA/2005-01-14.07:00.50.07.rec/001.vdr
lrwxrwxrwx       46 Jan 14 09:37 002.vdr -> /video1/ESA/2005-01-14.07:00.50.07.rec/002.vdr
lrwxrwxrwx       46 Jan 14 10:36 003.vdr -> /video1/ESA/2005-01-14.07:00.50.07.rec/003.vdr

# ll /video1/ESA/2005-01-14.07\:00.50.07.rec/
total 16683408
-rw-r--r--    1 root     root     2097234834 Jan 14 14:42 006.vdr
-rw-r--r--    1 root     root     2097285906 Jan 14 15:42 007.vdr
-rw-r--r--    1 root     root     2097199690 Jan 14 16:44 008.vdr
-rw-r--r--    1 root     root     2097344955 Jan 14 17:46 009.vdr
-rw-r--r--    1 root     root     2097276945 Jan 14 19:08 010.vdr




Why does vdr simply display a blackscreen,
if it can't open the file?

Doesn't it return to live video?

No. It stays simply black.
(i would have expected live or a warning "video not present yet" )
Ok, then I guess there needs to be some extra checking in case a 00x.vdr
file is missing.

Klaus




Home | Main Index | Thread Index