|
libstorage-ng
|
Public Member Functions | |
| Environment (bool read_only) | |
| Environment (bool read_only, ProbeMode probe_mode, TargetMode target_mode) | |
| Environment (const Environment &environment) | |
| Environment & | operator= (const Environment &environment)=delete |
| bool | is_read_only () const |
| Return whether the Environment has read-only set. | |
| ProbeMode | get_probe_mode () const |
| Return the probe mode. | |
| TargetMode | get_target_mode () const |
| return the target mode. | |
| const std::string & | get_rootprefix () const |
| Query the rootprefix. | |
| void | set_rootprefix (const std::string &rootprefix) |
| Set the rootprefix. | |
| const std::string & | get_devicegraph_filename () const |
| void | set_devicegraph_filename (const std::string &devicegraph_filename) |
| const std::string & | get_arch_filename () const |
| void | set_arch_filename (const std::string &arch_filename) |
| const std::string & | get_mockup_filename () const |
| void | set_mockup_filename (const std::string &mockup_filename) |
| Impl & | get_impl () |
| const Impl & | get_impl () const |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const Environment &environment) |
| const std::string & storage::Environment::get_rootprefix | ( | ) | const |
Query the rootprefix.
The rootprefix is prepended to certain paths when accessing the system, e.g. when opening files like /etc/fstab and when mounting filesystems (that have rootprefixed set).
The rootprefix is at least used for activate(), probe() and commit().
| TargetMode storage::Environment::get_target_mode | ( | ) | const |
return the target mode.
| void storage::Environment::set_rootprefix | ( | const std::string & | rootprefix | ) |