MythTV  master
Classes | Functions | Variables
hardwareprofile.fs_util Namespace Reference

Classes

class  FileSystem
 
class  MntEntObj
 

Functions

def get_mtab (mtab="/proc/mounts", vfstype=None)
 
def get_fslist ()
 
def __cache_mtab__ (mtab="/proc/mounts")
 
def get_file_device_path (fname)
 

Variables

 mtab_mtime = None
 
list mtab_map = []
 

Function Documentation

◆ get_mtab()

def hardwareprofile.fs_util.get_mtab (   mtab = "/proc/mounts",
  vfstype = None 
)

◆ get_fslist()

def hardwareprofile.fs_util.get_fslist ( )

Definition at line 100 of file fs_util.py.

Referenced by hardwareprofile.smolt.get_file_systems().

◆ __cache_mtab__()

def hardwareprofile.fs_util.__cache_mtab__ (   mtab = "/proc/mounts")

Definition at line 103 of file fs_util.py.

Referenced by hardwareprofile.fs_util.get_mtab().

◆ get_file_device_path()

def hardwareprofile.fs_util.get_file_device_path (   fname)
What this function attempts to do is take a file and return:
     - the device the file is on
     - the path of the file relative to the device.
   For example:
     /boot/vmlinuz -> (/dev/sda3, /vmlinuz)
     /boot/efi/efi/redhat/elilo.conf -> (/dev/cciss0, /elilo.conf)
     /etc/fstab -> (/dev/sda4, /etc/fstab)

Definition at line 113 of file fs_util.py.

Variable Documentation

◆ mtab_mtime

hardwareprofile.fs_util.mtab_mtime = None

Definition at line 28 of file fs_util.py.

◆ mtab_map

list hardwareprofile.fs_util.mtab_map = []

Definition at line 29 of file fs_util.py.