libstorage-ng
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
storage::MdUser Class Reference
Inheritance diagram for storage::MdUser:
[legend]
Collaboration diagram for storage::MdUser:
[legend]

Public Member Functions

virtual MdUserclone () const override
 
bool is_spare () const
 
void set_spare (bool spare)
 
bool is_faulty () const
 
void set_faulty (bool faulty)
 
unsigned int get_sort_key () const
 
void set_sort_key (unsigned int sort_key)
 When creating a MD RAID the device list passed to the mdadm command is sorted according to the sort-key. More...
 
Impl & get_impl ()
 
const Impl & get_impl () const
 
- Public Member Functions inherited from storage::User
Impl & get_impl ()
 
const Impl & get_impl () const
 
- Public Member Functions inherited from storage::Holder
Deviceget_source ()
 
const Deviceget_source () const
 
sid_t get_source_sid () const
 
Deviceget_target ()
 
const Deviceget_target () const
 
sid_t get_target_sid () const
 
bool operator== (const Holder &rhs) const
 
bool operator!= (const Holder &rhs) const
 
Holdercopy_to_devicegraph (Devicegraph *devicegraph) const
 Copies the holder to the devicegraph. More...
 
Impl & get_impl ()
 
const Impl & get_impl () const
 
void save (xmlNode *node) const
 

Static Public Member Functions

static MdUsercreate (Devicegraph *devicegraph, const Device *source, const Device *target)
 
static MdUserload (Devicegraph *devicegraph, const xmlNode *node)
 
- Static Public Member Functions inherited from storage::User
static Usercreate (Devicegraph *devicegraph, const Device *source, const Device *target)
 
static Userload (Devicegraph *devicegraph, const xmlNode *node)
 

Protected Member Functions

 MdUser (Impl *impl)
 
- Protected Member Functions inherited from storage::User
 User (Impl *impl)
 
- Protected Member Functions inherited from storage::Holder
 Holder (Impl *impl)
 
void create (Devicegraph *devicegraph, const Device *source, const Device *target)
 
void load (Devicegraph *devicegraph, const xmlNode *node)
 

Member Function Documentation

◆ set_sort_key()

void storage::MdUser::set_sort_key ( unsigned int  sort_key)

When creating a MD RAID the device list passed to the mdadm command is sorted according to the sort-key.

For use-cases see https://fate.suse.com/313521/.

The raid devices and spare devices are sorted independently. Sorting of devices with the same sort-key is undefined. Any value is allowed but 0 should mean unknown/unspecified.


The documentation for this class was generated from the following file: