yast2-storage
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions | Friends

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 
)

References storage::getChildValue(), and y2deb.

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

References y2deb.

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

Member Function Documentation

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

Reimplemented from storage::Dm.

Referenced by LvmLv(), and storage::LvmVg::resizeVolume().

int storage::LvmLv::changeMount ( const string &  val) [virtual]

Reimplemented from storage::Volume.

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

References chunk_size.

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

Text storage::LvmLv::createText ( bool  doing) const [virtual]
bool storage::LvmLv::equalContent ( const LvmLv rhs) const
Text storage::LvmLv::formatText ( bool  doing) const [virtual]
void storage::LvmLv::getInfo ( storage::LvmLvInfo info) const
string storage::LvmLv::getOrigin ( ) const [inline]

References origin.

void storage::LvmLv::getState ( LvmLvSnapshotStateInfo info)
list< string > storage::LvmLv::getUsing ( ) const [virtual]

Reimplemented from storage::Dm.

bool storage::LvmLv::hasSnapshots ( ) const
bool storage::LvmLv::isPool ( ) const [inline]
bool storage::LvmLv::isSnapshot ( ) const [inline]
bool storage::LvmLv::isThin ( ) const [inline]
void storage::LvmLv::logDifference ( std::ostream &  log,
const LvmLv rhs 
) const
string storage::LvmLv::makeDmTableName ( const string &  vg_name,
const string &  lv_name 
) [static, protected]
static bool storage::LvmLv::notDeleted ( const LvmLv l) [inline, static]
bool storage::LvmLv::operator< ( const LvmLv rhs) const
bool storage::LvmLv::operator<= ( const LvmLv rhs) const [inline]
LvmLv& storage::LvmLv::operator= ( const LvmLv ) [private]
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]

Reimplemented from storage::Dm.

References storage::_(), storage::Device::dev, and storage::sformat().

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

Text storage::LvmLv::resizeText ( bool  doing) const [virtual]
void storage::LvmLv::saveData ( xmlNode *  node) const

Reimplemented from storage::Dm.

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

References allocation.

Referenced by LvmLv().

void storage::LvmLv::setChunkSize ( unsigned long long  val) [inline]
int storage::LvmLv::setFormat ( bool  format,
storage::FsType  fs 
) [virtual]

Reimplemented from storage::Volume.

void storage::LvmLv::setOrigin ( const string &  o) [inline]
void storage::LvmLv::setPool ( bool  p = true) [inline]
void storage::LvmLv::setStatus ( const string &  s) [inline]

Referenced by LvmLv().

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

References storage::Volume::uuid, and vol_uuid.

Referenced by LvmLv().

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

Reimplemented from storage::Dm.

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

References used_pool.

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

Friends And Related Function Documentation

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

Member Data Documentation

string storage::LvmLv::allocation [protected]

Referenced by setAlloc().

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

Referenced by chunkSize(), and setChunkSize().

Reimplemented from storage::Dm.

string storage::LvmLv::origin [protected]

Referenced by getOrigin(), and LvmLv().

bool storage::LvmLv::pool [protected]

Referenced by isPool(), and setPool().

string storage::LvmLv::status [protected]
string storage::LvmLv::used_pool [protected]

Referenced by isThin(), setUsedPool(), and usedPool().

string storage::LvmLv::vol_uuid [protected]

Referenced by setUuid().


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