MythTV  0.27pre
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
Classes | Functions | Variables
hardwareprofile.fs_util Namespace Reference

Classes

class  MntEntObj
class  FileSystem

Functions

def get_mtab
def get_fslist
def __cache_mtab__
def get_file_device_path

Variables

 mtab_mtime = None
list mtab_map = []

Function Documentation

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

Definition at line 99 of file fs_util.py.

Referenced by hardwareprofile.smolt.get_file_systems().

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

Definition at line 102 of file fs_util.py.

Referenced by hardwareprofile.fs_util.get_mtab().

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 112 of file fs_util.py.

Variable Documentation

hardwareprofile.fs_util.mtab_mtime = None

Definition at line 27 of file fs_util.py.

list hardwareprofile.fs_util.mtab_map = []

Definition at line 28 of file fs_util.py.