#include <Mount.h>
Public Types | |
| typedef MediaError | Error |
| typedef ExternalProgram::Environment | Environment |
| typedef KVMap< _KVMap::CharSep<'=',','> > | Options |
Public Member Functions | |
| Mount () | |
| ~Mount () | |
| PMError | mount (const std::string &source, const std::string &target, const std::string &filesystem, const std::string &options, const Environment &environment=Environment()) |
| PMError | umount (const std::string &path) |
Private Member Functions | |
| void | run (const char *const *argv, const Environment &environment, ExternalProgram::Stderr_Disposition stderr_disp=ExternalProgram::Stderr_To_Stdout) |
| 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 |
|
|
For passing additional environment variables to mount |
|
|
default error class |
|
|
Mount options. 'key' or 'key=value' pairs, separated by ',' |
|
|
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. |
1.4.4