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, SystemInfo &si)
 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
bool isPool () const
void setPool (bool p=true)
const string & usedPool () const
void setUsedPool (const string &val)
bool isThin () const
unsigned long long chunkSize () const
void setChunkSize (unsigned long long val)
void setUuid (const string &uuid)
void setStatus (const string &s)
void setAlloc (const string &a)
bool operator< (const LvmLv &rhs) const
bool operator<= (const LvmLv &rhs) const
bool operator>= (const LvmLv &rhs) const
bool operator> (const LvmLv &rhs) const
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
int setFormat (bool format, storage::FsType fs)
int changeMount (const string &val)
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
string used_pool
unsigned long long chunk_size
bool pool
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,
SystemInfo si 
)

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

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

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

void storage::LvmLv::setPool ( bool  p = true  )  [inline]

const string& storage::LvmLv::usedPool (  )  const [inline]

References used_pool.

void storage::LvmLv::setUsedPool ( const string &  val  )  [inline]

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

unsigned long long storage::LvmLv::chunkSize (  )  const [inline]

References chunk_size.

Referenced by storage::LvmVg::changeChunkSize().

void storage::LvmLv::setChunkSize ( unsigned long long  val  )  [inline]

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().

bool storage::LvmLv::operator< ( const LvmLv rhs  )  const

bool storage::LvmLv::operator<= ( const LvmLv rhs  )  const [inline]

bool storage::LvmLv::operator>= ( const LvmLv rhs  )  const [inline]

bool storage::LvmLv::operator> ( const LvmLv rhs  )  const [inline]

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]

int storage::LvmLv::setFormat ( bool  format,
storage::FsType  fs 
) [virtual]

int storage::LvmLv::changeMount ( const string &  val  )  [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]

string storage::LvmLv::vol_uuid [protected]

string storage::LvmLv::status [protected]

string storage::LvmLv::allocation [protected]

string storage::LvmLv::used_pool [protected]

unsigned long long storage::LvmLv::chunk_size [protected]

bool storage::LvmLv::pool [protected]

Reimplemented from storage::Dm.

Referenced by getInfo().


The documentation for this class was generated from the following files:

Generated on Wed May 29 15:33:17 2013 for yast2-storage by  doxygen 1.5.6