|
Public Member Functions |
| EtcFstab (const string &prefix="", bool rootMounted=true) |
bool | findDevice (const string &dev, FstabEntry &entry) const |
bool | findDevice (const std::list< string > &dl, FstabEntry &entry) const |
bool | findMount (const string &mount, FstabEntry &entry) const |
bool | findUuidLabel (const string &uuid, const string &label, FstabEntry &entry) const |
bool | findIdPath (const std::list< string > &id, const string &path, FstabEntry &entry) const |
void | setDevice (const FstabEntry &entry, const string &device) |
int | updateEntry (const string &dev, const string &mount, const string &fs, const string &opts="defaults") |
int | updateEntry (const FstabChange &entry) |
int | addEntry (const FstabChange &entry) |
int | removeEntry (const FstabEntry &entry) |
int | changeRootPrefix (const string &prfix) |
void | getFileBasedLoops (const string &prefix, std::list< FstabEntry > &l) |
void | getEntries (std::list< FstabEntry > &l) |
string | addText (bool doing, bool crypto, const string &mp) |
string | updateText (bool doing, bool crypto, const string &mp) |
string | removeText (bool doing, bool crypto, const string &mp) |
int | flush () |
Protected Member Functions |
void | readFiles () |
AsciiFile * | findFile (const FstabEntry &e, AsciiFile *&fstab, AsciiFile *&cryptotab, int &lineno) |
void | makeStringList (const FstabEntry &e, std::list< string > &ls) |
string | createTabLine (const FstabEntry &e) |
Protected Attributes |
string | prefix |
std::list< Entry > | co |
Static Protected Attributes |
static unsigned | fstabFields [6] = { 20, 20, 10, 21, 1, 1 } |
static unsigned | cryptotabFields [6] = { 11, 15, 20, 10, 10, 1 } |
Classes |
struct | Entry |