|
yast2-storage
|
#include <LvmLv.h>
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 LvmVg * | vg () 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 &) | |
| LvmLv & | operator= (const LvmLv &) |
Friends | |
| std::ostream & | operator<< (std::ostream &s, const LvmLv &p) |
| 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 | ||
| ) |
References storage::FSNONE, storage::Dm::init(), and y2deb.
| storage::LvmLv::LvmLv | ( | const LvmVg & | c, |
| const xmlNode * | node | ||
| ) |
References storage::getChildValue(), and y2deb.
| storage::LvmLv::~LvmLv | ( | ) | [virtual] |
| storage::LvmLv::LvmLv | ( | const LvmLv & | ) | [private] |
| 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] |
Reimplemented from storage::Volume.
References storage::_(), storage::Device::dev, and storage::sformat().
| bool storage::LvmLv::equalContent | ( | const LvmLv & | rhs | ) | const |
| Text storage::LvmLv::formatText | ( | bool | doing | ) | const [virtual] |
Reimplemented from storage::Dm.
References storage::_(), storage::Device::dev, storage::Volume::fsTypeString(), storage::sformat(), and storage::Device::sizeString().
| void storage::LvmLv::getInfo | ( | storage::LvmLvInfo & | info | ) | const |
| string storage::LvmLv::getOrigin | ( | ) | const [inline] |
References origin.
| void storage::LvmLv::getState | ( | LvmLvSnapshotStateInfo & | info | ) |
Referenced by storage::LvmVg::getLvSnapshotState().
| list< string > storage::LvmLv::getUsing | ( | ) | const [virtual] |
Reimplemented from storage::Dm.
| bool storage::LvmLv::hasSnapshots | ( | ) | const |
Referenced by storage::LvmVg::removeLv(), and storage::LvmVg::resizeVolume().
| bool storage::LvmLv::isPool | ( | ) | const [inline] |
References pool.
Referenced by storage::LvmVg::changeChunkSize(), and storage::LvmVg::createThin().
| bool storage::LvmLv::isSnapshot | ( | ) | const [inline] |
| bool storage::LvmLv::isThin | ( | ) | const [inline] |
References used_pool.
Referenced by storage::LvmVg::createLvSnapshot(), storage::LvmVg::doCreate(), and storage::LvmVg::removeLv().
| 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] |
References storage::Device::deleted().
Referenced by storage::LvmVg::findLv(), storage::Storage::getLvmLvInfo(), storage::LvmVg::numLv(), and storage::LvmVg::removeVg().
| 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] |
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] |
Reimplemented from storage::Volume.
References storage::_(), storage::Device::dev, storage::Volume::needShrink(), storage::sformat(), and storage::Device::sizeString().
| 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] |
References chunk_size.
Referenced by storage::LvmVg::addLv(), and storage::LvmVg::changeChunkSize().
| 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] |
References pool.
Referenced by storage::LvmVg::addLv(), and storage::LvmVg::createPool().
| void storage::LvmLv::setStatus | ( | const string & | s | ) | [inline] |
Referenced by LvmLv().
| void storage::LvmLv::setUsedPool | ( | const string & | val | ) | [inline] |
References used_pool.
Referenced by storage::LvmVg::addLv(), and storage::LvmVg::createThin().
| 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 |
| std::ostream& operator<< | ( | std::ostream & | s, |
| const LvmLv & | p | ||
| ) | [friend] |
string storage::LvmLv::allocation [protected] |
Referenced by setAlloc().
unsigned long long storage::LvmLv::chunk_size [protected] |
Referenced by chunkSize(), and setChunkSize().
storage::LvmLvInfo storage::LvmLv::info [mutable, protected] |
Reimplemented from storage::Dm.
string storage::LvmLv::origin [protected] |
Referenced by getOrigin(), and LvmLv().
bool storage::LvmLv::pool [protected] |
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().
1.7.3