storage::LvmVg Class Reference

#include <LvmVg.h>

Inheritance diagram for storage::LvmVg:

storage::PeContainer storage::Container storage::Device

List of all members.

Public Member Functions

 LvmVg (Storage *s, const string &name, const string &device, bool lvm1)
 LvmVg (Storage *s, const string &name, const string &device, SystemInfo &systeminfo)
 LvmVg (Storage *s, const xmlNode *node)
 LvmVg (const LvmVg &c)
virtual ~LvmVg ()
void saveData (xmlNode *node) const
unsigned numLv () const
bool lvm2 () const
int removeVg ()
int extendVg (const std::list< string > &dl)
int extendVg (const string &device)
int reduceVg (const std::list< string > &dl)
int reduceVg (const string &device)
int createLv (const string &name, unsigned long long sizeK, unsigned stripe, string &device)
int removeLv (const string &name)
int changeStripe (const string &name, unsigned long stripe)
int changeStripeSize (const string &name, unsigned long long stripeSize)
int createLvSnapshot (const string &origin, const string &name, unsigned long long cowSizeK, string &device)
int removeLvSnapshot (const string &name)
int getLvSnapshotState (const string &name, LvmLvSnapshotStateInfo &info)
int setPeSize (long long unsigned peSizeK)
void normalizeDmDevices ()
void getCommitActions (list< commitAction > &l) const
void getToCommit (storage::CommitStage stage, list< const Container * > &col, list< const Volume * > &vol) const
int commitChanges (storage::CommitStage stage)
int resizeVolume (Volume *v, unsigned long long newSize)
int removeVolume (Volume *v)
void getInfo (storage::LvmVgInfo &info) const
bool equalContent (const Container &rhs) const
void logDifference (std::ostream &log, const LvmVg &rhs) const
virtual void logDifferenceWithVolumes (std::ostream &log, const Container &rhs) const

Static Public Member Functions

static storage::CType staticType ()
static void activate (bool val)
static bool isActive ()
static list< string > getVgs ()

Protected Types

typedef CastIterator< VIter,
LvmLv * > 
LvmLvInter
typedef CastIterator< CVIter,
const LvmLv * > 
LvmLvCInter
typedef CheckFnc< const LvmLvCheckFncLvmLv
typedef CheckerIterator
< CheckFncLvmLv, LvmLvPI
< CheckFncLvmLv >::type,
LvmLvInter, LvmLv
LvmLvPIterator
typedef CheckerIterator
< CheckFncLvmLv, LvmLvCPI
< CheckFncLvmLv >::type,
LvmLvCInter, const LvmLv
LvmLvCPIterator
typedef DerefIterator
< LvmLvPIterator, LvmLv
LvmLvIter
typedef DerefIterator
< LvmLvCPIterator, const LvmLv
ConstLvmLvIter
typedef IterPair< LvmLvIterLvmLvPair
typedef IterPair< ConstLvmLvIterConstLvmLvPair

Protected Member Functions

LvmLvPair lvmLvPair (bool(*Check)(const LvmLv &)=NULL)
LvmLvIter lvmLvBegin (bool(*Check)(const LvmLv &)=NULL)
LvmLvIter lvmLvEnd (bool(*Check)(const LvmLv &)=NULL)
ConstLvmLvPair lvmLvPair (bool(*Check)(const LvmLv &)=NULL) const
ConstLvmLvIter lvmLvBegin (bool(*Check)(const LvmLv &)=NULL) const
ConstLvmLvIter lvmLvEnd (bool(*Check)(const LvmLv &)=NULL) const
void getVgData (const string &name, bool exists=true)
virtual void print (std::ostream &s) const
virtual ContainergetCopy () const
Text createText (bool doing) const
Text removeText (bool doing) const
Text extendText (bool doing, const string &dev) const
Text reduceText (bool doing, const string &dev) const
int doCreateVg ()
int doRemoveVg ()
int doExtendVg ()
int doReduceVg ()
int doCreate (Volume *v)
int doRemove (Volume *v)
int doResize (Volume *v)
int doCreatePv (const Pv &pv)
string metaString () const
string instSysString () const
virtual void logData (const string &Dir) const
void addLv (unsigned long &le, string &name, string &origin, string &uuid, string &status, string &alloc, bool &ro)
void addPv (Pv *&p)

Protected Attributes

string status
string uuid
bool lvm1
storage::LvmVgInfo info

Static Protected Attributes

static bool active = false

Private Member Functions

LvmVgoperator= (const LvmVg &)

Friends

class Storage
class LvmLv
std::ostream & operator<< (std::ostream &, const LvmVg &)

Classes

struct  LvmLvCPI
struct  LvmLvPI


Member Typedef Documentation

typedef CastIterator<CVIter, const LvmLv *> storage::LvmVg::LvmLvCInter [protected]

typedef CheckFnc<const LvmLv> storage::LvmVg::CheckFncLvmLv [protected]


Constructor & Destructor Documentation

storage::LvmVg::LvmVg ( Storage s,
const string &  name,
const string &  device,
bool  lvm1 
)

References storage::Device::setCreated(), and y2deb.

Referenced by getCopy().

storage::LvmVg::LvmVg ( Storage s,
const string &  name,
const string &  device,
SystemInfo systeminfo 
)

References getVgData(), and y2deb.

storage::LvmVg::LvmVg ( Storage s,
const xmlNode *  node 
)

storage::LvmVg::LvmVg ( const LvmVg c  ) 

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

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


Member Function Documentation

void storage::LvmVg::saveData ( xmlNode *  node  )  const

unsigned storage::LvmVg::numLv (  )  const

