[mythtv-commits] Ticket #6255: Fix Storage Group fallback to work for non-Default SG's

MythTV mythtv at cvs.mythtv.org
Thu Feb 12 00:00:06 UTC 2009


#6255: Fix Storage Group fallback to work for non-Default SG's
----------------------------------------------+-----------------------------
 Reporter:  sphery <mtdean at thirdcontact.com>  |       Owner:  ijr    
     Type:  patch                             |      Status:  new    
 Priority:  minor                             |   Milestone:  unknown
Component:  MythTV - General                  |     Version:  head   
 Severity:  medium                            |     Mlocked:  0      
----------------------------------------------+-----------------------------
 If a StorageGroup object is created by specifying both groupname and
 hostname, the fallback used when no matching directories is found is to go
 as:

  * groupname+hostname
  * "Default"+hostname
  * "Default"+""

 The attached patch modifies the fallback to go as:

  * groupname+hostname
  * groupname+""
  * "Default"+hostname
  * "Default"+""

 Therefore, it simply adds one more check to find the StorageGroup with a
 matching name regardless of hostname (i.e. as defined by all other hosts).

 Currently, we require all non-Default SG's to be defined on the master
 /and/ overridden on every host (else the Default SG will be used on other
 hosts).  After this patch, SG's may be defined on the master backend and
 will only need to be overridden if the host's directory list differs from
 that specified by the master backend.  Therefore, the patch modifies
 non-"Default" SG's to work just like the "Default" SG.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/6255>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list