[mythtv-commits] Ticket #4179: (patch included) BackendQueryDiskSpace incorrectly aggregates identical local disks

MythTV mythtv at cvs.mythtv.org
Sat Nov 17 19:10:48 UTC 2007


#4179: (patch included) BackendQueryDiskSpace incorrectly aggregates identical
local disks
-------------------------------+--------------------------------------------
 Reporter:  cmoates at gmail.com  |        Owner:  janne
     Type:  defect             |       Status:  new  
 Priority:  minor              |    Milestone:  0.21 
Component:  mythtv             |      Version:  head 
 Severity:  medium             |   Resolution:       
  Mlocked:  0                  |  
-------------------------------+--------------------------------------------

Comment(by Chris Moates <cmoates at gmail.com>):

 I'm going to attach my second attempt to fix this bug. I've heavily
 commented the code both to make sure my logic isn't flawed and to ensure
 that it's understood why I'm doing what I'm doing.

 The patch will only act when both disks are local, and then attempt to
 check the st_dev device ID from stat(). If they match, it will consider
 them to be separate disks. Under any other situation, the original
 calculation stands, and no change will be made. I've tested this with
 local and NFS mounted disk, and it seems to function as expected.

 It sounds like your other patches may be able to supercede this one, or
 perhaps they can strengthen each other.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/4179#comment:4>
MythTV <http://svn.mythtv.org/trac>
MythTV


More information about the mythtv-commits mailing list