storage::LvmLv Class Reference

#include <LvmLv.h>

Inheritance diagram for storage::LvmLv:

storage::Dm storage::Volume storage::Device

List of all members.

Public Member Functions

 LvmLv (const LvmVg &c, const string &name, const string &device, const string &origin, unsigned long le, const string &uuid, const string &status, const string &alloc)
 LvmLv (const LvmVg &c, const string &name, const string &device, const string &origin, unsigned long le, unsigned stripe)
 LvmLv (const LvmVg &c, const xmlNode *node)
 LvmLv (const LvmVg &c, const LvmLv &v)
virtual ~LvmLv ()
void saveData (xmlNode *node) const
const LvmVgvg () const
void calcSize ()
void getState (LvmLvSnapshotStateInfo &info)
void setOrigin (const string &o)
string getOrigin () const
bool isSnapshot () const
bool hasSnapshots () const
void setUuid (const string &uuid)
void setStatus (const string &s)
void setAlloc (const string &a)
virtual void print (std::ostream &s) const
Text removeText (bool doing) const
Text createText (bool doing) const
Text formatText (bool doing) const
Text resizeText (bool doing) const
void getInfo (storage::LvmLvInfo &info) const
bool equalContent (const LvmLv &rhs) const
virtual list< string > getUsing () const
void logDifference (std::ostream &log, const LvmLv &rhs) const

Static Public Member Functions

static bool notDeleted (const LvmLv &l)

Protected Member Functions

virtual const string shortPrintedName () const

Static Protected Member Functions

static string makeDmTableName (const string &vg_name, const string &lv_name)

Protected Attributes

string origin
string vol_uuid
string status
string allocation
storage::LvmLvInfo info

Private Member Functions

 LvmLv (const LvmLv &)
LvmLvoperator= (const LvmLv &)

Friends

std::ostream & operator<< (std::ostream &s, const LvmLv &p)


Constructor & Destructor Documentation

storage::LvmLv::LvmLv ( const LvmVg c,
const string &  name,
const string &  device,
const string &  origin,
unsigned long  le,
const string &  uuid,
const string &  status,
const string &  alloc 
)

storage::LvmLv::LvmLv ( const LvmVg c,
const string &  name,
const string &  device,
const string &  origin,
unsigned long  le,
unsigned  stripe 
)

storage::LvmLv::LvmLv ( const LvmVg c,
const xmlNode *  node 
)

storage::LvmLv::LvmLv ( const LvmVg c,
const LvmLv v 
)

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

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

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

storage::LvmLv::LvmLv ( const LvmLv  )  [private]


Member Function Documentation

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

Reimplemented from storage::Dm.

References storage::Dm::saveData().

const LvmVg * storage::LvmLv::vg (  )  const

References storage::Volume::cont.

Referenced by calcSize(), and hasSnapshots().

void storage::LvmLv::calcSize (  )  [virtual]

void storage::LvmLv::getState ( LvmLvSnapshotStateInfo info  ) 

void storage::LvmLv::setOrigin ( const string &  o  )  [inline]

string storage::LvmLv::getOrigin (  )  const [inline]

bool storage::LvmLv::isSnapshot (  )  const [inline]

bool storage::LvmLv::hasSnapshots (  )  const

void storage::LvmLv::setUuid ( const string &  uuid  )  [inline]

References vol_uuid.

Referenced by LvmLv().

void storage::LvmLv::setStatus ( const string &  s  )  [inline]

Referenced by LvmLv().

void storage::LvmLv::setAlloc ( const string &  a  )  [inline]

References allocation.

Referenced by LvmLv().

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

Reimplemented from storage::Dm.

Text storage::LvmLv::removeText ( bool  doing  )  const [virtual]

Text storage::LvmLv::createText ( bool  doing  )  const [virtual]

Text storage::LvmLv::formatText ( bool  doing  )  const [virtual]

Text storage::LvmLv::resizeText ( bool  doing  )  const [virtual]

void storage::LvmLv::getInfo ( storage::LvmLvInfo info  )  const

bool storage::LvmLv::equalContent ( const LvmLv rhs  )  const

list< string > storage::LvmLv::getUsing (  )  const [virtual]

Reimplemented from storage::Dm.

References storage::Volume::cont, and storage::Device::device().

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

static bool storage::LvmLv::notDeleted ( const LvmLv l  )  [inline, static]

string storage::LvmLv::makeDmTableName ( const string &  vg_name,
const string &  lv_name 
) [static, protected]

virtual const string storage::LvmLv::shortPrintedName (  )  const [inline, protected, virtual]

Reimplemented from storage::Dm.

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


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const LvmLv p 
) [friend]


Member Data Documentation

string storage::LvmLv::origin [protected]

Referenced by calcSize(), getInfo(), and LvmLv().

string storage::LvmLv::vol_uuid [protected]

string storage::LvmLv::status [protected]

string storage::LvmLv::allocation [protected]

Reimplemented from storage::Dm.

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