libstorage-ng
|
Public Member Functions | |
Device * | get_source () |
const Device * | get_source () const |
sid_t | get_source_sid () const |
Device * | get_target () |
const Device * | get_target () const |
sid_t | get_target_sid () const |
bool | operator== (const Holder &rhs) const |
bool | operator!= (const Holder &rhs) const |
Holder * | copy_to_devicegraph (Devicegraph *devicegraph) const |
Copies the holder to the devicegraph. More... | |
bool | exists_in_devicegraph (const Devicegraph *devicegraph) const |
Checks if the holder exists in the devicegraph. | |
bool | exists_in_probed () const |
Checks if the holder exists in the probed devicegraph. | |
bool | exists_in_staging () const |
Checks if the holder exists in the staging devicegraph. | |
bool | exists_in_system () const |
Checks if the holder exists in the system devicegraph. | |
Impl & | get_impl () |
const Impl & | get_impl () const |
virtual Holder * | clone () const =0 |
void | save (xmlNode *node) const |
Protected Member Functions | |
Holder (Impl *impl) | |
void | create (Devicegraph *devicegraph, const Device *source, const Device *target) |
void | load (Devicegraph *devicegraph, const xmlNode *node) |
Friends | |
std::ostream & | operator<< (std::ostream &out, const Holder &holder) |
Holder* storage::Holder::copy_to_devicegraph | ( | Devicegraph * | devicegraph | ) | const |
Copies the holder to the devicegraph.
Does not copy devices. The purpose of the function is to restore parts of the probed devicegraph in the staging devicegraph that were previously deleted.
Source and target devices must already exist in devicegraph. Holder must not exist in devicegraph.
Exception |