storage::MdCo Class Reference

#include <MdCo.h>

Inheritance diagram for storage::MdCo:

storage::Container List of all members.

Public Member Functions

 MdCo (Storage *const s, bool detect)
 MdCo (const MdCo &rhs)
virtual ~MdCo ()
int createMd (unsigned num, storage::MdType type, const std::list< string > &devs)
int removeMd (unsigned num, bool destroySb=true)
int extendMd (unsigned num, const string &dev)
int shrinkMd (unsigned num, const string &dev)
int changeMdType (unsigned num, storage::MdType ptype)
int changeMdChunk (unsigned num, unsigned long chunk)
int changeMdParity (unsigned num, storage::MdParity ptype)
int checkMd (unsigned num)
bool equalContent (const MdCo &rhs) const
void logDifference (const MdCo &d) const
unsigned unusedNumber ()
void syncRaidtab ()
int removeVolume (Volume *v)

Static Public Member Functions

static storage::CType const staticType ()
static void activate (bool val=true)

Protected Types

typedef CastIterator< VIter,
Md * > 
MdInter
typedef CastIterator< CVIter,
const Md * > 
MdCInter
typedef CheckFnc< const MdCheckFncMd
typedef CheckerIterator< CheckFncMd,
MdPI< CheckFncMd >::type,
MdInter, Md
MdPIterator
typedef CheckerIterator< CheckFncMd,
MdCPI< CheckFncMd >::type,
MdCInter, const Md
MdCPIterator
typedef DerefIterator< MdPIterator,
Md
MdIter
typedef DerefIterator< MdCPIterator,
const Md
ConstMdIter
typedef IterPair< MdIterMdPair
typedef IterPair< ConstMdIterConstMdPair

Protected Member Functions

MdPair mdPair (bool(*Check)(const Md &)=NULL)
MdIter mdBegin (bool(*Check)(const Md &)=NULL)
MdIter mdEnd (bool(*Check)(const Md &)=NULL)
ConstMdPair mdPair (bool(*Check)(const Md &)=NULL) const
ConstMdIter mdBegin (bool(*Check)(const Md &)=NULL) const
ConstMdIter mdEnd (bool(*Check)(const Md &)=NULL) const
 MdCo (Storage *const s, const string &File)
void getMdData ()
void getMdData (unsigned num)
bool findMd (unsigned num, MdIter &i)
bool findMd (unsigned num)
bool findMd (const string &dev, MdIter &i)
bool findMd (const string &dev)
int checkUse (const string &dev)
void addMd (Md *m)
void checkMd (Md *m)
void updateEntry (const Md *m)
void initTab ()
void init ()
virtual void print (std::ostream &s) const
virtual ContainergetCopy () const
int doCreate (Volume *v)
int doRemove (Volume *v)
void logData (const string &Dir)

Protected Attributes

EtcRaidtabtab

Static Protected Attributes

static bool active = false

Friends

class Storage
std::ostream & operator<< (std::ostream &, const MdCo &)

Classes

struct  MdCPI
struct  MdPI

Member Typedef Documentation

typedef CheckFnc<const Md> storage::MdCo::CheckFncMd [protected]
 

typedef DerefIterator<MdCPIterator,const Md> storage::MdCo::ConstMdIter [protected]
 

typedef IterPair<ConstMdIter> storage::MdCo::ConstMdPair [protected]
 

typedef CastIterator<CVIter, const Md *> storage::MdCo::MdCInter [protected]
 

typedef CheckerIterator< CheckFncMd, MdCPI<CheckFncMd>::type, MdCInter, const Md > storage::MdCo::MdCPIterator [protected]
 

typedef CastIterator<VIter, Md *> storage::MdCo::MdInter [protected]
 

typedef DerefIterator<MdPIterator,Md> storage::MdCo::MdIter [protected]
 

typedef IterPair<MdIter> storage::MdCo::MdPair [protected]
 

typedef CheckerIterator< CheckFncMd, MdPI<CheckFncMd>::type, MdInter, Md > storage::MdCo::MdPIterator [protected]
 


