charmhelpers.core.fstab¶
-
class
charmhelpers.core.fstab.Fstab(path=None)¶ Bases:
_io.FileIOThis class extends file in order to implement a file reader/writer for file /etc/fstab
-
DEFAULT_PATH= '/etc/fstab'¶
-
class
Entry(device, mountpoint, filesystem, options, d=0, p=0)¶ Bases:
objectEntry class represents a non-comment line on the /etc/fstab file
-
classmethod
Fstab.add(device, mountpoint, filesystem, options=None, path=None)¶
-
Fstab.add_entry(entry)¶
-
Fstab.entries¶
-
Fstab.get_entry_by_attr(attr, value)¶
-
classmethod
Fstab.remove_by_mountpoint(mountpoint, path=None)¶
-
Fstab.remove_entry(entry)¶
-