storage::Md Class Reference

#include <Md.h>

Inheritance diagram for storage::Md:

storage::Volume List of all members.

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 ()
Mdoperator= (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

Friends

std::ostream & operator<< (std::ostream &s, const Md &m)

Constructor & Destructor Documentation

storage::Md::Md ( const MdCo d,
unsigned  Pnr,
storage::MdType  Type,
const std::list< string > &  devs 
)

Md::Md ( const MdCo d,
const string &  line,
const string &  line2 
)

Md::Md ( const MdCo d,
const Md m 
)

Md::~Md (  )  [virtual]


Member Function Documentation

storage::MdType storage::Md::personality (  )  const [inline]

void Md::setPersonality ( storage::MdType  val  ) 

storage::MdParity storage::Md::parity (  )  const [inline]

void storage::Md::setParity ( storage::MdParity  val  )  [inline]

unsigned long storage::Md::chunkSize (  )  const [inline]

void storage::Md::setChunkSize ( unsigned long  val  )  [inline]

void storage::Md::setMdUuid ( const string &  val  )  [inline]

bool storage::Md::destroySb (  )  const [inline]

void storage::Md::setDestroySb ( bool  val = true  )  [inline]

const string& storage::Md::getMdUuid (  )  const [inline]

const string& storage::Md::pName (  )  const [inline]

const string& storage::Md::ptName (  )  const [inline]

void storage::Md::getDevs ( std::list< string > &  devices,
bool  all = true,
bool  spare = false 
) const

void Md::addSpareDevice ( const string &  dev  ) 

int Md::checkDevices (  ) 

int Md::addDevice ( const string &  dev,
bool  spare = false 
)

int Md::removeDevice ( const string &  dev  ) 

void storage::Md::raidtabLines ( std::list< string > &   )  const

string Md::mdadmLine (  )  const

string Md::createCmd (  )  const

bool Md::matchRegex ( const string &  dev  )  [static]

unsigned Md::mdMajor (  )  [static]

static const string& storage::Md::pName ( storage::MdType  t  )  [inline, static]

bool Md::mdStringNum ( const string &  name,
unsigned &  num 
) [static]

virtual void storage::Md::print ( std::ostream &  s  )  const [inline, virtual]

Reimplemented from storage::Volume.

string Md::removeText ( bool  doing  )  const [virtual]

Reimplemented from storage::Volume.

string Md::createText ( bool  doing  )  const [virtual]

Reimplemented from storage::Volume.

string Md::formatText ( bool  doing  )  const [virtual]

Reimplemented from storage::Volume.

static bool storage::Md::notDeleted ( const Md l  )  [inline, static]

void Md::getInfo ( storage::MdInfo info  )  const

bool Md::equalContent ( const Md rhs  )  const

void Md::logDifference ( const Md d  )  const

void Md::init (  )  [protected]

Reimplemented from storage::Volume.

void Md::computeSize (  )  [protected]

Md & Md::operator= ( const Md  )  [protected]

void Md::getMdMajor (  )  [static, protected]

MdType Md::toMdType ( const string &  val  )  [static, protected]

MdParity Md::toMdParity ( const string &  val  )  [static, protected]


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const Md m 
) [friend]


Member Data Documentation

storage::MdType storage::Md::md_type [protected]

storage::MdParity storage::Md::md_parity [protected]

unsigned long storage::Md::chunk [protected]

string storage::Md::md_uuid [protected]

bool storage::Md::destrSb [protected]

std::list<string> storage::Md::devs [protected]

std::list<string> storage::Md::spare [protected]

string Md::md_names [static, protected]

string Md::par_names [static, protected]

unsigned Md::md_major [static, protected]

storage::MdInfo storage::Md::info [mutable, protected]

Reimplemented from storage::Volume.


The documentation for this class was generated from the following files:
Generated on Tue Nov 28 17:50:01 2006 for yast2-storage by  doxygen 1.5.0