storage::MdCo Class Reference

#include <MdCo.h>

Inheritance diagram for storage::MdCo:

storage::Container storage::Device

List of all members.

Public Member Functions

 MdCo (Storage *const s)
 MdCo (Storage *const s, SystemInfo &systeminfo)
 MdCo (const MdCo &c)
virtual ~MdCo ()
int createMd (unsigned num, MdType type, const list< string > &devs, const list< string > &spares)
int removeMd (unsigned num, bool destroySb=true)
int extendMd (unsigned num, const list< string > &devs, const list< string > &spares)
int shrinkMd (unsigned num, const list< string > &devs, const list< string > &spares)
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)
int getMdState (unsigned num, MdStateInfo &info)
bool equalContent (const Container &rhs) const
virtual void logDifferenceWithVolumes (std::ostream &log, const Container &rhs) const
void syncMdadm (EtcMdadm *mdadm) const
void changeDeviceName (const string &old, const string &nw)
int removeVolume (Volume *v)
list< unsigned > usedNumbers () const

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
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 list< string > &dev, const list< string > &spares) const
void addMd (Md *m)
virtual void print (std::ostream &s) const
virtual ContainergetCopy () const
int doCreate (Volume *v)
int doRemove (Volume *v)
bool isHandledByMdPart (const string &name) const

Static Protected Attributes

static bool active = false

Private Member Functions

MdCooperator= (const MdCo &)

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

storage::MdCo::MdCo ( Storage *const  s  ) 

References y2deb.

Referenced by getCopy().

storage::MdCo::MdCo ( Storage *const  s,
SystemInfo systeminfo 
)

storage::MdCo::MdCo ( const MdCo c  ) 

storage::MdCo::~MdCo (  )  [virtual]

References storage::Device::dev, and y2deb.


Member Function Documentation

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

Reimplemented from storage::Container.

References storage::MD.

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

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

int storage::MdCo::extendMd ( unsigned  num,
const list< string > &  devs,
const list< string > &  spares 
)

int storage::MdCo::shrinkMd ( unsigned  num,
const list< string > &  devs,
const list< string > &  spares 
)

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

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

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

int storage::MdCo::checkMd ( unsigned  num  ) 

int storage::MdCo::getMdState ( unsigned  num,
MdStateInfo info 
)

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

void storage::MdCo::logDifferenceWithVolumes ( std::ostream &  log,
const Container rhs 
) const [virtual]

void storage::MdCo::syncMdadm ( EtcMdadm mdadm  )  const

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

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

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

list< unsigned > storage::MdCo::usedNumbers (  )  const

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]

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

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

References findMd().

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

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

References findMd().

int storage::MdCo::checkUse ( const list< string > &  dev,
const list< string > &  spares 
) const [protected]

void storage::MdCo::addMd ( Md m  )  [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]

Implements storage::Container.

References MdCo().

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

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

bool storage::MdCo::isHandledByMdPart ( const string &  name  )  const [protected]

MdCo& storage::MdCo::operator= ( const MdCo  )  [private]


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 storage::MdCo::active = false [static, protected]

Referenced by activate(), and doRemove().


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

Generated on Mon Feb 6 10:42:58 2012 for yast2-storage by  doxygen 1.5.6