#include <Mount.h>
Public Types | |
typedef MediaError | Error |
Public Member Functions | |
Mount () | |
~Mount () | |
PMError | mount (const std::string &source, const std::string &target, const std::string &filesystem, const std::string &options) |
PMError | umount (const std::string &path) |
Private Member Functions | |
void | run (const char *const *argv, ExternalProgram::Stderr_Disposition stderr_disp=ExternalProgram::Stderr_To_Stdout) |
int | Status () |
void | Kill () |
Private Attributes | |
ExternalProgram * | process |
int | exit_code |
|
default error class |
|
Create an new instance. |
|
Clean up. |
|
Forcably kill the process |
|
mount device
|
|
Run mount with the specified arguments and handle stderr.
|
|
Return the exit status of the process, closing the connection if not already done. |
|
umount device
|
|
The exit code of the process, or -1 if not yet known. |
|
The connection to the mount process. |