Constructor & Destructor Documentation

MdCo::MdCo Storage *const   s,
bool  detect
 

MdCo::MdCo const MdCo rhs  ) 
 

MdCo::~MdCo  )  [virtual]
 

MdCo::MdCo Storage *const   s,
const string &  File
[protected]
 


Member Function Documentation

void MdCo::activate bool  val = true  )  [static]
 

void MdCo::addMd Md m  )  [protected]
 

int MdCo::changeMdChunk unsigned  num,
unsigned long  chunk
 

int MdCo::changeMdParity unsigned  num,
storage::MdParity  ptype
 

int MdCo::changeMdType unsigned  num,
storage::MdType  ptype
 

void MdCo::checkMd Md m  )  [protected]
 

int MdCo::checkMd unsigned  num  ) 
 

int MdCo::checkUse const string &  dev  )  [protected]
 

int storage::MdCo::createMd unsigned  num,
storage::MdType  type,
const std::list< string > &  devs
 

int MdCo::doCreate Volume v  )  [protected, virtual]
 

Reimplemented from storage::Container.

int MdCo::doRemove Volume v  )  [protected, virtual]
 

Reimplemented from storage::Container.

bool MdCo::equalContent const MdCo rhs  )  const
 

int MdCo::extendMd unsigned  num,
const string &  dev
 

bool MdCo::findMd const string &  dev  )  [protected]
 

bool MdCo::findMd const string &  dev,
MdIter i
[protected]
 

bool MdCo::findMd unsigned  num  )  [protected]
 

bool MdCo::findMd unsigned  num,
MdIter i
[protected]
 

virtual Container* storage::MdCo::getCopy  )  const [inline, protected, virtual]
 

Reimplemented from storage::Container.

void MdCo::getMdData unsigned  num  )  [protected]
 

void MdCo::getMdData  )  [protected]
 

void MdCo::init  )  [protected]
 

void MdCo::initTab  )  [protected]
 

void MdCo::logData const string &  Dir  )  [protected, virtual]
 

Reimplemented from storage::Container.

void MdCo::logDifference const MdCo d  )  const
 

ConstMdIter storage::MdCo::mdBegin bool(*)(const Md &)  Check = NULL  )  const [inline, protected]
 

MdIter storage::MdCo::mdBegin bool(*)(const Md &)  Check = NULL  )  [inline, protected]
 

ConstMdIter storage::MdCo::mdEnd bool(*)(const Md &)  Check = NULL  )  const [inline, protected]
 

MdIter storage::MdCo::mdEnd bool(*)(const Md &)  Check = NULL  )  [inline, protected]
 

ConstMdPair storage::MdCo::mdPair bool(*)(const Md &)  Check = NULL  )  const [inline, protected]
 

MdPair storage::MdCo::mdPair bool(*)(const Md &)  Check = NULL  )  [inline, protected]
 

virtual void storage::MdCo::print std::ostream &  s  )  const [inline, protected, virtual]
 

Reimplemented from storage::Container.

int MdCo::removeMd unsigned  num,
bool  destroySb = true
 

int MdCo::removeVolume Volume v  )  [virtual]
 

Reimplemented from storage::Container.

int MdCo::shrinkMd unsigned  num,
const string &  dev
 

static storage::CType const storage::MdCo::staticType  )  [inline, static]
 

Reimplemented from storage::Container.

void MdCo::syncRaidtab  ) 
 

unsigned MdCo::unusedNumber  ) 
 

void MdCo::updateEntry const Md m  )  [protected]
 


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &  s,
const MdCo d
[friend]
 

friend class Storage [friend]
 

Reimplemented from storage::Container.


Member Data Documentation

bool MdCo::active = false [static, protected]
 

EtcRaidtab* storage::MdCo::tab [protected]
 


The documentation for this class was generated from the following files:
Generated on Thu Jul 6 00:40:25 2006 for yast2-storage by  doxygen 1.4.6