libstorage-ng
Loading...
Searching...
No Matches
storage::MdSubdevice Class Reference

Holder from a MdContainer to a MdMember. More...

#include <MdSubdevice.h>

Inheritance diagram for storage::MdSubdevice:
[legend]
Collaboration diagram for storage::MdSubdevice:
[legend]

Public Member Functions

virtual MdSubdeviceclone () const override
const std::string & get_member () const
 The "member" string of the MdMember in the MdContainer.
void set_member (const std::string &member)
Impl & get_impl ()
const Impl & get_impl () const
 MdSubdevice (Impl *impl)
Public Member Functions inherited from storage::Subdevice
Impl & get_impl ()
const Impl & get_impl () const
 Subdevice (Impl *impl)
Public Member Functions inherited from storage::Holder
Deviceget_source ()
 Get the source device of the holder.
const Deviceget_source () const
 Get the source device of the holder.
void set_source (const Device *source)
 Set the source device of the holder.
void set_target (const Device *target)
 Set the target device of the holder.
sid_t get_source_sid () const
 Return the storage id (sid) of the source of the holder.
Deviceget_target ()
 Get the target device of the holder.
const Deviceget_target () const
 Get the target device of the holder.
sid_t get_target_sid () const
 Return the storage id (sid) of the target of the holder.
bool operator== (const Holder &rhs) const
bool operator!= (const Holder &rhs) const
Holdercopy_to_devicegraph (Devicegraph *devicegraph) const
 Copies the holder to the devicegraph.
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.
const std::map< std::string, std::string > & get_userdata () const
 Return the userdata of the holder.
void set_userdata (const std::map< std::string, std::string > &userdata)
 Set the userdata of the holder.
Devicegraphget_devicegraph ()
 Return the devicegraph the holder belongs to.
const Devicegraphget_devicegraph () const
 Return the devicegraph the holder belongs to.
Impl & get_impl ()
const Impl & get_impl () const
void save (xmlNode *node) const ST_DEPRECATED

Static Public Member Functions

static MdSubdevicecreate (Devicegraph *devicegraph, const Device *source, const Device *target)
 Create a holder of type MdSubdevice.
static MdSubdeviceload (Devicegraph *devicegraph, const xmlNode *node)
Static Public Member Functions inherited from storage::Subdevice
static Subdevicecreate (Devicegraph *devicegraph, const Device *source, const Device *target)
 Create a holder of type Subdevice.
static Subdeviceload (Devicegraph *devicegraph, const xmlNode *node)

Additional Inherited Members

Protected Member Functions inherited from storage::Holder
 Holder (Impl *impl)
void create (Devicegraph *devicegraph, const Device *source, const Device *target) ST_DEPRECATED
 Create a holder between source and target in the devicegraph.
void load (Devicegraph *devicegraph, const xmlNode *node) ST_DEPRECATED

Detailed Description

Holder from a MdContainer to a MdMember.

See also
Subdevice, Holder

Member Function Documentation

◆ clone()

virtual MdSubdevice * storage::MdSubdevice::clone ( ) const
overridevirtual

Reimplemented from storage::Subdevice.

◆ create()

MdSubdevice * storage::MdSubdevice::create ( Devicegraph * devicegraph,
const Device * source,
const Device * target )
static

Create a holder of type MdSubdevice.

Usually this function is not called directly. It is called during probing.

See also
Holder::create(Devicegraph*, const Device*, const Device*)
Exceptions
HolderAlreadyExists

The documentation for this class was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/libstorage-ng-4.5.253-build/libstorage-ng-4.5.253/storage/Holders/MdSubdevice.h