[mythtv-users] incomplete Deletes on a shared SMB directory

Jerome Yuzyk jerome at supernet.ab.ca
Fri Dec 1 06:25:02 UTC 2006


On Thursday 30 November 2006 10:25, Yeechang Lee wrote:
> Jerome Yuzyk <jerome at supernet.ab.ca> says:
> > > What do your backend logs say?  If there was an error truncating the
> > > file, there should have been an error message printed something like
> > > the following:
> > >
> > > Error truncating '1040_20061115050000.mpg'
> >
> > I checked when this first happened, and just checked again, and there
> > is no error like this, nor any log entry with 'truncating' (or
> > variants).
>
> You need to increase the verbosity in the logging process. For
> example, on my Fedora Core system, I've added the following line to
> /etc/sysconfig/mythbackend:
>
> OPTIONS="-v important,general,file"
>
> Normally, mythbackend starts with the 'important' and 'general' flags;
> 'file' is the new one that's important here.

OK I got a chance to try this.


Before:
---------------------------------------------------------------------------
-rw-r--r-- 1 jerome jerome 1392465920 Nov 30 15:00 1093_20061130142900.mpg

After:
---------------------------------------------------------------------------
-rwxr--r-- 1 jerome jerome    4151296 Nov 30 23:19 1093_20061130142900.mpg

The Log:
---------------------------------------------------------------------------
2006-11-30 23:16:29.465 About to unlink/delete 
file: '/home/mythtv/video/recordings/1093_20061130142900.mpg'
2006-11-30 23:16:30.439 About to delete 
file: /home/mythtv/video/recordings/1093_20061130142900.mpg.png
2006-11-30 23:16:34.677 AutoExpire: 1 file truncates are pending
2006-11-30 23:16:34.708 
Truncating '/home/mythtv/video/recordings/1093_20061130142900.mpg' by 4.00 
MB every 500 milliseconds
2006-11-30 23:16:34.756 Reschedule requested for id 0.
2006-11-30 23:16:35.096 Scheduled 29 items in 0.3 = 0.00 match + 0.34 place
2006-11-30 23:16:56.543 AutoExpire: ExpireLiveTV(10000)
2006-11-30 23:16:56.545 AutoExpire: SendDeleteMessages. Nothing to expire.
2006-11-30 23:17:56.562 AutoExpire: Waiting for pending file truncates
2006-11-30 23:19:22.796 Finished 
truncating '/home/mythtv/video/recordings/1093_20061130142900.mpg'
2006-11-30 23:19:22.798 AutoExpire: All file truncates have finished


From the half-dozen fragments I haven't got around to deleting manually, it 
looks like the last 4M fragment is missed: all my fragments are less than 
4M. 


More information about the mythtv-users mailing list