Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

EvmsCo Class Reference

#include <EvmsCo.h>

Inheritance diagram for EvmsCo:

PeContainer Container List of all members.

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 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 getInfo (storage::EvmsCoInfo &info) const
bool equalContent (const EvmsCo &rhs) const
void logDifference (const EvmsCo &d) const

Static Public Member Functions

static storage::CType const staticType ()
static void activate (bool val=true)
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 EvmsCheckFncEvms
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< EvmsIterEvmsPair
typedef IterPair< ConstEvmsIterConstEvmsPair

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 init ()
virtual void print (std::ostream &s) const
virtual ContainergetCopy () 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)

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 string unEvmsDevice (const string &dev)
static int executeCmd (const string &cmd)

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

Member Typedef Documentation

typedef CheckFnc<const Evms> EvmsCo::CheckFncEvms [protected]
 

typedef DerefIterator<EvmsCPIterator,const Evms> EvmsCo::ConstEvmsIter [protected]
 

typedef IterPair<ConstEvmsIter> EvmsCo::ConstEvmsPair [protected]
 

typedef CastIterator<CVIter, const Evms *> EvmsCo::EvmsCInter [protected]
 

typedef CheckerIterator< CheckFncEvms, EvmsCPI<CheckFncEvms>::type, EvmsCInter, const Evms > EvmsCo::EvmsCPIterator [protected]
 

typedef CastIterator<VIter, Evms *> EvmsCo::EvmsInter [protected]
 

typedef DerefIterator<EvmsPIterator,Evms> EvmsCo::EvmsIter [protected]
 

typedef IterPair<EvmsIter> EvmsCo::EvmsPair [protected]
 

typedef CheckerIterator< CheckFncEvms, EvmsPI<CheckFncEvms>::type, EvmsInter, Evms > EvmsCo::EvmsPIterator [protected]
 


Constructor & Destructor Documentation

EvmsCo::EvmsCo Storage *const   s,
const EvmsTree data
 

EvmsCo::EvmsCo Storage *const   s,
const EvmsCont cont,
const EvmsTree data
 

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]
 


Member Function Documentation

void EvmsCo::activate bool  val = true  )  [static]
 

void EvmsCo::addLv unsigned long  le,
const string &  name,
bool  native
[protected]
 

void EvmsCo::addPv const Pv *  p  )  [protected]
 

bool EvmsCo::attachToSocket bool  attach = true  )  [static, protected]
 

int EvmsCo::changeStripeSize const string &  name,
unsigned long long  stripeSize
 

int EvmsCo::commitChanges storage::CommitStage  stage  )  [virtual]
 

Reimplemented from Container.

string EvmsCo::createCoText bool  doing  )  const [protected]
 

int EvmsCo::createVol const string &  name,
unsigned long long  sizeK,
unsigned  stripe,
string &  device
 

int EvmsCo::doCreate Volume v  )  [protected, virtual]
 

Reimplemented from Container.

int EvmsCo::doCreateCo  )  [protected]
 

int EvmsCo::doExtendCo  )  [protected]
 

int EvmsCo::doReduceCo  )  [protected]
 

int EvmsCo::doRemove Volume v  )  [protected, virtual]
 

Reimplemented from Container.

int EvmsCo::doRemoveCo  )  [protected]
 

int EvmsCo::doResize Volume v  )  [protected, virtual]
 

Reimplemented from Container.

bool EvmsCo::equalContent const EvmsCo rhs  )  const
 

ConstEvmsIter EvmsCo::evmsBegin bool(*)(const Evms &)  Check = NULL  )  const [inline, protected]
 

EvmsIter EvmsCo::evmsBegin bool(*)(const Evms &)  Check = NULL  )  [inline, protected]
 

ConstEvmsIter EvmsCo::evmsEnd bool(*)(const Evms &)  Check = NULL  )  const [inline, protected]
 

EvmsIter EvmsCo::evmsEnd bool(*)(const Evms &)  Check = NULL  )  [inline, protected]
 

ConstEvmsPair EvmsCo::evmsPair bool(*)(const Evms &)  Check = NULL  )  const [inline, protected]
 

EvmsPair EvmsCo::evmsPair bool(*)(const Evms &)  Check = NULL  )  [inline, protected]
 

int EvmsCo::executeCmd const string &  cmd  )  [static, protected]
 

int EvmsCo::extendCo const string &  device  ) 
 

int EvmsCo::extendCo const std::list< string > &  dl  ) 
 

string EvmsCo::extendCoText bool  doing,
const string &  dev
const [protected]
 

void EvmsCo::getCoData const string &  name,
const EvmsTree data,
bool  check = false
[protected]
 

void EvmsCo::getCommitActions std::list< storage::commitAction * > &  l  )  const [virtual]
 

Reimplemented from Container.

virtual Container* EvmsCo::getCopy  )  const [inline, protected, virtual]
 

Reimplemented from PeContainer.

void EvmsCo::getEvmsList EvmsTree data  )  [static]
 

void EvmsCo::getInfo storage::EvmsCoInfo info  )  const
 

void EvmsCo::getNormalVolumes const EvmsTree data  )  [protected]
 

int EvmsCo::getSocketFd  )  [static, protected]
 

int EvmsCo::getToCommit storage::CommitStage  stage,
std::list< Container * > &  col,
std::list< Volume * > &  vol
[virtual]
 

Reimplemented from Container.

void EvmsCo::init  )  [protected]
 

Reimplemented from PeContainer.

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

Reimplemented from Container.

void EvmsCo::logDifference const EvmsCo d  )  const
 

bool EvmsCo::lvm2  )  const [inline]
 

static bool EvmsCo::lvNotDeleted const Evms l  )  [inline, static]
 

unsigned EvmsCo::numVol  )  const [inline]
 

virtual void EvmsCo::print std::ostream &  s  )  const [inline, protected, virtual]
 

Reimplemented from PeContainer.

int EvmsCo::reduceCo const string &  device  ) 
 

int EvmsCo::reduceCo const std::list< string > &  dl  ) 
 

string EvmsCo::reduceCoText bool  doing,
const string &  dev
const [protected]
 

int EvmsCo::removeCo  ) 
 

string EvmsCo::removeCoText bool  doing  )  const [protected]
 

int EvmsCo::removeVol const string &  name  ) 
 

int EvmsCo::removeVolume Volume v  )  [virtual]
 

Reimplemented from Container.

int EvmsCo::resizeVolume Volume v,
unsigned long long  newSize
[virtual]
 

Reimplemented from Container.

static bool EvmsCo::sendCommand const string &  cmd,
bool  one_line,
std::list< string > &  lines
[static, protected]
 

int EvmsCo::setPeSize long long unsigned  peSizeK  )  [inline]
 

bool EvmsCo::startHelper bool  retry = false  )  [static, protected]
 

static storage::CType const EvmsCo::staticType  )  [inline, static]
 

Reimplemented from Container.

string EvmsCo::unEvmsDevice const string &  dev  )  [static, protected]
 


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &  s,
const EvmsCo d
[friend]
 

friend class Storage [friend]
 

Reimplemented from PeContainer.


Member Data Documentation

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

storage::EvmsCoInfo EvmsCo::info [mutable, protected]
 

Reimplemented from Container.

bool EvmsCo::lvm1 [protected]
 

int EvmsCo::sockfd = -1 [static, protected]
 

string EvmsCo::uuid [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Sep 14 11:27:08 2005 for yast2-storage by  doxygen 1.4.4