|
Public Member Functions |
| Md (const MdCo &d, unsigned Pnr, storage::MdType Type, const std::list< string > &devs) |
| Md (const MdCo &d, const string &line, const string &line2) |
| Md (const MdCo &d, const Md &m) |
virtual | ~Md () |
storage::MdType | personality () const |
void | setPersonality (storage::MdType val) |
storage::MdParity | parity () const |
void | setParity (storage::MdParity val) |
unsigned long | chunkSize () const |
void | setChunkSize (unsigned long val) |
void | setMdUuid (const string &val) |
bool | destroySb () const |
void | setDestroySb (bool val=true) |
const string & | getMdUuid () const |
const string & | pName () const |
const string & | ptName () const |
void | getDevs (std::list< string > &devices, bool all=true, bool spare=false) const |
void | addSpareDevice (const string &dev) |
int | checkDevices () |
int | addDevice (const string &dev, bool spare=false) |
int | removeDevice (const string &dev) |
void | raidtabLines (std::list< string > &) const |
string | mdadmLine () const |
string | createCmd () const |
virtual void | print (std::ostream &s) const |
string | removeText (bool doing) const |
string | createText (bool doing) const |
string | formatText (bool doing) const |
void | getInfo (storage::MdInfo &info) const |
bool | equalContent (const Md &rhs) const |
void | logDifference (const Md &d) const |
Static Public Member Functions |
static bool | matchRegex (const string &dev) |
static unsigned | mdMajor () |
static const string & | pName (storage::MdType t) |
static bool | mdStringNum (const string &name, unsigned &num) |
static bool | notDeleted (const Md &l) |
Protected Member Functions |
void | init () |
void | computeSize () |
Md & | operator= (const Md &) |
Static Protected Member Functions |
static void | getMdMajor () |
static storage::MdType | toMdType (const string &val) |
static storage::MdParity | toMdParity (const string &val) |
Protected Attributes |
storage::MdType | md_type |
storage::MdParity | md_parity |
unsigned long | chunk |
string | md_uuid |
bool | destrSb |
std::list< string > | devs |
std::list< string > | spare |
storage::MdInfo | info |
Static Protected Attributes |
static string | md_names [storage::MULTIPATH+1] |
static string | par_names [storage::RIGHT_SYMMETRIC+1] |
static unsigned | md_major = 0 |
Friends |
std::ostream & | operator<< (std::ostream &s, const Md &m) |