#include <DmCo.h>

Public Member Functions | |
| DmCo (Storage *const s) | |
| DmCo (Storage *const s, SystemInfo &systeminfo, bool only_crypt) | |
| DmCo (const DmCo &c) | |
| virtual | ~DmCo () |
| void | second (SystemInfo &systeminfo, bool only_crypt) |
| bool | equalContent (const Container &rhs) const |
| virtual void | logDifferenceWithVolumes (std::ostream &log, const Container &rhs) const |
| void | updateDmMaps () |
| int | removeDm (const string &table) |
| int | removeVolume (Volume *v) |
Static Public Member Functions | |
| static storage::CType | staticType () |
Protected Member Functions | |
| void | getDmData (SystemInfo &systeminfo, bool only_crypt) |
| bool | findDm (unsigned num, DmIter &i) |
| bool | findDm (unsigned num) |
| bool | findDm (const string &dev, DmIter &i) |
| bool | findDm (const string &dev) |
| void | addDm (Dm *m) |
| void | checkDm (Dm *m) |
| virtual Container * | getCopy () const |
| storage::EncryptType | detectEncryption (const string &device) const |
| virtual void | print (std::ostream &s) const |
| int | doRemove (Volume *v) |
Private Member Functions | |
| DmCo & | operator= (const DmCo &) |
Friends | |
| class | Storage |
| std::ostream & | operator<< (std::ostream &, const DmCo &) |
| storage::DmCo::DmCo | ( | Storage *const | s, | |
| SystemInfo & | systeminfo, | |||
| bool | only_crypt | |||
| ) |
References getDmData(), and y2deb.
| storage::DmCo::DmCo | ( | const DmCo & | c | ) |
| storage::DmCo::~DmCo | ( | ) | [virtual] |
References y2deb.
| void storage::DmCo::second | ( | SystemInfo & | systeminfo, | |
| bool | only_crypt | |||
| ) |
| static storage::CType storage::DmCo::staticType | ( | ) | [inline, static] |
| bool storage::DmCo::equalContent | ( | const Container & | rhs | ) | const [virtual] |
Reimplemented from storage::Container.
References storage::IterPair< Iter >::begin(), storage::PeContainer::dmPair(), storage::IterPair< Iter >::end(), and storage::equalContent().
| void storage::DmCo::logDifferenceWithVolumes | ( | std::ostream & | log, | |
| const Container & | rhs | |||
| ) | const [virtual] |
| void storage::DmCo::updateDmMaps | ( | ) |
References storage::IterPair< Iter >::begin(), storage::PeContainer::dmPair(), storage::IterPair< Iter >::end(), and y2mil.
Referenced by storage::Storage::detectDm().
| int storage::DmCo::removeDm | ( | const string & | table | ) |
References storage::Storage::clearUsedBy(), storage::DM_CHANGE_READONLY, storage::DM_REMOVE_CREATE_NOT_FOUND, storage::DM_REMOVE_USED_BY, storage::DM_UNKNOWN_TABLE, findDm(), storage::Container::getStorage(), storage::Container::readonly(), storage::Container::removeFromList(), and y2mil.
Referenced by removeVolume().
| int storage::DmCo::removeVolume | ( | Volume * | v | ) | [virtual] |
Reimplemented from storage::Container.
References storage::DM_REMOVE_INVALID_VOLUME, storage::Device::name(), removeDm(), and y2mil.
| void storage::DmCo::getDmData | ( | SystemInfo & | systeminfo, | |
| bool | only_crypt | |||
| ) | [protected] |
References addDm(), storage::IterPair< Iter >::begin(), storage::CmdDmsetup::begin(), storage::Storage::canUseDevice(), storage::Storage::clearUsedBy(), storage::decString(), detectEncryption(), storage::Device::dev, storage::Device::device(), storage::Storage::dmmPair(), storage::Storage::dmmultipathCoPair(), storage::Storage::dmraidCoPair(), storage::Storage::dmrPair(), storage::IterPair< Iter >::end(), storage::CmdDmsetup::end(), storage::SystemInfo::getCmdDmsetup(), storage::Dm::getPeMap(), storage::SystemInfo::getProcParts(), storage::ProcParts::getSize(), storage::Container::getStorage(), storage::Dm::getTargetName(), storage::Storage::isUsedBy(), storage::Storage::knownDevice(), storage::Storage::lvmLvPair(), storage::CmdDmsetup::Entry::mnr, storage::Storage::setDmcryptData(), storage::Volume::setSize(), storage::Storage::setUsedBy(), storage::Device::sizeK(), storage::UB_DM, and y2mil.
| bool storage::DmCo::findDm | ( | unsigned | num, | |
| DmIter & | i | |||
| ) | [protected] |
References storage::IterPair< Iter >::begin(), storage::PeContainer::dmPair(), storage::IterPair< Iter >::end(), and storage::Dm::notDeleted().
Referenced by addDm(), findDm(), and removeDm().
| bool storage::DmCo::findDm | ( | unsigned | num | ) | [protected] |
References findDm().
| bool storage::DmCo::findDm | ( | const string & | dev, | |
| DmIter & | i | |||
| ) | [protected] |
| bool storage::DmCo::findDm | ( | const string & | dev | ) | [protected] |
References findDm().
| void storage::DmCo::addDm | ( | Dm * | m | ) | [protected] |
References storage::Container::addToList(), findDm(), storage::Volume::nr(), and y2war.
Referenced by getDmData().
| void storage::DmCo::checkDm | ( | Dm * | m | ) | [protected] |
| virtual Container* storage::DmCo::getCopy | ( | ) | const [inline, protected, virtual] |
| storage::EncryptType storage::DmCo::detectEncryption | ( | const string & | device | ) | const [protected] |
References CRYPTSETUPBIN, storage::ENC_LUKS, storage::ENC_TWOFISH, storage::ENC_TWOFISH256_OLD, storage::ENC_TWOFISH_OLD, storage::ENC_UNKNOWN, storage::extractNthWord(), storage::SystemCmd::getLine(), storage::SystemCmd::numLines(), storage::quote(), storage::toString(), and y2mil.
Referenced by getDmData().
| virtual void storage::DmCo::print | ( | std::ostream & | s | ) | const [inline, protected, virtual] |
Reimplemented from storage::PeContainer.
| int storage::DmCo::doRemove | ( | Volume * | v | ) | [protected, virtual] |
Reimplemented from storage::Container.
References storage::DM_NOT_IN_LIST, storage::DM_REMOVE_FAILED, storage::DM_REMOVE_INVALID_VOLUME, DMSETUPBIN, storage::Container::getStorage(), storage::Storage::logProcData(), storage::Device::name(), storage::quote(), storage::Container::removeFromList(), storage::Storage::showInfoCb(), storage::Device::silent, storage::Storage::waitForDevice(), and y2mil.
friend class Storage [friend] |
Reimplemented from storage::PeContainer.
| std::ostream& operator<< | ( | std::ostream & | s, | |
| const DmCo & | d | |||
| ) | [friend] |
1.5.6