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
add(device, mountpoint, filesystem, options=None, path=None)¶
-
add_entry(entry)¶
-
entries¶
-
get_entry_by_attr(attr, value)¶
-
classmethod
remove_by_mountpoint(mountpoint, path=None)¶
-
remove_entry(entry)¶
-