RE: [mythtv-users] Re: Recordings in database but no recording on diskfor them

2005-02-21 Thread Johnson, Thor
Question...
  How would 1 file be offline versus the whole /mnt/storage (or
whatever) driectory?  Could you check a file that should always be there
(/mnt/storage/nfslockfile.lock) and if that isn't there, don't touch the
database?

Granted... I really do like the idea of not placing the data into
Recorded until the program was successfully recorded (not sure how that
plays with the scheduler);  if I have to reboot mythtv in the middle of
a program, the scheduler doesn't usually pick it up after the reboot
(well, it *was* recorded, eh).

-Thor


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Phill Edwards
Sent: Sunday, February 20, 2005 12:00 AM
To: MythTV Users List
Subject: [mythtv-users] Re: Recordings in database but no recording on
diskfor them

 I have a few entries in the database in the recorded table which
 don't have a corresponding .nuv file on disk. Don't ask me why - I
 have no idea how that happened! I can't delete the recordings from
 mythtv or mythweb. The deletepending flag = 0. When I try to delete I
 get this in the mythbackend log:
 
 Can I just delete the records manually from the recorded table, or are
 there some other tables which will need corresponding records deleted
 as well? I don't want to screw up the integrity of the database.

SOLUTION


I've managed to find a safer solution to this - create a file with the
right name in your recordings directory by using touch - eg

# touch 1000_2005020111_2005020500.nuv

and then delete it. Deletes from mythweb work with this solution and I
presume deletes from mythtv would too, though I haven't tried it.

To find out what the file name is you can go into mythweb and
right-click on the title and then view the properties.

Regards,
Phill
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Re: Recordings in database but no recording on diskfor them

2005-02-21 Thread Kevin Kuphal
Johnson, Thor wrote:
Question...
 How would 1 file be offline versus the whole /mnt/storage (or
whatever) driectory?  Could you check a file that should always be there
(/mnt/storage/nfslockfile.lock) and if that isn't there, don't touch the
database?
Granted... I really do like the idea of not placing the data into
Recorded until the program was successfully recorded (not sure how that
plays with the scheduler);  if I have to reboot mythtv in the middle of
a program, the scheduler doesn't usually pick it up after the reboot
(well, it *was* recorded, eh).
 

I don't mount my remote storage with nf but with samba.  Either way, 
there is a fix in CVS for this to check for filesize = 0 in the database 
as an indicator of a bad recording and allow the deletion attempt.

Kevin
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users