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 Container &rhs) const
void logDifference (const Container &d) const
unsigned unusedNumber ()
void syncRaidtab ()
void changeDeviceName (const string &old, const string &nw)
int removeVolume (Volume *v)

Static Public Member Functions

static storage::CType staticType ()
static void activate (bool val, const string &tmpDir)

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 CastIterator<VIter, Md *> storage::MdCo::MdInter [protected]

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

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

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


Constructor & Destructor Documentation

MdCo::MdCo ( Storage *const   s,
bool  detect 
)

References getMdData(), init(), and y2debug.

Referenced by getCopy().

MdCo::MdCo ( const MdCo rhs  ) 

MdCo::~MdCo (  )  [virtual]

References tab, and y2debug.

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

References init(), and y2debug.


Member Function Documentation

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

Reimplemented from storage::Container.

References storage::MD.

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

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

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

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

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

int MdCo::changeMdChunk ( unsigned  num,
unsigned long  chunk 
)

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

int MdCo::checkMd ( unsigned  num  ) 

bool MdCo::equalContent ( const Container rhs  )  const [virtual]

void MdCo::logDifference ( const Container d  )  const [virtual]

unsigned MdCo::unusedNumber (  ) 

References findMd().

Referenced by storage::Storage::createMdAny().

void MdCo::syncRaidtab (  ) 

void MdCo::changeDeviceName ( const string &  old,
const string &  nw 
) [virtual]

void MdCo::activate ( bool  val,
const string &  tmpDir 
) [static]

int MdCo::removeVolume ( Volume v  )  [virtual]

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

MdIter storage::MdCo::mdBegin ( bool(*)(const Md &)  Check = NULL  )  [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]

References mdBegin(), and mdEnd().

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

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

void MdCo::getMdData (  )  [protected]

void MdCo::getMdData ( unsigned  num  )  [protected]

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

bool MdCo::findMd ( unsigned  num  )  [protected]

References findMd().

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

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

References findMd().

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

void MdCo::addMd ( Md m  )  [protected]

void MdCo::checkMd ( Md m  )  [protected]

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

void MdCo::initTab (  )  [protected]

References storage::Container::getStorage(), and tab.

Referenced by doRemove(), init(), and updateEntry().

void MdCo::init (  )  [protected]

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

Reimplemented from storage::Container.

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

Reimplemented from storage::Container.

References MdCo().

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

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

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

Reimplemented from storage::Container.


Friends And Related Function Documentation

friend class Storage [friend]

Reimplemented from storage::Container.

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


Member Data Documentation

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

Referenced by activate(), and doRemove().


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

Generated on Sun Jun 8 10:48:04 2008 for yast2-storage by  doxygen 1.5.5