23 #ifndef STORAGE_MD_USER_H 24 #define STORAGE_MD_USER_H 27 #include "storage/Holders/User.h" 40 virtual MdUser* clone()
const override;
42 bool is_spare()
const;
43 void set_spare(
bool spare);
45 bool is_faulty()
const;
46 void set_faulty(
bool faulty);
48 unsigned int get_sort_key()
const;
67 const Impl& get_impl()
const;
76 bool is_md_user(
const Holder* holder);
MdUser * to_md_user(Holder *holder)
Converts pointer to Holder to pointer to MdUser.
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-k...
The master container of the libstorage.
Definition: Devicegraph.h:153
An abstract base class of storage devices, and a vertex in the Devicegraph.
Definition: Device.h:75
The storage namespace.
Definition: Actiongraph.h:37