#include <LvmLv.h>

Public Member Functions | |
| LvmLv (const LvmVg &d, const string &name, const string &origin, unsigned long le, const string &uuid, const string &status, const string &alloc) | |
| LvmLv (const LvmVg &d, const string &name, const string &origin, unsigned long le, unsigned stripe) | |
| LvmLv (const LvmVg &d, const LvmLv &l) | |
| virtual | ~LvmLv () |
| const LvmVg * | vg () 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 |
| string | removeText (bool doing) const |
| string | createText (bool doing) const |
| string | formatText (bool doing) const |
| string | resizeText (bool doing) const |
| void | getInfo (storage::LvmLvInfo &info) const |
| bool | equalContent (const LvmLv &rhs) const |
| void | logDifference (const LvmLv &d) const |
Protected Member Functions | |
| void | init (const string &name) |
| virtual const string | shortPrintedName () const |
| LvmLv & | operator= (const LvmLv &) |
Protected Attributes | |
| string | origin |
| string | vol_uuid |
| string | status |
| string | allocation |
| storage::LvmLvInfo | info |
Friends | |
| std::ostream & | operator<< (std::ostream &s, const LvmLv &p) |
| storage::LvmLv::LvmLv | ( | const LvmVg & | d, | |
| const string & | name, | |||
| const string & | origin, | |||
| unsigned long | le, | |||
| const string & | uuid, | |||
| const string & | status, | |||
| const string & | alloc | |||
| ) |
| storage::LvmLv::LvmLv | ( | const LvmVg & | d, | |
| const string & | name, | |||
| const string & | origin, | |||
| unsigned long | le, | |||
| unsigned | stripe | |||
| ) |
References storage::Volume::dev, and y2deb.
| LvmLv::~LvmLv | ( | ) | [virtual] |
References storage::Volume::dev, and y2deb.
| const LvmVg * LvmLv::vg | ( | ) | const |
| void LvmLv::calcSize | ( | ) | [virtual] |
Reimplemented from storage::Dm.
References storage::IterPair< Iter >::begin(), storage::Dm::calcSize(), storage::IterPair< Iter >::end(), isSnapshot(), storage::LvmVg::lvNotDeleted(), origin, storage::Volume::setSize(), vg(), and y2err.
Referenced by storage::LvmVg::resizeVolume().
| void LvmLv::getState | ( | LvmLvSnapshotStateInfo & | info | ) |
References storage::LvmLvSnapshotStateInfo::active, storage::LvmLvSnapshotStateInfo::allocated, storage::Volume::cont, storage::extractNthWord(), storage::SystemCmd::getLine(), LVSBIN, storage::Volume::name(), storage::Container::name(), storage::SystemCmd::numLines(), storage::quote(), and storage::SystemCmd::retcode().
| void storage::LvmLv::setOrigin | ( | const string & | o | ) | [inline] |
| string storage::LvmLv::getOrigin | ( | ) | const [inline] |
| bool storage::LvmLv::isSnapshot | ( | ) | const [inline] |
Referenced by calcSize(), and storage::LvmVg::resizeVolume().
| bool LvmLv::hasSnapshots | ( | ) | const |
References storage::IterPair< Iter >::begin(), storage::IterPair< Iter >::end(), storage::LvmVg::lvNotDeleted(), storage::Volume::name(), and vg().
Referenced by storage::LvmVg::resizeVolume().
| void storage::LvmLv::setUuid | ( | const string & | uuid | ) | [inline] |
| void storage::LvmLv::setStatus | ( | const string & | s | ) | [inline] |
| void storage::LvmLv::setAlloc | ( | const string & | a | ) | [inline] |
References allocation.
| virtual void storage::LvmLv::print | ( | std::ostream & | s | ) | const [inline, virtual] |
Reimplemented from storage::Dm.
| string LvmLv::removeText | ( | bool | doing | ) | const [virtual] |
Reimplemented from storage::Dm.
References storage::_(), storage::Volume::dev, storage::sformat(), and storage::Volume::sizeString().
Referenced by storage::LvmVg::doRemove().
| string LvmLv::createText | ( | bool | doing | ) | const [virtual] |
Reimplemented from storage::Volume.
References storage::_(), storage::Volume::dev, storage::ENC_NONE, storage::Volume::encryption, storage::Volume::fsTypeString(), storage::Volume::mp, storage::sformat(), and storage::Volume::sizeString().
| string LvmLv::formatText | ( | bool | doing | ) | const [virtual] |
Reimplemented from storage::Dm.
References storage::_(), storage::Volume::dev, storage::ENC_NONE, storage::Volume::encryption, storage::Volume::fsTypeString(), storage::Volume::mp, storage::sformat(), and storage::Volume::sizeString().
| string LvmLv::resizeText | ( | bool | doing | ) | const [virtual] |
Reimplemented from storage::Volume.
References storage::_(), storage::Volume::dev, storage::Volume::needShrink(), storage::sformat(), and storage::Volume::sizeString().
| void LvmLv::getInfo | ( | storage::LvmLvInfo & | info | ) | const |
References allocation, storage::LvmLvInfo::allocation, storage::LvmLvInfo::dm_table, storage::LvmLvInfo::dm_target, info, storage::Dm::num_le, origin, storage::LvmLvInfo::origin, storage::Dm::pec(), storage::PeContainer::peSize(), storage::LvmLvInfo::sizeK, status, storage::LvmLvInfo::status, storage::Dm::stripe, storage::LvmLvInfo::stripe, storage::Dm::stripe_size, storage::LvmLvInfo::stripe_size, storage::Dm::target, storage::Dm::tname, storage::LvmLvInfo::uuid, storage::LvmLvInfo::v, and vol_uuid.
| bool LvmLv::equalContent | ( | const LvmLv & | rhs | ) | const |
References allocation, storage::Dm::equalContent(), status, and vol_uuid.
| void LvmLv::logDifference | ( | const LvmLv & | d | ) | const |
References allocation, status, storage::Dm::stringDifference(), vol_uuid, and y2mil.
| void storage::LvmLv::init | ( | const string & | name | ) | [protected] |
| virtual const string storage::LvmLv::shortPrintedName | ( | ) | const [inline, protected, virtual] |
Reimplemented from storage::Dm.
References allocation, storage::Volume::nm, status, vol_uuid, and y2deb.
| std::ostream& operator<< | ( | std::ostream & | s, | |
| const LvmLv & | p | |||
| ) | [friend] |
string storage::LvmLv::origin [protected] |
Referenced by calcSize(), and getInfo().
string storage::LvmLv::vol_uuid [protected] |
Referenced by equalContent(), getInfo(), logDifference(), storage::operator<<(), operator=(), and setUuid().
string storage::LvmLv::status [protected] |
Referenced by equalContent(), getInfo(), logDifference(), storage::operator<<(), and operator=().
string storage::LvmLv::allocation [protected] |
Referenced by equalContent(), getInfo(), logDifference(), storage::operator<<(), operator=(), and setAlloc().
storage::LvmLvInfo storage::LvmLv::info [mutable, protected] |
1.5.6