#include <Dm.h>

Public Member Functions | |
| Dm (const PeContainer &d, const string &tn) | |
| Dm (const PeContainer &d, const string &tn, unsigned mnum) | |
| Dm (const PeContainer &d, const Dm &rhs) | |
| Dm & | operator= (const Dm &) |
| virtual | ~Dm () |
| const string & | getTableName () const |
| const string & | getTargetName () const |
| void | setTableName (const string &name) |
| bool | inactive () const |
| unsigned long long | getLe () const |
| void | setLe (unsigned long long le) |
| void | modifyPeSize (unsigned long long old, unsigned long long neww) |
| bool | removeTable () |
| void | calcSize () |
| const std::map< string, unsigned long > & | getPeMap () const |
| void | setPeMap (const std::map< string, unsigned long > &m) |
| unsigned long long | usingPe (const string &dev) const |
| bool | mapsTo (const string &dev) const |
| void | getTableInfo () |
| virtual bool | checkConsistency () const |
| unsigned | stripes () const |
| unsigned | setStripes (unsigned long val) |
| unsigned long long | stripeSize () const |
| void | setStripeSize (unsigned long long val) |
| string | sysfsPath () const |
| void | updateMajorMinor () |
| virtual void | print (std::ostream &s) const |
| virtual string | removeText (bool doing) const |
| virtual string | formatText (bool doing) const |
| void | getInfo (storage::DmInfo &info) const |
| void | changeDeviceName (const string &old, const string &nw) |
| bool | equalContent (const Dm &rhs) const |
| void | logDifference (const Dm &d) const |
| string | stringDifference (const Dm &d) const |
Static Public Member Functions | |
| static bool | notDeleted (const Dm &l) |
| static void | activate (bool val=true) |
| static string | devToTable (const string &dev) |
| static string | dmName (const string &table) |
| static int | dmNumber (const string &table) |
| static unsigned | dmMajor () |
| static string | dmDeviceName (unsigned long num) |
Protected Member Functions | |
| void | init () |
| const PeContainer * | pec () const |
| virtual const string | shortPrintedName () const |
| string | getDevice (const string &majmin) |
Static Protected Member Functions | |
| static void | getDmMajor () |
Protected Attributes | |
| string | tname |
| string | target |
| unsigned long long | num_le |
| unsigned | stripe |
| unsigned long long | stripe_size |
| bool | inactiv |
| std::map< string, unsigned long > | pe_map |
| storage::DmInfo | info |
Static Protected Attributes | |
| static bool | active = false |
| static unsigned | dm_major = 0 |
| static std::list< string > | known_types |
Friends | |
| std::ostream & | operator<< (std::ostream &s, const Dm &p) |
| Dm::Dm | ( | const PeContainer & | d, | |
| const string & | tn | |||
| ) |
References inactiv, num_le, stripe, stripe_size, and y2debug.
| Dm::Dm | ( | const PeContainer & | d, | |
| const string & | tn, | |||
| unsigned | mnum | |||
| ) |
References getTableInfo(), inactiv, init(), storage::Volume::nm, num_le, stripe, stripe_size, and y2milestone.
| Dm::Dm | ( | const PeContainer & | d, | |
| const Dm & | rhs | |||
| ) |
References storage::Volume::dev, and y2debug.
| Dm::~Dm | ( | ) | [virtual] |
References storage::Volume::dev, and y2debug.
References inactiv, storage::Volume::nm, num_le, pe_map, stripe, stripe_size, tname, and y2debug.
| const string& storage::Dm::getTableName | ( | ) | const [inline] |
References tname.
| const string& storage::Dm::getTargetName | ( | ) | const [inline] |
| void storage::Dm::setTableName | ( | const string & | name | ) | [inline] |
References tname.
| bool storage::Dm::inactive | ( | ) | const [inline] |
| unsigned long long storage::Dm::getLe | ( | ) | const [inline] |
References num_le.
Referenced by storage::LvmVg::resizeVolume(), and storage::EvmsCo::resizeVolume().
| void Dm::setLe | ( | unsigned long long | le | ) |
References num_le.
Referenced by storage::Evms::Evms(), storage::LvmLv::LvmLv(), storage::LvmVg::resizeVolume(), and storage::EvmsCo::resizeVolume().
| void Dm::modifyPeSize | ( | unsigned long long | old, | |
| unsigned long long | neww | |||
| ) |
References calcSize(), num_le, and pe_map.
| bool Dm::removeTable | ( | ) |
References storage::Volume::getContainer(), and tname.
Referenced by storage::Storage::removeDmMapsTo().
| void Dm::calcSize | ( | ) |
References num_le, pec(), and storage::Volume::setSize().
Referenced by storage::Evms::Evms(), storage::LvmLv::LvmLv(), modifyPeSize(), storage::LvmVg::resizeVolume(), and storage::EvmsCo::resizeVolume().
| const std::map<string,unsigned long>& storage::Dm::getPeMap | ( | ) | const [inline] |
References pe_map.
Referenced by storage::DmCo::getDmData(), storage::LvmVg::resizeVolume(), storage::EvmsCo::resizeVolume(), and storage::Storage::updateDmEmptyPeMap().
| void Dm::setPeMap | ( | const std::map< string, unsigned long > & | m | ) |
References storage::Volume::device(), pe_map, and y2mil.
Referenced by storage::LvmVg::createLv(), storage::EvmsCo::createVol(), storage::LvmVg::resizeVolume(), and storage::EvmsCo::resizeVolume().
| unsigned long long Dm::usingPe | ( | const string & | dev | ) | const |
References pe_map.
| bool Dm::mapsTo | ( | const string & | dev | ) | const |
References storage::PeContainer::addedPv(), storage::Regex::match(), pe_map, pec(), tname, y2mil, and y2milestone.
Referenced by storage::Storage::checkDmMapsTo(), and storage::Storage::removeDmMapsTo().
| void Dm::getTableInfo | ( | ) |
References storage::Volume::dev, dm_major, storage::extractNthWord(), getDevice(), getDmMajor(), storage::SystemCmd::getLine(), inactiv, known_types, storage::Regex::match(), storage::SystemCmd::numLines(), pe_map, pec(), storage::PeContainer::peSize(), storage::SystemCmd::retcode(), storage::splitString(), str, stripe, stripe_size, target, tname, y2mil, y2milestone, and y2warning.
Referenced by Dm(), storage::DmPart::DmPart(), storage::Evms::Evms(), storage::LvmLv::LvmLv(), storage::Storage::updateDmEmptyPeMap(), and storage::DmPart::updateMinor().
| bool Dm::checkConsistency | ( | ) | const [virtual] |
References storage::Volume::dev, num_le, pe_map, and y2warning.
| unsigned storage::Dm::stripes | ( | ) | const [inline] |
References stripe.
Referenced by storage::LvmVg::resizeVolume(), and storage::EvmsCo::resizeVolume().
| unsigned storage::Dm::setStripes | ( | unsigned long | val | ) | [inline] |
References stripe.
| unsigned long long storage::Dm::stripeSize | ( | ) | const [inline] |
References stripe_size.
| void storage::Dm::setStripeSize | ( | unsigned long long | val | ) | [inline] |
References stripe_size.
| string Dm::sysfsPath | ( | ) | const [virtual] |
Reimplemented from storage::Volume.
References storage::Volume::alt_names, storage::Storage::sysfsDir(), and y2mil.
| void Dm::updateMajorMinor | ( | ) |
References storage::decString(), storage::Volume::dev, dmMajor(), storage::Volume::getMajorMinor(), storage::Volume::majorNr(), storage::Volume::minorNr(), storage::Volume::mjr, storage::Volume::mnr, storage::Volume::num, and storage::Volume::replaceAltName().
Referenced by init(), and storage::Storage::updateDmEmptyPeMap().
| virtual void storage::Dm::print | ( | std::ostream & | s | ) | const [inline, virtual] |
Reimplemented from storage::Volume.
Reimplemented in storage::DmPart, storage::Dmraid, storage::Evms, and storage::LvmLv.
| string Dm::removeText | ( | bool | doing | ) | const [virtual] |
Reimplemented from storage::Volume.
Reimplemented in storage::Dmraid, storage::Evms, and storage::LvmLv.
References storage::_(), storage::Volume::dev, storage::sformat(), and storage::Volume::sizeString().
| string Dm::formatText | ( | bool | doing | ) | const [virtual] |
Reimplemented from storage::Volume.
Reimplemented in storage::Dmraid, storage::Evms, and storage::LvmLv.
References storage::_(), storage::Volume::dev, storage::ENC_NONE, storage::Volume::encryption, storage::Volume::fsTypeString(), storage::Volume::mp, storage::sformat(), and storage::Volume::sizeString().
| void Dm::getInfo | ( | storage::DmInfo & | info | ) | const |
References info, storage::DmInfo::nr, storage::Volume::num, storage::DmInfo::table, target, storage::DmInfo::target, tname, and storage::DmInfo::v.
| void Dm::changeDeviceName | ( | const string & | old, | |
| const string & | nw | |||
| ) |
References pe_map.
| static bool storage::Dm::notDeleted | ( | const Dm & | l | ) | [inline, static] |
References storage::Volume::deleted().
Referenced by storage::PeContainer::checkConsistency(), storage::DmCo::findDm(), and storage::Storage::getDmInfo().
| void Dm::activate | ( | bool | val = true |
) | [static] |
References active, storage::SystemCmd::execute(), storage::SystemCmd::numLines(), storage::SystemCmd::retcode(), and y2milestone.
Referenced by storage::LvmVg::activate(), storage::EvmsCo::activate(), storage::DmraidCo::activate(), storage::DmPartCo::activate_part(), and storage::Storage::activateHld().
| string Dm::devToTable | ( | const string & | dev | ) | [static] |
References storage::undevDevice(), and y2milestone.
Referenced by storage::Storage::removeDmTableTo().
| string Dm::dmName | ( | const string & | table | ) | [static] |
References storage::decString(), dmNumber(), storage::Volume::num, and y2mil.
| int Dm::dmNumber | ( | const string & | table | ) | [static] |
References storage::SystemCmd::getLine(), storage::SystemCmd::numLines(), storage::SystemCmd::retcode(), storage::splitString(), and y2mil.
Referenced by dmName(), and storage::DmPartCo::init().
| bool Dm::equalContent | ( | const Dm & | rhs | ) | const |
References storage::Volume::equalContent(), inactiv, num_le, pe_map, stripe, and stripe_size.
Referenced by storage::LvmLv::equalContent(), storage::Evms::equalContent(), and storage::DmPart::equalContent().
| void Dm::logDifference | ( | const Dm & | d | ) | const |
References stringDifference(), and y2milestone.
| string Dm::stringDifference | ( | const Dm & | d | ) | const |
References storage::decString(), storage::Volume::logDifference(), num_le, pe_map, stripe, and stripe_size.
Referenced by storage::LvmLv::logDifference(), storage::Evms::logDifference(), storage::DmPart::logDifference(), and logDifference().
| unsigned Dm::dmMajor | ( | ) | [static] |
References dm_major, and getDmMajor().
Referenced by storage::Storage::deviceByNumber(), storage::Evms::Evms(), getDevice(), storage::PeContainer::init(), storage::Evms::init(), storage::LvmVg::normalizeDmDevices(), and updateMajorMinor().
| string Dm::dmDeviceName | ( | unsigned long | num | ) | [static] |
References storage::decString().
Referenced by storage::Volume::doCryptsetup(), and storage::Storage::setDmcryptData().
| void Dm::init | ( | ) | [protected] |
Reimplemented from storage::Volume.
References storage::Volume::alt_names, storage::Volume::dev, storage::Volume::nm, tname, and updateMajorMinor().
Referenced by Dm(), storage::DmPart::DmPart(), storage::Evms::Evms(), storage::LvmLv::init(), storage::Evms::init(), storage::DmPart::init(), and storage::LvmLv::LvmLv().
| const PeContainer * Dm::pec | ( | ) | const [protected] |
| virtual const string storage::Dm::shortPrintedName | ( | ) | const [inline, protected, virtual] |
Reimplemented in storage::DmPart, storage::Dmraid, storage::Evms, and storage::LvmLv.
Referenced by storage::operator<<().
| string Dm::getDevice | ( | const string & | majmin | ) | [protected] |
References storage::Volume::cont, storage::Container::device(), storage::Storage::deviceByNumber(), dm_major, dmMajor(), storage::SystemCmd::execute(), storage::extractNthWord(), storage::SystemCmd::getLine(), storage::Container::getStorage(), storage::Storage::knownDevice(), storage::Loop::loopDeviceName(), storage::Loop::major(), storage::Container::majorNr(), storage::Container::minorNr(), storage::SystemCmd::numLines(), storage::SystemCmd::retcode(), and storage::splitString().
Referenced by getTableInfo().
| void Dm::getDmMajor | ( | ) | [static, protected] |
References dm_major, storage::getMajorDevices(), and y2milestone.
Referenced by dmMajor(), and getTableInfo().
| std::ostream& operator<< | ( | std::ostream & | s, | |
| const Dm & | p | |||
| ) | [friend] |
string storage::Dm::tname [protected] |
string storage::Dm::target [protected] |
unsigned long long storage::Dm::num_le [protected] |
Referenced by calcSize(), checkConsistency(), Dm(), equalContent(), getLe(), modifyPeSize(), storage::operator<<(), operator=(), setLe(), and stringDifference().
unsigned storage::Dm::stripe [protected] |
unsigned long long storage::Dm::stripe_size [protected] |
bool storage::Dm::inactiv [protected] |
Referenced by Dm(), equalContent(), getTableInfo(), inactive(), storage::operator<<(), and operator=().
std::map<string,unsigned long> storage::Dm::pe_map [protected] |
bool Dm::active = false [static, protected] |
Referenced by activate().
unsigned Dm::dm_major = 0 [static, protected] |
Referenced by dmMajor(), getDevice(), getDmMajor(), and getTableInfo().
list< string > Dm::known_types [static, protected] |
Referenced by getTableInfo().
storage::DmInfo storage::Dm::info [mutable, protected] |
Reimplemented from storage::Volume.
Reimplemented in storage::DmPart, storage::Evms, and storage::LvmLv.
Referenced by getInfo().
1.5.5