|
| Storage (const Environment &environment) |
| Construct Storage object. More...
|
|
const Environment & | get_environment () const |
|
const Arch & | get_arch () const |
|
Devicegraph * | create_devicegraph (const std::string &name) |
| Create a devicegraph with name. More...
|
|
Devicegraph * | copy_devicegraph (const std::string &source_name, const std::string &dest_name) |
|
void | remove_devicegraph (const std::string &name) |
| Remove a devicegraph by name. More...
|
|
void | restore_devicegraph (const std::string &name) |
|
bool | equal_devicegraph (const std::string &lhs, const std::string &rhs) const |
|
bool | exist_devicegraph (const std::string &name) const |
| Check whether a devicegraph exists by name.
|
|
std::vector< std::string > | get_devicegraph_names () const ST_DEPRECATED |
| Get the names of all devicegraphs.
|
|
std::map< std::string, const Devicegraph * > | get_devicegraphs () const |
| Get all devicegraphs with their names. More...
|
|
Devicegraph * | get_devicegraph (const std::string &name) |
| Return a devicegraph by name. More...
|
|
const Devicegraph * | get_devicegraph (const std::string &name) const |
| Return a devicegraph by name. More...
|
|
Devicegraph * | get_staging () |
| Return the staging devicegraph. More...
|
|
const Devicegraph * | get_staging () const |
| Return the staging devicegraph. More...
|
|
const Devicegraph * | get_probed () const |
| Return the probed devicegraph. More...
|
|
Devicegraph * | get_system () |
| Return the system devicegraph. More...
|
|
const Devicegraph * | get_system () const |
| Return the system devicegraph. More...
|
|
void | check (const CheckCallbacks *check_callbacks=nullptr) const |
| Checks all devicegraphs. More...
|
|
MountByType | get_default_mount_by () const |
| Query the default mount-by method.
|
|
void | set_default_mount_by (MountByType default_mount_by) |
| Set the default mount-by method.
|
|
const std::string & | get_rootprefix () const |
|
void | set_rootprefix (const std::string &rootprefix) |
|
std::string | prepend_rootprefix (const std::string &mount_point) const |
| Prepends the root prefix to a mount point if necessary.
|
|
const Actiongraph * | calculate_actiongraph () |
| The actiongraph is only valid until either the probed or staging devicegraph is modified. More...
|
|
void | activate (const ActivateCallbacks *activate_callbacks) const |
| Activate devices like multipath, DM and MD RAID, LVM and LUKS. More...
|
|
DeactivateStatus | deactivate () const |
| Deactivate devices like multipath, DM and MD RAID, LVM and LUKS. More...
|
|
void | probe (const ProbeCallbacks *probe_callbacks=nullptr) |
| Probe the system and replace the probed, system and staging devicegraphs. More...
|
|
void | commit (const CommitOptions &commit_options, const CommitCallbacks *commit_callbacks=nullptr) |
| The actiongraph must be valid. More...
|
|
void | commit (const CommitCallbacks *commit_callbacks=nullptr) ST_DEPRECATED |
| The actiongraph must be valid. More...
|
|
void | generate_pools (const Devicegraph *devicegraph) |
| Generate pools, e.g. More...
|
|
Pool * | create_pool (const std::string &name) |
| Create a pool with name. More...
|
|
void | remove_pool (const std::string &name) |
| Remove a pool by name. More...
|
|
bool | exists_pool (const std::string &name) const |
| Check whether a pool exists by name.
|
|
std::vector< std::string > | get_pool_names () const ST_DEPRECATED |
| Get the names of all pools.
|
|
std::map< std::string, const Pool * > | get_pools () const |
| Get all pools with their names.
|
|
Pool * | get_pool (const std::string &name) |
| Return a pool by name. More...
|
|
const Pool * | get_pool (const std::string &name) const |
| Return a pool by name. More...
|
|
Impl & | get_impl () |
|
const Impl & | get_impl () const |
|
The main entry point to libstorage.
void storage::Storage::activate |
( |
const ActivateCallbacks * |
activate_callbacks | ) |
const |
Activate devices like multipath, DM and MD RAID, LVM and LUKS.
It is not required to have probed the system to call this function. On the other hand after calling activate() the system should be probed.
The message callback is unreliable since certain subsystems can be activated automatically (e.g. MD RAIDs by udev).
If an error reported via activate_callbacks is not ignored the function throws Aborted.
This function is only intended for the installation system.
- Exceptions
-