#include <Container.h>

Public Types | |
| typedef DerefIterator < ConstVolPIterator, const Volume > | ConstVolIterator |
| typedef IterPair < ConstVolIterator > | ConstVolPair |
Public Member Functions | |
| bool | operator== (const Container &rhs) const |
| bool | operator!= (const Container &rhs) const |
| bool | operator< (const Container &rhs) const |
| bool | operator<= (const Container &rhs) const |
| bool | operator>= (const Container &rhs) const |
| bool | operator> (const Container &rhs) const |
| virtual bool | equalContent (const Container &rhs) const |
| virtual string | getDiffString (const Container &c) const |
| virtual void | logDifference (const Container &c) const |
| virtual void | getCommitActions (std::list< storage::commitAction * > &l) const |
| virtual int | getToCommit (storage::CommitStage stage, std::list< Container * > &col, std::list< Volume * > &vol) |
| virtual int | commitChanges (storage::CommitStage stage) |
| virtual int | commitChanges (storage::CommitStage stage, Volume *vol) |
| virtual void | changeDeviceName (const string &old, const string &nw) |
| unsigned | numVolumes () const |
| bool | isEmpty () const |
| void | getInfo (storage::ContainerInfo &info) const |
| bool | findVolume (const string &device, Volume *&vol) |
| ConstVolPair | volPair (bool(*CheckFnc)(const Volume &)=NULL) const |
| ConstVolIterator | volBegin (bool(*CheckFnc)(const Volume &)=NULL) const |
| ConstVolIterator | volEnd (bool(*CheckFnc)(const Volume &)=NULL) const |
| template<class Pred> | |
| VolCondIPair< Pred >::type | volCondPair (const Pred &p) const |
| template<class Pred> | |
| ConstVolumeI< Pred >::type | volCondBegin (const Pred &p) const |
| template<class Pred> | |
| ConstVolumeI< Pred >::type | volCondEnd (const Pred &p) const |
| Container (Storage *const, const string &Name, storage::CType typ) | |
| Container (const Container &) | |
| Storage * | getStorage () const |
| virtual | ~Container () |
| const string & | name () const |
| const string & | device () const |
| storage::CType | type () const |
| bool | deleted () const |
| bool | created () const |
| void | setDeleted (bool val=true) |
| void | setCreated (bool val=true) |
| void | setSilent (bool val=true) |
| void | clearUsedBy () |
| void | setUsedBy (storage::UsedByType ub_type, const string &ub_name) |
| const storage::usedBy & | getUsedBy () const |
| storage::UsedByType | getUsedByType () const |
| bool | readonly () const |
| unsigned long | minorNr () const |
| unsigned long | majorNr () const |
| unsigned long long | sizeK () const |
| virtual string | removeText (bool doing=true) const |
| virtual string | createText (bool doing=true) const |
| virtual int | resizeVolume (Volume *v, unsigned long long newSize) |
| virtual int | removeVolume (Volume *v) |
| virtual Container * | getCopy () const |
| bool | compareContainer (const Container *c, bool verbose) const |
| void | setExtError (const string &txt) const |
| void | setExtError (const SystemCmd &cmd, bool serr=true) const |
Static Public Member Functions | |
| static storage::CType | staticType () |
Protected Types | |
| typedef std::list< Volume * > | VCont |
| typedef VCont::iterator | VIter |
| typedef VCont::const_iterator | CVIter |
| typedef VCont::reverse_iterator | RVIter |
| typedef VCont::const_reverse_iterator | CRVIter |
| typedef CheckFnc< const Volume > | CheckFncVol |
| typedef CheckerIterator < CheckFncVol, ConstVolumePI < CheckFncVol >::type, CVIter, Volume > | ConstVolPIterator |
| typedef CheckerIterator < CheckFncVol, VolumePI < CheckFncVol >::type, VIter, Volume > | VolPIterator |
| typedef DerefIterator < VolPIterator, Volume > | VolIterator |
| typedef IterPair< VolIterator > | VolPair |
| typedef CVIter | ConstPlainIterator |
| typedef VIter | PlainIterator |
Protected Member Functions | |
| VolPair | volPair (bool(*CheckFnc)(const Volume &)=NULL) |
| VolIterator | vBegin (bool(*CheckFnc)(const Volume &)=NULL) |
| VolIterator | vEnd (bool(*CheckFnc)(const Volume &)=NULL) |
| ConstPlainIterator | begin () const |
| ConstPlainIterator | end () const |
| PlainIterator | begin () |
| PlainIterator | end () |
| virtual void | print (std::ostream &s) const |
| void | addToList (Volume *e) |
| bool | removeFromList (Volume *e) |
| virtual int | doCreate (Volume *v) |
| virtual int | doRemove (Volume *v) |
| virtual int | doResize (Volume *v) |
| virtual void | logData (const string &Dir) |
| Container & | operator= (const Container &) |
Static Protected Member Functions | |
| static bool | stageDecrease (const Volume &v) |
| static bool | stageCreate (const Volume &v) |
Protected Attributes | |
| Storage *const | sto |
| storage::CType | typ |
| string | nm |
| string | dev |
| bool | del |
| bool | create |
| bool | silent |
| bool | ronly |
| storage::usedBy | uby |
| unsigned long long | size_k |
| unsigned long | mnr |
| unsigned long | mjr |
| VCont | vols |
| storage::ContainerInfo | info |
Static Protected Attributes | |
| static const string | type_names [COTYPE_LAST_ENTRY] |
Friends | |
| class | Storage |
| class | ListListIterator |
| std::ostream & | operator<< (std::ostream &s, const Container &c) |
Classes | |
| struct | ConstVolumeI |
| struct | ConstVolumePI |
| struct | VolCondIPair |
| struct | VolumeI |
| struct | VolumePI |
typedef std::list<Volume*> storage::Container::VCont [protected] |
typedef VCont::iterator storage::Container::VIter [protected] |
typedef VCont::const_iterator storage::Container::CVIter [protected] |
typedef VCont::reverse_iterator storage::Container::RVIter [protected] |
typedef VCont::const_reverse_iterator storage::Container::CRVIter [protected] |
typedef CheckFnc<const Volume> storage::Container::CheckFncVol [protected] |
typedef CheckerIterator< CheckFncVol, ConstVolumePI<CheckFncVol>::type, CVIter, Volume> storage::Container::ConstVolPIterator [protected] |
typedef CheckerIterator< CheckFncVol, VolumePI<CheckFncVol>::type, VIter, Volume> storage::Container::VolPIterator [protected] |
typedef DerefIterator<VolPIterator,Volume> storage::Container::VolIterator [protected] |
typedef IterPair<VolIterator> storage::Container::VolPair [protected] |
| typedef DerefIterator<ConstVolPIterator,const Volume> storage::Container::ConstVolIterator |
typedef CVIter storage::Container::ConstPlainIterator [protected] |
typedef VIter storage::Container::PlainIterator [protected] |
| storage::Container::Container | ( | Storage * | const, | |
| const string & | Name, | |||
| storage::CType | typ | |||
| ) |
Referenced by getCopy().
| bool storage::Container::operator== | ( | const Container & | rhs | ) | const [inline] |
| bool storage::Container::operator!= | ( | const Container & | rhs | ) | const [inline] |
| bool storage::Container::operator< | ( | const Container & | rhs | ) | const [inline] |
| bool storage::Container::operator<= | ( | const Container & | rhs | ) | const [inline] |
| bool storage::Container::operator>= | ( | const Container & | rhs | ) | const [inline] |
| bool storage::Container::operator> | ( | const Container & | rhs | ) | const [inline] |
| bool Container::equalContent | ( | const Container & | rhs | ) | const [virtual] |
Reimplemented in storage::Disk, storage::DmCo, storage::DmmultipathCo, storage::DmraidCo, storage::LoopCo, storage::LvmVg, storage::MdCo, and storage::NfsCo.
References create, del, dev, nm, ronly, silent, typ, and uby.
Referenced by compareContainer(), storage::PeContainer::equalContent(), storage::NfsCo::equalContent(), storage::MdCo::equalContent(), storage::LvmVg::equalContent(), storage::LoopCo::equalContent(), storage::DmraidCo::equalContent(), storage::DmmultipathCo::equalContent(), storage::DmCo::equalContent(), and storage::Disk::equalContent().
| string Container::getDiffString | ( | const Container & | c | ) | const [virtual] |
Reimplemented in storage::DmmultipathCo, storage::DmPartCo, storage::DmraidCo, and storage::PeContainer.
References storage::classic(), create, del, dev, nm, ronly, silent, typ, type_names, and uby.
Referenced by compareContainer(), storage::PeContainer::getDiffString(), storage::DmPartCo::getDiffString(), storage::NfsCo::logDifference(), storage::MdCo::logDifference(), storage::LvmVg::logDifference(), storage::LoopCo::logDifference(), storage::Disk::logDifference(), and logDifference().
| void Container::logDifference | ( | const Container & | c | ) | const [virtual] |
Reimplemented in storage::Disk, storage::DmCo, storage::LoopCo, storage::LvmVg, storage::MdCo, and storage::NfsCo.
References getDiffString(), and y2mil.
Referenced by compareContainer().
| void Container::getCommitActions | ( | std::list< storage::commitAction * > & | l | ) | const [virtual] |
Reimplemented in storage::Dasd, storage::Disk, storage::DmPartCo, and storage::LvmVg.
References storage::IterPair< Iter >::begin(), storage::IterPair< Iter >::end(), and volPair().
Referenced by storage::LvmVg::getCommitActions(), storage::DmPartCo::getCommitActions(), and storage::Disk::getCommitActions().
| int Container::getToCommit | ( | storage::CommitStage | stage, | |
| std::list< Container * > & | col, | |||
| std::list< Volume * > & | vol | |||
| ) | [virtual] |
Reimplemented in storage::Dasd, storage::Disk, storage::DmPartCo, and storage::LvmVg.
References storage::IterPair< Iter >::begin(), created(), storage::DECREASE, deleted(), storage::IterPair< Iter >::end(), storage::FORMAT, storage::INCREASE, storage::MOUNT, stageCreate(), stageDecrease(), stageFormat(), stageMount(), volPair(), and y2mil.
Referenced by storage::LvmVg::getToCommit(), storage::DmPartCo::getToCommit(), and storage::Disk::getToCommit().
| int Container::commitChanges | ( | storage::CommitStage | stage | ) | [virtual] |
Reimplemented in storage::Dasd, storage::Disk, storage::DmPartCo, and storage::LvmVg.
References storage::CONTAINER_INVALID_VIRTUAL_CALL, name(), and y2mil.
Referenced by storage::DmPartCo::commitChanges(), storage::Disk::commitChanges(), and storage::Storage::commitPair().
| int Container::commitChanges | ( | storage::CommitStage | stage, | |
| Volume * | vol | |||
| ) | [virtual] |
Reimplemented in storage::Disk, and storage::DmPartCo.
References storage::Volume::created(), storage::DECREASE, storage::Volume::deleted(), doCreate(), storage::Volume::doCrsetup(), storage::Volume::doFormat(), storage::Volume::doFstabUpdate(), storage::Volume::doMount(), doRemove(), doResize(), storage::Volume::doSetLabel(), storage::FORMAT, storage::Volume::fstabUpdateDone(), storage::Volume::getFormat(), storage::INCREASE, storage::MOUNT, storage::Volume::name(), name(), storage::Volume::needCrsetup(), storage::Volume::needExtend(), storage::Volume::needFstabUpdate(), storage::Volume::needLabel(), storage::Volume::needRemount(), storage::Volume::needShrink(), storage::VOLUME_COMMIT_UNKNOWN_STAGE, and y2mil.
| virtual void storage::Container::changeDeviceName | ( | const string & | old, | |
| const string & | nw | |||
| ) | [inline, virtual] |
Reimplemented in storage::MdCo, and storage::PeContainer.
| unsigned Container::numVolumes | ( | ) | const |
References storage::IterPair< Iter >::length(), notDeleted(), and volPair().
| bool Container::isEmpty | ( | ) | const |
References storage::IterPair< Iter >::empty(), notDeleted(), and volPair().
Referenced by storage::Storage::detectDm(), storage::Storage::detectLoops(), storage::Storage::detectMds(), and storage::Storage::detectNfs().
| void Container::getInfo | ( | storage::ContainerInfo & | info | ) | const |
References storage::usedBy::device(), device(), storage::ContainerInfo::device, info, storage::IterPair< Iter >::length(), storage::usedBy::name(), name(), storage::ContainerInfo::name, storage::Volume::notDeleted(), readonly(), storage::ContainerInfo::readonly, storage::usedBy::type(), type(), storage::ContainerInfo::type, uby, storage::ContainerInfo::usedByDevice, storage::ContainerInfo::usedByName, storage::ContainerInfo::usedByType, storage::ContainerInfo::volcnt, and volPair().
| bool storage::Container::findVolume | ( | const string & | device, | |
| Volume *& | vol | |||
| ) |
| ConstVolPair storage::Container::volPair | ( | bool(*)(const Volume &) | CheckFnc = NULL |
) | const [inline] |
References volBegin(), and volEnd().
Referenced by getCommitActions(), getInfo(), storage::Dasd::getToCommit(), getToCommit(), isEmpty(), numVolumes(), storage::DmPartCo::removePresentPartitions(), and storage::Disk::removePresentPartitions().
| ConstVolIterator storage::Container::volBegin | ( | bool(*)(const Volume &) | CheckFnc = NULL |
) | const [inline] |
| ConstVolIterator storage::Container::volEnd | ( | bool(*)(const Volume &) | CheckFnc = NULL |
) | const [inline] |
| VolCondIPair<Pred>::type storage::Container::volCondPair | ( | const Pred & | p | ) | const [inline] |
References volCondBegin(), and volCondEnd().
| ConstVolumeI<Pred>::type storage::Container::volCondBegin | ( | const Pred & | p | ) | const [inline] |
| ConstVolumeI<Pred>::type storage::Container::volCondEnd | ( | const Pred & | p | ) | const [inline] |
| VolIterator storage::Container::vBegin | ( | bool(*)(const Volume &) | CheckFnc = NULL |
) | [inline, protected] |
| VolIterator storage::Container::vEnd | ( | bool(*)(const Volume &) | CheckFnc = NULL |
) | [inline, protected] |
| Storage* storage::Container::getStorage | ( | ) | const [inline] |
References sto.
Referenced by storage::PeContainer::addPv(), storage::LvmVg::addPv(), storage::DmraidCo::addPv(), storage::DmmultipathCo::addPv(), storage::Volume::canResize(), storage::Volume::changeMountBy(), storage::Partition::changeNumber(), storage::Dasd::checkFdasdOutput(), storage::Disk::checkPartedOutput(), storage::Md::computeSize(), storage::DmPartCo::createDisk(), storage::Volume::detectEncryption(), storage::Disk::detectPartitions(), storage::DmPartCo::DmPartCo(), storage::MdCo::doCreate(), storage::LvmVg::doCreate(), storage::LoopCo::doCreate(), storage::DmPartCo::doCreate(), storage::Disk::doCreate(), storage::DmPartCo::doCreateLabel(), storage::Disk::doCreateLabel(), storage::LvmVg::doCreateVg(), storage::Volume::doCryptsetup(), storage::Dasd::doDasdfmt(), storage::LvmVg::doExtendVg(), storage::Dasd::doFdasd(), storage::Volume::doFormat(), storage::Volume::doFstabUpdate(), storage::Volume::doLosetup(), storage::Volume::doMount(), storage::LvmVg::doReduceVg(), storage::NfsCo::doRemove(), storage::MdCo::doRemove(), storage::LvmVg::doRemove(), storage::LoopCo::doRemove(), storage::DmraidCo::doRemove(), storage::DmPartCo::doRemove(), storage::DmCo::doRemove(), storage::Disk::doRemove(), storage::LvmVg::doRemoveVg(), storage::LvmVg::doResize(), storage::DmPartCo::doResize(), storage::Disk::doResize(), storage::Volume::doSetLabel(), storage::DmPartCo::doSetType(), storage::Disk::doSetType(), storage::Volume::fstabUpdateText(), storage::Volume::getCommitActions(), storage::DmCo::getDmData(), storage::Volume::getFreeLoop(), storage::LoopCo::getLoopData(), storage::MdCo::getMdData(), storage::NfsCo::getNfsData(), storage::Disk::getPartedSectors(), storage::Disk::getPartedValues(), storage::DmPartCo::getToCommit(), storage::MdCo::initTab(), storage::LvmVg::instSysString(), storage::Loop::lfileRealPath(), storage::Volume::mountText(), storage::Volume::needFstabUpdate(), storage::LvmVg::normalizeDmDevices(), storage::Volume::prepareRemove(), storage::MdCo::removeMd(), storage::Disk::removePartition(), storage::DmPartCo::removeVolume(), storage::Volume::resizeFs(), storage::Volume::setFormat(), storage::MdCo::syncRaidtab(), storage::Volume::triggerUdevUpdate(), and storage::PeContainer::unuseDev().
| const string& storage::Container::name | ( | ) | const [inline] |
References nm.
Referenced by storage::Disk::availablePartNumber(), storage::PeContainer::checkConsistency(), storage::LvmVg::commitChanges(), storage::DmPartCo::commitChanges(), storage::Disk::commitChanges(), storage::Dasd::commitChanges(), commitChanges(), storage::LvmVg::createVgText(), storage::Dmmultipath::Dmmultipath(), storage::DmPart::DmPart(), storage::Dmraid::Dmraid(), storage::LvmVg::doCreate(), storage::DmPartCo::doCreate(), storage::Disk::doCreate(), doCreate(), storage::LvmVg::doCreateVg(), storage::LvmVg::doExtendVg(), storage::LvmVg::doReduceVg(), storage::NfsCo::doRemove(), storage::LvmVg::doRemove(), storage::DmraidCo::doRemove(), storage::DmPartCo::doRemove(), storage::Disk::doRemove(), doRemove(), storage::LvmVg::doRemoveVg(), storage::LvmVg::doResize(), storage::DmPartCo::doResize(), storage::Disk::doResize(), doResize(), storage::DmPartCo::doSetType(), storage::Disk::doSetType(), storage::Dasd::getCommitActions(), getInfo(), storage::LvmLv::getState(), storage::operator<<(), storage::Partition::Partition(), storage::Storage::removeContainer(), storage::DmraidCo::removeText(), storage::DmPartCo::removeText(), storage::LvmVg::removeVgText(), removeVolume(), and storage::Volume::Volume().
| const string& storage::Container::device | ( | ) | const [inline] |
References dev.
Referenced by storage::Dasd::checkFdasdOutput(), storage::Disk::detectGeometry(), storage::Disk::detectPartitions(), storage::Dasd::detectPartitions(), storage::Dasd::detectPartitionsFdasd(), storage::Disk::doCreate(), storage::DmPartCo::doCreateLabel(), storage::Disk::doCreateLabel(), storage::Dasd::doDasdfmt(), storage::Dasd::doFdasd(), storage::Disk::doRemove(), storage::Disk::doResize(), storage::Disk::doSetType(), storage::Disk::enlargeGpt(), getInfo(), storage::MdCo::getMdData(), storage::Disk::getPartedSectors(), storage::Disk::getPartedValues(), storage::Disk::redetectGeometry(), storage::Storage::removeDmTableTo(), and storage::Volume::setNameDev().
| storage::CType storage::Container::type | ( | ) | const [inline] |
References typ.
Referenced by storage::Volume::cType(), storage::Volume::detectEncryption(), storage::Volume::doCryptsetup(), storage::Volume::doFstabUpdate(), storage::Volume::getCommitActions(), storage::Volume::getDmcryptName(), storage::Volume::getFstabData(), storage::Volume::getFstabDentry(), storage::Volume::getFstabDevice(), getInfo(), storage::Volume::getLoopData(), storage::Storage::isDm(), isDmContainer(), storage::Storage::isDmPart(), storage::Storage::isLoop(), storage::Storage::isMd(), storage::Storage::isNfs(), storage::Volume::needLosetup(), notLoop(), storage::CheckType< Value >::operator()(), storage::Volume::setEncryption(), and showContainers().
| bool storage::Container::deleted | ( | ) | const [inline] |
References del.
Referenced by storage::LvmVg::addPv(), storage::DmraidCo::addPv(), storage::DmmultipathCo::addPv(), storage::LvmVg::commitChanges(), storage::DmPartCo::commitChanges(), storage::Disk::commitChanges(), storage::Storage::commitPair(), storage::DmraidCo::doRemove(), storage::DmPartCo::doRemove(), storage::LvmVg::doRemoveVg(), storage::LvmVg::getCommitActions(), storage::DmPartCo::getCommitActions(), storage::Disk::getCommitActions(), storage::Dasd::getToCommit(), getToCommit(), storage::Storage::notDeleted(), storage::Storage::SkipDeleted::operator()(), and showContainers().
| bool storage::Container::created | ( | ) | const [inline] |
| void storage::Container::setDeleted | ( | bool | val = true |
) | [inline] |
References del.
Referenced by storage::Disk::doCreateLabel(), storage::DmraidCo::doRemove(), storage::LvmVg::doRemoveVg(), storage::DmPartCo::removeDmPart(), and storage::LvmVg::removeVg().
| void storage::Container::setCreated | ( | bool | val = true |
) | [inline] |
| void storage::Container::setSilent | ( | bool | val = true |
) | [inline] |
References silent.
Referenced by storage::DmPartCo::createDisk(), storage::DmPartCo::removePresentPartitions(), and storage::Disk::removePresentPartitions().
| void storage::Container::clearUsedBy | ( | ) | [inline] |
References storage::usedBy::clear(), and uby.
| void storage::Container::setUsedBy | ( | storage::UsedByType | ub_type, | |
| const string & | ub_name | |||
| ) | [inline] |
References storage::usedBy::set(), and uby.
| const storage::usedBy& storage::Container::getUsedBy | ( | ) | const [inline] |
References uby.
| storage::UsedByType storage::Container::getUsedByType | ( | ) | const [inline] |
References storage::usedBy::type(), and uby.
| bool storage::Container::readonly | ( | ) | const [inline] |
References ronly.
Referenced by storage::MdCo::changeMdChunk(), storage::MdCo::changeMdParity(), storage::MdCo::changeMdType(), storage::Disk::changePartitionArea(), storage::Disk::changePartitionId(), storage::Disk::createChecks(), storage::Disk::forgetChangePartitionId(), getInfo(), storage::DmPartCo::removeDmPart(), storage::MdCo::removeMd(), storage::DmPartCo::removePartition(), storage::Disk::removePartition(), storage::LvmVg::removeVg(), storage::NfsCo::removeVolume(), storage::DmPartCo::removeVolume(), storage::Disk::resizePartition(), storage::LvmVg::resizeVolume(), storage::DmPartCo::resizeVolume(), and storage::Disk::resizeVolume().
| unsigned long storage::Container::minorNr | ( | ) | const [inline] |
References mnr.
Referenced by storage::Storage::detectDmmultipath(), storage::Storage::detectDmraid(), and storage::Storage::removeDmTableTo().
| unsigned long storage::Container::majorNr | ( | ) | const [inline] |
| unsigned long long storage::Container::sizeK | ( | ) | const [inline] |
Reimplemented in storage::DmPartCo, and storage::PeContainer.
References size_k.
Referenced by storage::Disk::doResize(), and storage::Disk::getInfo().
| string Container::removeText | ( | bool | doing = true |
) | const [virtual] |
Reimplemented in storage::DmPartCo, and storage::DmraidCo.
References storage::_(), dev, and storage::sformat().
| string Container::createText | ( | bool | doing = true |
) | const [virtual] |
References storage::_(), dev, and storage::sformat().
| int Container::resizeVolume | ( | Volume * | v, | |
| unsigned long long | newSize | |||
| ) | [virtual] |
Reimplemented in storage::Disk, storage::DmPartCo, and storage::LvmVg.
References storage::VOLUME_RESIZE_UNSUPPORTED_BY_CONTAINER.
| int Container::removeVolume | ( | Volume * | v | ) | [virtual] |
Reimplemented in storage::Disk, storage::DmCo, storage::DmPartCo, storage::LoopCo, storage::LvmVg, storage::MdCo, and storage::NfsCo.
References storage::CONTAINER_INVALID_VIRTUAL_CALL, name(), typ, type_names, and y2war.
| static storage::CType storage::Container::staticType | ( | ) | [inline, static] |
Reimplemented in storage::Disk, storage::DmCo, storage::DmmultipathCo, storage::DmPartCo, storage::DmraidCo, storage::LoopCo, storage::LvmVg, storage::MdCo, and storage::NfsCo.
References storage::CUNKNOWN.
Referenced by storage::Partition::getCommitActions(), and storage::DmPart::getCommitActions().
| virtual Container* storage::Container::getCopy | ( | ) | const [inline, virtual] |
Reimplemented in storage::Dasd, storage::Disk, storage::DmCo, storage::DmmultipathCo, storage::DmPartCo, storage::DmraidCo, storage::LoopCo, storage::LvmVg, storage::MdCo, storage::NfsCo, and storage::PeContainer.
References Container().
| bool Container::compareContainer | ( | const Container * | c, | |
| bool | verbose | |||
| ) | const |
References storage::COTYPE_LAST_ENTRY, storage::CUNKNOWN, equalContent(), getDiffString(), logDifference(), typ, y2err, and y2mil.
| void storage::Container::setExtError | ( | const string & | txt | ) | const |
Referenced by storage::MdCo::doCreate(), storage::LvmVg::doCreate(), storage::LvmVg::doExtendVg(), storage::LvmVg::doReduceVg(), storage::MdCo::doRemove(), storage::LvmVg::doRemove(), storage::DmraidCo::doRemove(), storage::LvmVg::doRemoveVg(), storage::LvmVg::doResize(), and storage::Volume::setExtError().
| void Container::setExtError | ( | const SystemCmd & | cmd, | |
| bool | serr = true | |||
| ) | const |
| ConstPlainIterator storage::Container::begin | ( | ) | const [inline, protected] |
References vols.
Referenced by storage::PeContainer::dmBegin(), storage::PeContainer::dmEnd(), storage::DmmultipathCo::dmmultipathBegin(), storage::DmmultipathCo::dmmultipathEnd(), storage::DmPartCo::dmpartBegin(), storage::DmPartCo::dmpartEnd(), storage::DmraidCo::dmraidBegin(), storage::DmraidCo::dmraidEnd(), storage::PeContainer::equalContent(), storage::Storage::logCo(), storage::LoopCo::loopBegin(), storage::LoopCo::loopEnd(), storage::LvmVg::lvmLvBegin(), storage::LvmVg::lvmLvEnd(), storage::MakeIterPair(), storage::MdCo::mdBegin(), storage::MdCo::mdEnd(), storage::NfsCo::nfsBegin(), storage::NfsCo::nfsEnd(), storage::Disk::partBegin(), storage::Disk::partEnd(), and ~Container().
| ConstPlainIterator storage::Container::end | ( | ) | const [inline, protected] |
References vols.
Referenced by storage::PeContainer::dmBegin(), storage::PeContainer::dmEnd(), storage::DmmultipathCo::dmmultipathBegin(), storage::DmmultipathCo::dmmultipathEnd(), storage::DmPartCo::dmpartBegin(), storage::DmPartCo::dmpartEnd(), storage::DmraidCo::dmraidBegin(), storage::DmraidCo::dmraidEnd(), storage::Disk::doCreate(), storage::Dasd::doFdasd(), storage::PeContainer::equalContent(), storage::Disk::freeCylindersAfterPartition(), storage::Disk::getUnusedSpace(), storage::Storage::logCo(), storage::LoopCo::loopBegin(), storage::LoopCo::loopEnd(), storage::LvmVg::lvmLvBegin(), storage::LvmVg::lvmLvEnd(), storage::MakeIterPair(), storage::MdCo::mdBegin(), storage::MdCo::mdEnd(), storage::NfsCo::nfsBegin(), storage::NfsCo::nfsEnd(), storage::Disk::partBegin(), storage::Disk::partEnd(), and ~Container().
| PlainIterator storage::Container::begin | ( | ) | [inline, protected] |
References vols.
| PlainIterator storage::Container::end | ( | ) | [inline, protected] |
References vols.
| virtual void storage::Container::print | ( | std::ostream & | s | ) | const [inline, protected, virtual] |
Reimplemented in storage::Dasd, storage::Disk, storage::DmCo, storage::DmmultipathCo, storage::DmPartCo, storage::DmraidCo, storage::LoopCo, storage::LvmVg, storage::MdCo, storage::NfsCo, and storage::PeContainer.
Referenced by storage::Storage::logCo().
| void storage::Container::addToList | ( | Volume * | e | ) | [inline, protected] |
References vols.
Referenced by storage::DmCo::addDm(), storage::MdCo::addMd(), storage::Dasd::checkFdasdOutput(), storage::Disk::checkPartedOutput(), storage::Dasd::detectPartitions(), storage::LoopCo::getLoopData(), storage::NfsCo::getNfsData(), storage::DmPartCo::getVolumes(), and storage::DmPartCo::handleWholeDevice().
| bool Container::removeFromList | ( | Volume * | e | ) | [protected] |
References vols, and y2milestone.
Referenced by storage::Dasd::doFdasd(), storage::NfsCo::doRemove(), storage::MdCo::doRemove(), storage::LvmVg::doRemove(), storage::LoopCo::doRemove(), storage::DmPartCo::doRemove(), storage::DmCo::doRemove(), storage::Disk::doRemove(), storage::DmPartCo::handleWholeDevice(), storage::Dasd::initializeDisk(), storage::DmPartCo::removeDmPart(), storage::MdCo::removeMd(), storage::Disk::removePartition(), storage::NfsCo::removeVolume(), and storage::DmPartCo::updateDelDev().
| int Container::doCreate | ( | Volume * | v | ) | [protected, virtual] |
Reimplemented in storage::Dasd, storage::Disk, storage::DmPartCo, storage::LoopCo, storage::LvmVg, and storage::MdCo.
References storage::CONTAINER_INVALID_VIRTUAL_CALL, name(), typ, type_names, and y2war.
Referenced by commitChanges().
| int Container::doRemove | ( | Volume * | v | ) | [protected, virtual] |
Reimplemented in storage::Dasd, storage::Disk, storage::DmCo, storage::DmPartCo, storage::LoopCo, storage::LvmVg, storage::MdCo, and storage::NfsCo.
References storage::CONTAINER_INVALID_VIRTUAL_CALL, name(), typ, type_names, and y2war.
Referenced by commitChanges().
| int Container::doResize | ( | Volume * | v | ) | [protected, virtual] |
Reimplemented in storage::Dasd, storage::Disk, storage::DmPartCo, and storage::LvmVg.
References storage::CONTAINER_INVALID_VIRTUAL_CALL, name(), typ, type_names, and y2war.
Referenced by commitChanges().
| virtual void storage::Container::logData | ( | const string & | Dir | ) | [inline, protected, virtual] |
Reimplemented in storage::Disk, storage::DmCo, storage::DmmultipathCo, storage::DmPartCo, storage::DmraidCo, storage::LoopCo, storage::LvmVg, storage::MdCo, and storage::NfsCo.
| static bool storage::Container::stageDecrease | ( | const Volume & | v | ) | [inline, static, protected] |
References storage::Volume::deleted(), and storage::Volume::needShrink().
Referenced by storage::Dasd::getToCommit(), and getToCommit().
| static bool storage::Container::stageCreate | ( | const Volume & | v | ) | [inline, static, protected] |
References storage::Volume::created(), and storage::Volume::needExtend().
Referenced by storage::Dasd::getToCommit(), and getToCommit().
friend class Storage [friend] |
friend class ListListIterator [friend] |
| std::ostream& operator<< | ( | std::ostream & | s, | |
| const Container & | c | |||
| ) | [friend] |
const string Container::type_names [static, protected] |
Initial value:
{ "UNKNOWN", "DISK", "MD", "LOOP", "LVM",
"DM", "DMRAID", "NFS", "DMMULTIPATH" }
Referenced by doCreate(), doRemove(), doResize(), getDiffString(), storage::operator<<(), and removeVolume().
Storage* const storage::Container::sto [protected] |
Referenced by getStorage(), and setExtError().
storage::CType storage::Container::typ [protected] |
Referenced by compareContainer(), doCreate(), doRemove(), doResize(), equalContent(), getDiffString(), operator<(), storage::operator<<(), operator=(), operator==(), removeVolume(), and type().
string storage::Container::nm [protected] |
Referenced by storage::Dasd::checkFdasdOutput(), storage::Disk::checkPartedOutput(), Container(), storage::Dasd::Dasd(), storage::Disk::Disk(), storage::DmCo::DmCo(), storage::DmPartCo::DmPartCo(), equalContent(), getDiffString(), storage::PeContainer::init(), storage::LvmVg::init(), storage::DmPartCo::init(), storage::DmCo::init(), storage::Disk::isDasd(), storage::LoopCo::LoopCo(), storage::LvmVg::LvmVg(), storage::MdCo::MdCo(), name(), storage::NfsCo::NfsCo(), storage::DmPartCo::numToName(), operator<(), storage::operator<<(), storage::Disk::operator=(), storage::Dasd::operator=(), operator=(), operator==(), storage::PeContainer::PeContainer(), storage::DmraidCo::setDiskLabelText(), and storage::DmmultipathCo::setDiskLabelText().
string storage::Container::dev [protected] |
Referenced by storage::DmPartCo::activate_part(), storage::Dasd::checkFdasdOutput(), storage::Disk::checkPartedOutput(), storage::DmPartCo::createDisk(), createText(), storage::Dasd::dasdfmtText(), storage::Disk::detectPartitions(), device(), equalContent(), storage::Dasd::fdasdText(), getDiffString(), storage::Disk::getPartName(), storage::DmCo::init(), storage::operator<<(), operator=(), removeText(), storage::DmPartCo::setDiskLabelText(), ~Container(), storage::Dasd::~Dasd(), storage::Disk::~Disk(), storage::DmmultipathCo::~DmmultipathCo(), storage::DmPartCo::~DmPartCo(), storage::DmraidCo::~DmraidCo(), storage::LvmVg::~LvmVg(), and storage::PeContainer::~PeContainer().
bool storage::Container::del [protected] |
Referenced by deleted(), equalContent(), getDiffString(), operator<(), storage::operator<<(), operator=(), operator==(), and setDeleted().
bool storage::Container::create [protected] |
Referenced by created(), equalContent(), getDiffString(), storage::operator<<(), operator=(), and setCreated().
bool storage::Container::silent [protected] |
Referenced by storage::MdCo::doCreate(), storage::LvmVg::doCreate(), storage::LoopCo::doCreate(), storage::DmPartCo::doCreate(), storage::Disk::doCreate(), storage::DmPartCo::doCreateLabel(), storage::Disk::doCreateLabel(), storage::LvmVg::doCreateVg(), storage::Dasd::doDasdfmt(), storage::LvmVg::doExtendVg(), storage::Dasd::doFdasd(), storage::LvmVg::doReduceVg(), storage::NfsCo::doRemove(), storage::MdCo::doRemove(), storage::LvmVg::doRemove(), storage::LoopCo::doRemove(), storage::DmraidCo::doRemove(), storage::DmPartCo::doRemove(), storage::DmCo::doRemove(), storage::Disk::doRemove(), storage::LvmVg::doRemoveVg(), storage::LvmVg::doResize(), storage::DmPartCo::doResize(), storage::Disk::doResize(), storage::DmPartCo::doSetType(), storage::Disk::doSetType(), equalContent(), getDiffString(), storage::operator<<(), operator=(), storage::DmPartCo::removePresentPartitions(), storage::Disk::removePresentPartitions(), and setSilent().
bool storage::Container::ronly [protected] |
storage::usedBy storage::Container::uby [protected] |
Referenced by clearUsedBy(), equalContent(), getDiffString(), getInfo(), getUsedBy(), getUsedByType(), storage::operator<<(), operator=(), and setUsedBy().
unsigned long long storage::Container::size_k [protected] |
Referenced by storage::DmPartCo::createDisk(), storage::Disk::detectPartitions(), storage::Dasd::detectPartitions(), storage::Disk::equalContent(), storage::DmPartCo::handleWholeDevice(), storage::DmPartCo::init(), storage::Dasd::initializeDisk(), storage::Disk::logDifference(), storage::operator<<(), operator=(), storage::DmPartCo::sizeK(), and sizeK().
unsigned long storage::Container::mnr [protected] |
unsigned long storage::Container::mjr [protected] |
VCont storage::Container::vols [protected] |
Referenced by addToList(), begin(), storage::Disk::detectPartitions(), storage::Dasd::detectPartitions(), storage::Dasd::detectPartitionsFdasd(), storage::Disk::Disk(), storage::DmCo::DmCo(), storage::DmPartCo::DmPartCo(), end(), storage::DmPartCo::getVolumes(), storage::LoopCo::LoopCo(), storage::LvmVg::LvmVg(), storage::MdCo::MdCo(), storage::NfsCo::NfsCo(), storage::LvmVg::numLv(), storage::operator<<(), removeFromList(), storage::DmPartCo::removeFromMemory(), storage::Disk::removeFromMemory(), vBegin(), vEnd(), volBegin(), volCondBegin(), volCondEnd(), and volEnd().
storage::ContainerInfo storage::Container::info [mutable, protected] |
1.5.6