|
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 = false |
static int | sockfd = -1 |
Friends |
class | Storage |
std::ostream & | operator<< (std::ostream &, const EvmsCo &) |
Classes |
struct | EvmsCPI |
struct | EvmsPI |