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 = [] |
| def hardwareprofile::fs_util::get_mtab | ( | mtab = "/proc/mounts", |
||
vfstype = None | ||||
| ) |
Definition at line 84 of file fs_util.py.
| def hardwareprofile::fs_util::get_fslist | ( | ) |
Definition at line 99 of file fs_util.py.
| def hardwareprofile::fs_util::__cache_mtab__ | ( | mtab = "/proc/mounts" |
) |
Definition at line 102 of file fs_util.py.
| 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.
Definition at line 27 of file fs_util.py.
| list hardwareprofile::fs_util::mtab_map = [] |
Definition at line 28 of file fs_util.py.
1.6.3