[mythtv-commits] Ticket #2715: ValueError in mythburn.py due to improper parsing of "mount" command output

MythTV mythtv at cvs.mythtv.org
Mon Nov 27 23:28:36 UTC 2006


#2715: ValueError in mythburn.py due to improper parsing of "mount" command output
------------------------------------+---------------------------------------
 Reporter:  eliasen at mindspring.com  |        Owner:  paulh  
     Type:  defect                  |       Status:  new    
 Priority:  major                   |    Milestone:  unknown
Component:  mytharchive             |      Version:  0.20   
 Severity:  high                    |   Resolution:         
------------------------------------+---------------------------------------
Comment (by anonymous):

 I thought of another solution that's probably a lot more portable.  The
 python method os.ismount() will return true if a particular directory is a
 mount point.  When we get a path, to determine if it's remotely mounted,
 we'd just have to repeatedly call os.split() on the pathname and
 os.ismount() on the remaining head of the path to see if any of the
 directories above are actually mount points.  This would not be
 excessively slow (probably quicker than forking mount), and should be
 portable.

 I haven't actually written a patch that does this, so if the person
 responsible could indicate their progress on this bug, I can write one up.

 --
   Alan Eliasen
   eliasen at mindspring.com

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


More information about the mythtv-commits mailing list