#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) | |
| 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 |
| 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 &) | |
| 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 | |||
| ) |
| storage::LvmLv::LvmLv | ( | const LvmVg & | c, | |
| const string & | name, | |||
| const string & | device, | |||
| const string & | origin, | |||
| unsigned long | le, | |||
| unsigned | stripe | |||
| ) |
References storage::Device::alt_names, calcSize(), storage::Volume::cont, storage::Volume::detected_fs, storage::Device::dev, storage::Volume::fs, storage::FSNONE, storage::Dm::getTableName(), storage::Dm::init(), storage::Device::name(), origin, storage::Dm::setLe(), storage::Dm::stripe, and y2deb.
| storage::LvmLv::LvmLv | ( | const LvmVg & | c, | |
| const xmlNode * | node | |||
| ) |
References storage::Device::dev, storage::Volume::num, storage::Volume::numeric, and y2deb.
References storage::Device::dev, and y2deb.
| storage::LvmLv::~LvmLv | ( | ) | [virtual] |
References storage::Device::dev, and y2deb.
| storage::LvmLv::LvmLv | ( | const LvmLv & | ) | [private] |
| void storage::LvmLv::saveData | ( | xmlNode * | node | ) | const |
| const LvmVg * storage::LvmLv::vg | ( | ) | const |
| void storage::LvmLv::calcSize | ( | ) | [virtual] |
Reimplemented from storage::Dm.
References storage::IterPair< Iter >::begin(), storage::Dm::calcSize(), storage::IterPair< Iter >::end(), isSnapshot(), notDeleted(), origin, storage::Volume::setSize(), vg(), and y2err.
Referenced by LvmLv(), and storage::LvmVg::resizeVolume().
| 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] |
Referenced by calcSize(), and storage::LvmVg::resizeVolume().
| bool storage::LvmLv::hasSnapshots | ( | ) | const |
References storage::IterPair< Iter >::begin(), storage::IterPair< Iter >::end(), storage::Device::name(), notDeleted(), and vg().
Referenced by storage::LvmVg::resizeVolume().
| void storage::LvmLv::setUuid | ( | const string & | uuid | ) | [inline] |
| void storage::LvmLv::setStatus | ( | const string & | s | ) | [inline] |
Referenced by LvmLv().
| void storage::LvmLv::setAlloc | ( | const string & | a | ) | [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, storage::sformat(), and storage::Device::sizeString().
Referenced by storage::LvmVg::doRemove().
| Text storage::LvmLv::createText | ( | bool | doing | ) | const [virtual] |
Reimplemented from storage::Volume.
References storage::_(), storage::Device::dev, storage::ENC_NONE, storage::Volume::encryption, storage::Volume::fsTypeString(), storage::Volume::mp, storage::sformat(), and storage::Device::sizeString().
| Text storage::LvmLv::formatText | ( | bool | doing | ) | const [virtual] |
Reimplemented from storage::Dm.
References storage::_(), storage::Device::dev, storage::ENC_NONE, storage::Volume::encryption, storage::Volume::fsTypeString(), storage::Volume::mp, storage::sformat(), and storage::Device::sizeString().
| 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::getInfo | ( | storage::LvmLvInfo & | info | ) | const |
References allocation, storage::LvmLvInfo::allocation, storage::LvmLvInfo::dm_table, storage::LvmLvInfo::dm_target, storage::Volume::getInfo(), 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::Dm::stripe_size, storage::LvmLvInfo::stripes, storage::LvmLvInfo::stripeSizeK, storage::Dm::target, storage::Dm::tname, storage::LvmLvInfo::uuid, storage::LvmLvInfo::v, and vol_uuid.
| bool storage::LvmLv::equalContent | ( | const LvmLv & | rhs | ) | const |
References allocation, storage::Dm::equalContent(), status, and vol_uuid.
| list< string > storage::LvmLv::getUsing | ( | ) | const [virtual] |
| void storage::LvmLv::logDifference | ( | std::ostream & | log, | |
| const LvmLv & | rhs | |||
| ) | const |
References allocation, storage::logDiff(), storage::Dm::logDifference(), status, and vol_uuid.
| static bool storage::LvmLv::notDeleted | ( | const LvmLv & | l | ) | [inline, static] |
References storage::Device::deleted().
Referenced by calcSize(), storage::LvmVg::changeStripe(), storage::LvmVg::changeStripeSize(), storage::LvmVg::createLv(), storage::LvmVg::createLvSnapshot(), storage::Storage::getLvmLvInfo(), storage::LvmVg::getLvSnapshotState(), hasSnapshots(), storage::LvmVg::numLv(), storage::LvmVg::removeLv(), storage::LvmVg::removeLvSnapshot(), and storage::LvmVg::removeVg().
| 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.
| std::ostream& operator<< | ( | std::ostream & | s, | |
| const LvmLv & | p | |||
| ) | [friend] |
string storage::LvmLv::origin [protected] |
Referenced by calcSize(), getInfo(), and LvmLv().
string storage::LvmLv::vol_uuid [protected] |
Referenced by equalContent(), getInfo(), logDifference(), storage::operator<<(), and setUuid().
string storage::LvmLv::status [protected] |
Referenced by equalContent(), getInfo(), logDifference(), and storage::operator<<().
string storage::LvmLv::allocation [protected] |
Referenced by equalContent(), getInfo(), logDifference(), storage::operator<<(), and setAlloc().
storage::LvmLvInfo storage::LvmLv::info [mutable, protected] |
1.5.6