#include <MdCo.h>
Inheritance diagram for storage::MdCo:

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 Md > | CheckFncMd |
| 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< MdIter > | MdPair |
| typedef IterPair< ConstMdIter > | ConstMdPair |
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 Container * | getCopy () const |
| int | doCreate (Volume *v) |
| int | doRemove (Volume *v) |
| void | logData (const string &Dir) |
Protected Attributes | |
| EtcRaidtab * | tab |
Static Protected Attributes | |
| static bool | active |
Friends | |
| class | Storage |
| std::ostream & | operator<< (std::ostream &, const MdCo &) |
Classes | |
| struct | MdCPI |
| struct | MdPI |
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 CheckerIterator< CheckFncMd, MdPI<CheckFncMd>::type, MdInter, Md > storage::MdCo::MdPIterator [protected] |
typedef CheckerIterator< CheckFncMd, MdCPI<CheckFncMd>::type, MdCInter, const Md > storage::MdCo::MdCPIterator [protected] |
typedef DerefIterator<MdPIterator,Md> storage::MdCo::MdIter [protected] |
typedef DerefIterator<MdCPIterator,const Md> storage::MdCo::ConstMdIter [protected] |
typedef IterPair<MdIter> storage::MdCo::MdPair [protected] |
typedef IterPair<ConstMdIter> storage::MdCo::ConstMdPair [protected] |
| MdCo::MdCo | ( | Storage *const | s, | |
| bool | detect | |||
| ) |
| MdCo::MdCo | ( | const MdCo & | rhs | ) |
| MdCo::~MdCo | ( | ) | [virtual] |
| MdCo::MdCo | ( | Storage *const | s, | |
| const string & | File | |||
| ) | [protected] |
| static storage::CType const storage::MdCo::staticType | ( | ) | [inline, static] |
Reimplemented from storage::Container.
| 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 MdCo & | rhs | ) | const |
| void MdCo::logDifference | ( | const MdCo & | d | ) | const |
| unsigned MdCo::unusedNumber | ( | ) |
| void MdCo::syncRaidtab | ( | ) |
| void MdCo::activate | ( | bool | val = true |
) | [static] |
| int MdCo::removeVolume | ( | Volume * | v | ) | [virtual] |
Reimplemented from storage::Container.
| ConstMdPair storage::MdCo::mdPair | ( | bool(*)(const Md &) | Check = NULL |
) | const [inline, protected] |
| 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] |
| bool MdCo::findMd | ( | const string & | dev, | |
| MdIter & | i | |||
| ) | [protected] |
| bool MdCo::findMd | ( | const string & | dev | ) | [protected] |
| 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] |
| 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.
| int MdCo::doCreate | ( | Volume * | v | ) | [protected, virtual] |
Reimplemented from storage::Container.
| int MdCo::doRemove | ( | Volume * | v | ) | [protected, virtual] |
Reimplemented from storage::Container.
| void MdCo::logData | ( | const string & | Dir | ) | [protected, virtual] |
Reimplemented from storage::Container.
friend class Storage [friend] |
Reimplemented from storage::Container.
| std::ostream& operator<< | ( | std::ostream & | s, | |
| const MdCo & | d | |||
| ) | [friend] |
EtcRaidtab* storage::MdCo::tab [protected] |
bool MdCo::active [static, protected] |
1.5.0