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

Public Member Functions | |
| EvmsCo (Storage *const s, const EvmsTree &data) | |
| EvmsCo (Storage *const s, const EvmsCont &cont, const EvmsTree &data) | |
| EvmsCo (Storage *const s, const string &name, bool lvm1) | |
| EvmsCo (const EvmsCo &c) | |
| virtual | ~EvmsCo () |
| unsigned | numVol () const |
| bool | lvm2 () const |
| int | removeCo () |
| int | extendCo (const std::list< string > &dl) |
| int | extendCo (const string &device) |
| int | reduceCo (const std::list< string > &dl) |
| int | reduceCo (const string &device) |
| int | modifyCo (const string &name, long long unsigned peSizeK, bool lvm1) |
| int | createVol (const string &name, unsigned long long sizeK, unsigned stripe, string &device) |
| int | removeVol (const string &name) |
| int | changeStripeSize (const string &name, unsigned long long stripeSize) |
| int | setPeSize (long long unsigned peSizeK) |
| void | getCommitActions (std::list< storage::commitAction * > &l) const |
| int | commitChanges (storage::CommitStage stage) |
| int | getToCommit (storage::CommitStage stage, std::list< Container * > &col, std::list< Volume * > &vol) |
| int | resizeVolume (Volume *v, unsigned long long newSize) |
| int | removeVolume (Volume *v) |
| void | addVolume (Evms *v) |
| void | getInfo (storage::EvmsCoInfo &info) const |
| bool | equalContent (const EvmsCo &rhs) const |
| void | logDifference (const EvmsCo &d) const |
| bool | checkConsistency () const |
| void | updateMd () |
Static Public Member Functions | |
| static storage::CType const | staticType () |
| static void | activate (bool val=true) |
| static int | activateDevices () |
| static bool | canDoEvms () |
| static void | getEvmsList (EvmsTree &data) |
| static bool | lvNotDeleted (const Evms &l) |
Protected Types | |
| typedef CastIterator< VIter, Evms * > | EvmsInter |
| typedef CastIterator< CVIter, const Evms * > | EvmsCInter |
| typedef CheckFnc< const Evms > | CheckFncEvms |
| typedef CheckerIterator< CheckFncEvms, EvmsPI< CheckFncEvms >::type, EvmsInter, Evms > | EvmsPIterator |
| typedef CheckerIterator< CheckFncEvms, EvmsCPI< CheckFncEvms >::type, EvmsCInter, const Evms > | EvmsCPIterator |
| typedef DerefIterator< EvmsPIterator, Evms > | EvmsIter |
| typedef DerefIterator< EvmsCPIterator, const Evms > | ConstEvmsIter |
| typedef IterPair< EvmsIter > | EvmsPair |
| typedef IterPair< ConstEvmsIter > | ConstEvmsPair |
Protected Member Functions | |
| EvmsPair | evmsPair (bool(*Check)(const Evms &)=NULL) |
| EvmsIter | evmsBegin (bool(*Check)(const Evms &)=NULL) |
| EvmsIter | evmsEnd (bool(*Check)(const Evms &)=NULL) |
| ConstEvmsPair | evmsPair (bool(*Check)(const Evms &)=NULL) const |
| ConstEvmsIter | evmsBegin (bool(*Check)(const Evms &)=NULL) const |
| ConstEvmsIter | evmsEnd (bool(*Check)(const Evms &)=NULL) const |
| EvmsCo (Storage *const s, const string &File, int) | |
| void | getCoData (const string &name, const EvmsTree &data, bool check=false) |
| void | getNormalVolumes (const EvmsTree &data) |
| void | setUsed (const string &device, storage::UsedByType typ, const string &name) |
| void | init () |
| virtual void | print (std::ostream &s) const |
| virtual Container * | getCopy () const |
| string | createCoText (bool doing) const |
| string | removeCoText (bool doing) const |
| string | extendCoText (bool doing, const string &dev) const |
| string | reduceCoText (bool doing, const string &dev) const |
| int | doCreateCo () |
| int | doRemoveCo () |
| int | doExtendCo () |
| int | doReduceCo () |
| int | doCreate (Volume *v) |
| int | doRemove (Volume *v) |
| int | doResize (Volume *v) |
| void | logData (const string &Dir) |
| void | addLv (unsigned long le, const string &name, bool native) |
| void | addPv (const Pv *p) |
| string | evmsNormalizeDevice (const string &dev) const |
Static Protected Member Functions | |
| static bool | attachToSocket (bool attach=true) |
| static bool | sendCommand (const string &cmd, bool one_line, std::list< string > &lines) |
| static int | getSocketFd () |
| static bool | startHelper (bool retry=false) |
| static int | executeCmd (const string &cmd) |
| static string | devToEvms (const string &dev) |
| static string | evmsToDev (const string &edev) |
Protected Attributes | |
| string | uuid |
| bool | lvm1 |
| storage::EvmsCoInfo | info |
Static Protected Attributes | |
| static bool | active |
| static int | sockfd |
Friends | |
| class | Storage |
| std::ostream & | operator<< (std::ostream &, const EvmsCo &) |
Classes | |
| struct | EvmsCPI |
| struct | EvmsPI |
typedef CastIterator<VIter, Evms *> storage::EvmsCo::EvmsInter [protected] |
typedef CastIterator<CVIter, const Evms *> storage::EvmsCo::EvmsCInter [protected] |
typedef CheckFnc<const Evms> storage::EvmsCo::CheckFncEvms [protected] |
typedef CheckerIterator< CheckFncEvms, EvmsPI<CheckFncEvms>::type, EvmsInter, Evms > storage::EvmsCo::EvmsPIterator [protected] |
typedef CheckerIterator< CheckFncEvms, EvmsCPI<CheckFncEvms>::type, EvmsCInter, const Evms > storage::EvmsCo::EvmsCPIterator [protected] |
typedef DerefIterator<EvmsPIterator,Evms> storage::EvmsCo::EvmsIter [protected] |
typedef DerefIterator<EvmsCPIterator,const Evms> storage::EvmsCo::ConstEvmsIter [protected] |
typedef IterPair<EvmsIter> storage::EvmsCo::EvmsPair [protected] |
typedef IterPair<ConstEvmsIter> storage::EvmsCo::ConstEvmsPair [protected] |
| EvmsCo::EvmsCo | ( | Storage *const | s, | |
| const string & | name, | |||
| bool | lvm1 | |||
| ) |
| EvmsCo::EvmsCo | ( | const EvmsCo & | c | ) |
| EvmsCo::~EvmsCo | ( | ) | [virtual] |
| EvmsCo::EvmsCo | ( | Storage *const | s, | |
| const string & | File, | |||
| int | ||||
| ) | [protected] |
| unsigned storage::EvmsCo::numVol | ( | ) | const [inline] |
| bool storage::EvmsCo::lvm2 | ( | ) | const [inline] |
| static storage::CType const storage::EvmsCo::staticType | ( | ) | [inline, static] |
Reimplemented from storage::Container.
| int EvmsCo::removeCo | ( | ) |
| int storage::EvmsCo::extendCo | ( | const std::list< string > & | dl | ) |
| int EvmsCo::extendCo | ( | const string & | device | ) |
| int storage::EvmsCo::reduceCo | ( | const std::list< string > & | dl | ) |
| int EvmsCo::reduceCo | ( | const string & | device | ) |
| int EvmsCo::modifyCo | ( | const string & | name, | |
| long long unsigned | peSizeK, | |||
| bool | lvm1 | |||
| ) |
| int EvmsCo::createVol | ( | const string & | name, | |
| unsigned long long | sizeK, | |||
| unsigned | stripe, | |||
| string & | device | |||
| ) |
| int EvmsCo::removeVol | ( | const string & | name | ) |
| int EvmsCo::changeStripeSize | ( | const string & | name, | |
| unsigned long long | stripeSize | |||
| ) |
| int EvmsCo::setPeSize | ( | long long unsigned | peSizeK | ) |
| void storage::EvmsCo::getCommitActions | ( | std::list< storage::commitAction * > & | l | ) | const [virtual] |
Reimplemented from storage::Container.
| int EvmsCo::commitChanges | ( | storage::CommitStage | stage | ) | [virtual] |
Reimplemented from storage::Container.
| int storage::EvmsCo::getToCommit | ( | storage::CommitStage | stage, | |
| std::list< Container * > & | col, | |||
| std::list< Volume * > & | vol | |||
| ) | [virtual] |
Reimplemented from storage::Container.
| int EvmsCo::resizeVolume | ( | Volume * | v, | |
| unsigned long long | newSize | |||
| ) | [virtual] |
Reimplemented from storage::Container.
| int EvmsCo::removeVolume | ( | Volume * | v | ) | [virtual] |
Reimplemented from storage::Container.
| void EvmsCo::addVolume | ( | Evms * | v | ) |
| void EvmsCo::getInfo | ( | storage::EvmsCoInfo & | info | ) | const |
| bool EvmsCo::equalContent | ( | const EvmsCo & | rhs | ) | const |
| void EvmsCo::logDifference | ( | const EvmsCo & | d | ) | const |
| bool EvmsCo::checkConsistency | ( | ) | const [virtual] |
Reimplemented from storage::PeContainer.
| void EvmsCo::updateMd | ( | ) |
| void EvmsCo::activate | ( | bool | val = true |
) | [static] |
| int EvmsCo::activateDevices | ( | ) | [static] |
| bool EvmsCo::canDoEvms | ( | ) | [static] |
| void EvmsCo::getEvmsList | ( | EvmsTree & | data | ) | [static] |
| static bool storage::EvmsCo::lvNotDeleted | ( | const Evms & | l | ) | [inline, static] |
| ConstEvmsPair storage::EvmsCo::evmsPair | ( | bool(*)(const Evms &) | Check = NULL |
) | const [inline, protected] |
| ConstEvmsIter storage::EvmsCo::evmsBegin | ( | bool(*)(const Evms &) | Check = NULL |
) | const [inline, protected] |
| ConstEvmsIter storage::EvmsCo::evmsEnd | ( | bool(*)(const Evms &) | Check = NULL |
) | const [inline, protected] |
| void EvmsCo::getCoData | ( | const string & | name, | |
| const EvmsTree & | data, | |||
| bool | check = false | |||
| ) | [protected] |
| void EvmsCo::getNormalVolumes | ( | const EvmsTree & | data | ) | [protected] |
| void EvmsCo::setUsed | ( | const string & | device, | |
| storage::UsedByType | typ, | |||
| const string & | name | |||
| ) | [protected] |
| void EvmsCo::init | ( | ) | [protected] |
Reimplemented from storage::PeContainer.
| virtual void storage::EvmsCo::print | ( | std::ostream & | s | ) | const [inline, protected, virtual] |
Reimplemented from storage::PeContainer.
| virtual Container* storage::EvmsCo::getCopy | ( | ) | const [inline, protected, virtual] |
Reimplemented from storage::PeContainer.
| string EvmsCo::createCoText | ( | bool | doing | ) | const [protected] |
| string EvmsCo::removeCoText | ( | bool | doing | ) | const [protected] |
| string EvmsCo::extendCoText | ( | bool | doing, | |
| const string & | dev | |||
| ) | const [protected] |
| string EvmsCo::reduceCoText | ( | bool | doing, | |
| const string & | dev | |||
| ) | const [protected] |
| int EvmsCo::doCreateCo | ( | ) | [protected] |
| int EvmsCo::doRemoveCo | ( | ) | [protected] |
| int EvmsCo::doExtendCo | ( | ) | [protected] |
| int EvmsCo::doReduceCo | ( | ) | [protected] |
| int EvmsCo::doCreate | ( | Volume * | v | ) | [protected, virtual] |
Reimplemented from storage::Container.
| int EvmsCo::doRemove | ( | Volume * | v | ) | [protected, virtual] |
Reimplemented from storage::Container.
| int EvmsCo::doResize | ( | Volume * | v | ) | [protected, virtual] |
Reimplemented from storage::Container.
| void EvmsCo::logData | ( | const string & | Dir | ) | [protected, virtual] |
Reimplemented from storage::Container.
| void EvmsCo::addLv | ( | unsigned long | le, | |
| const string & | name, | |||
| bool | native | |||
| ) | [protected] |
| void EvmsCo::addPv | ( | const Pv * | p | ) | [protected] |
| string EvmsCo::evmsNormalizeDevice | ( | const string & | dev | ) | const [protected] |
| bool EvmsCo::attachToSocket | ( | bool | attach = true |
) | [static, protected] |
| static bool storage::EvmsCo::sendCommand | ( | const string & | cmd, | |
| bool | one_line, | |||
| std::list< string > & | lines | |||
| ) | [static, protected] |
| int EvmsCo::getSocketFd | ( | ) | [static, protected] |
| bool EvmsCo::startHelper | ( | bool | retry = false |
) | [static, protected] |
| int EvmsCo::executeCmd | ( | const string & | cmd | ) | [static, protected] |
| string EvmsCo::devToEvms | ( | const string & | dev | ) | [static, protected] |
| string EvmsCo::evmsToDev | ( | const string & | edev | ) | [static, protected] |
friend class Storage [friend] |
Reimplemented from storage::PeContainer.
| std::ostream& operator<< | ( | std::ostream & | s, | |
| const EvmsCo & | d | |||
| ) | [friend] |
string storage::EvmsCo::uuid [protected] |
bool storage::EvmsCo::lvm1 [protected] |
bool EvmsCo::active [static, protected] |
int EvmsCo::sockfd [static, protected] |
storage::EvmsCoInfo storage::EvmsCo::info [mutable, protected] |
Reimplemented from storage::Container.
1.5.0