[mythtv-commits] Ticket #2242: Recordings not being deleted fast enough

MythTV mythtv at cvs.mythtv.org
Sat Aug 26 21:51:49 UTC 2006


#2242: Recordings not being deleted fast enough
------------------------------------------------+---------------------------
 Reporter:  Martin Ebourne <martin at zepler.org>  |        Owner:  ijr     
     Type:  defect                              |       Status:  reopened
 Priority:  minor                               |    Milestone:          
Component:  mythtv                              |      Version:  head    
 Severity:  medium                              |   Resolution:          
------------------------------------------------+---------------------------
Changes (by bolek-mythtv at curl.com (Boleslaw Ciesielski)):

  * status:  closed => reopened
  * resolution:  fixed =>

Comment:

 I am reopenning this ticket because I found the actual bug. The problem
 was that the st_blksize field in the stat buffer is '''not''' the unit for
 the st_blocks field. st_blocks is always in the unit of 512 bytes.

 This explains the too slow delete and the gigantic file sizes as reported
 by the commented out VB_FILE that some people have been seeing (because
 st_blksize is typically much larger than 512).

 I changed the code to compute the rounded up size based on st_size instead
 of st_blocks. A patch is attached.

 (Also, I am happy to report this wasn't my bug :-)

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/2242#comment:2>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list