#include <Mount.h>
Public Types | |
typedef ExternalProgram::Environment | Environment |
For passing additional environment variables to mount. | |
typedef KVMap< kvmap::KVMapBase::CharSep<'=',','> > | Options |
Mount options. | |
Public Member Functions | |
Mount () | |
Create an new instance. | |
~Mount () | |
Clean up. | |
void | mount (const std::string &source, const std::string &target, const std::string &filesystem, const std::string &options, const Environment &environment=Environment()) |
mount device | |
void | umount (const std::string &path) |
umount device | |
Static Public Member Functions | |
static MountEntries | getEntries (const std::string &mtab="") |
Return mount entries from /etc/mtab or /etc/fstab file. | |
Private Member Functions | |
void | run (const char *const *argv, const Environment &environment, ExternalProgram::Stderr_Disposition stderr_disp=ExternalProgram::Stderr_To_Stdout) |
Run mount with the specified arguments and handle stderr. | |
void | run (const char *const *argv, ExternalProgram::Stderr_Disposition stderr_disp=ExternalProgram::Stderr_To_Stdout) |
int | Status () |
Return the exit status of the process, closing the connection if not already done. | |
void | Kill () |
Forcably kill the process. | |
Private Attributes | |
ExternalProgram * | process |
The connection to the mount process. | |
int | exit_code |
The exit code of the process, or -1 if not yet known. |
Definition at line 65 of file Mount.h.
|
For passing additional environment variables to mount.
|
|
Mount options. 'key' or 'key=value' pairs, separated by ',' |
|
Create an new instance.
|
|
Clean up.
|
|
mount device
|
|
umount device
|
|
Return mount entries from /etc/mtab or /etc/fstab file.
|
|
Run mount with the specified arguments and handle stderr.
Definition at line 218 of file Mount.cc. References exit_code, and process. Referenced by run(). |
|
Definition at line 151 of file Mount.h. References run(). |
|
Return the exit status of the process, closing the connection if not already done.
Definition at line 237 of file Mount.cc. References zypp::ExternalProgram::close(), DBG, exit_code, zypp::ExternalProgram::kill(), and process. |
|
Forcably kill the process.
Definition at line 253 of file Mount.cc. References zypp::ExternalProgram::kill(), and process. |
|
The connection to the mount process.
Definition at line 139 of file Mount.h. Referenced by Kill(), Mount(), run(), Status(), and ~Mount(). |
|
The exit code of the process, or -1 if not yet known.
|