bool storage::LvmVg::lvm2 (  )  const [inline]

References lvm1.

Referenced by doRemove(), and getInfo().

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

Reimplemented from storage::Container.

References storage::LVM.

Referenced by getCommitActions().

int storage::LvmVg::removeVg (  ) 

int storage::LvmVg::extendVg ( const std::list< string > &  dl  ) 

int storage::LvmVg::extendVg ( const string &  device  ) 

References extendVg().

int storage::LvmVg::reduceVg ( const std::list< string > &  dl  ) 

int storage::LvmVg::reduceVg ( const string &  device  ) 

References reduceVg().

int storage::LvmVg::createLv ( const string &  name,
unsigned long long  sizeK,
unsigned  stripe,
string &  device 
)

int storage::LvmVg::removeLv ( const string &  name  ) 

int storage::LvmVg::changeStripe ( const string &  name,
unsigned long  stripe 
)

int storage::LvmVg::changeStripeSize ( const string &  name,
unsigned long long  stripeSize 
)

int storage::LvmVg::createLvSnapshot ( const string &  origin,
const string &  name,
unsigned long long  cowSizeK,
string &  device 
)

int storage::LvmVg::removeLvSnapshot ( const string &  name  ) 

int storage::LvmVg::getLvSnapshotState ( const string &  name,
LvmLvSnapshotStateInfo info 
)

int storage::LvmVg::setPeSize ( long long unsigned  peSizeK  ) 

void storage::LvmVg::normalizeDmDevices (  ) 

void storage::LvmVg::getCommitActions ( list< commitAction > &  l  )  const [virtual]

void storage::LvmVg::getToCommit ( storage::CommitStage  stage,
list< const Container * > &  col,
list< const Volume * > &  vol 
) const [virtual]

int storage::LvmVg::commitChanges ( storage::CommitStage  stage  )  [virtual]

int storage::LvmVg::resizeVolume ( Volume v,
unsigned long long  newSize 
) [virtual]

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

Reimplemented from storage::Container.

References storage::Device::name(), and removeLv().

void storage::LvmVg::getInfo ( storage::LvmVgInfo info  )  const

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

void storage::LvmVg::logDifference ( std::ostream &  log,
const LvmVg rhs 
) const

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

void storage::LvmVg::activate ( bool  val  )  [static]

static bool storage::LvmVg::isActive (  )  [inline, static]

References active.

Referenced by storage::DmmultipathCo::activate().

list< string > storage::LvmVg::getVgs (  )  [static]

LvmLvPair storage::LvmVg::lvmLvPair ( bool(*)(const LvmLv &)  Check = NULL  )  [inline, protected]

LvmLvIter storage::LvmVg::lvmLvBegin ( bool(*)(const LvmLv &)  Check = NULL  )  [inline, protected]

LvmLvIter storage::LvmVg::lvmLvEnd ( bool(*)(const LvmLv &)  Check = NULL  )  [inline, protected]

ConstLvmLvPair storage::LvmVg::lvmLvPair ( bool(*)(const LvmLv &)  Check = NULL  )  const [inline, protected]

References lvmLvBegin(), and lvmLvEnd().

ConstLvmLvIter storage::LvmVg::lvmLvBegin ( bool(*)(const LvmLv &)  Check = NULL  )  const [inline, protected]

ConstLvmLvIter storage::LvmVg::lvmLvEnd ( bool(*)(const LvmLv &)  Check = NULL  )  const [inline, protected]

void storage::LvmVg::getVgData ( const string &  name,
bool  exists = true 
) [protected]

virtual void storage::LvmVg::print ( std::ostream &  s  )  const [inline, protected, virtual]

Reimplemented from storage::PeContainer.

virtual Container* storage::LvmVg::getCopy (  )  const [inline, protected, virtual]

Implements storage::PeContainer.

References LvmVg().

Text storage::LvmVg::createText ( bool  doing  )  const [protected, virtual]

Text storage::LvmVg::removeText ( bool  doing  )  const [protected, virtual]

Text storage::LvmVg::extendText ( bool  doing,
const string &  dev 
) const [protected]

Text storage::LvmVg::reduceText ( bool  doing,
const string &  dev 
) const [protected]

int storage::LvmVg::doCreateVg (  )  [protected]

int storage::LvmVg::doRemoveVg (  )  [protected]

int storage::LvmVg::doExtendVg (  )  [protected]

int storage::LvmVg::doReduceVg (  )  [protected]

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

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

int storage::LvmVg::doResize ( Volume v  )  [protected, virtual]

int storage::LvmVg::doCreatePv ( const Pv pv  )  [protected]

string storage::LvmVg::metaString (  )  const [protected]

References lvm1.

Referenced by doCreatePv(), and doCreateVg().

string storage::LvmVg::instSysString (  )  const [protected]

void storage::LvmVg::logData ( const string &  Dir  )  const [protected, virtual]

void storage::LvmVg::addLv ( unsigned long &  le,
string &  name,
string &  origin,
string &  uuid,
string &  status,
string &  alloc,
bool &  ro 
) [protected]

void storage::LvmVg::addPv ( Pv *&  p  )  [protected]

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


Friends And Related Function Documentation

friend class Storage [friend]

Reimplemented from storage::PeContainer.

friend class LvmLv [friend]

std::ostream& operator<< ( std::ostream &  s,
const LvmVg d 
) [friend]


Member Data Documentation

string storage::LvmVg::status [protected]

string storage::LvmVg::uuid [protected]

bool storage::LvmVg::lvm1 [protected]

bool storage::LvmVg::active = false [static, protected]

Reimplemented from storage::Container.

Referenced by getInfo().


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