#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 |
| void | logDifference (std::ostream &log, const Container &rhs) const |
| virtual void | logDifferenceWithVolumes (std::ostream &log, const Container &rhs) const =0 |
| virtual void | getCommitActions (list< commitAction > &l) const |
| virtual void | getToCommit (storage::CommitStage stage, list< const Container * > &col, list< const Volume * > &vol) const |
| virtual int | commitChanges (storage::CommitStage stage) |
| virtual int | commitChanges (storage::CommitStage stage, Volume *vol) |
| virtual void | changeDeviceName (const string &old, const string &nw) |
| 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 *s, const string &name, const string &device, CType typ) | |
| Container (Storage *s, const string &name, const string &device, CType typ, SystemInfo &systemInfo) | |
| Container (Storage *s, CType typ, const xmlNode *node) | |
| Container (const Container &c) | |
| virtual | ~Container () |
| void | saveData (xmlNode *node) const |
| Storage * | getStorage () const |
| const Storage * | getStorageConst () const |
| CType | type () const |
| bool | isPartitionable () const |
| bool | isDeviceUsable () const |
| bool | readonly () const |
| virtual Text | removeText (bool doing) const |
| virtual Text | createText (bool doing) const |
| virtual int | resizeVolume (Volume *v, unsigned long long newSize) |
| virtual int | removeVolume (Volume *v) |
| virtual Container * | getCopy () const =0 |
| bool | compareContainer (const Container &rhs, bool verbose) const |
| void | setExtError (const string &txt) const |
| void | setExtError (const SystemCmd &cmd, bool serr=true) const |
Static Public Member Functions | |
| static bool | notDeleted (const Container &c) |
| static bool | Partitionable (const Container &d) |
| static bool | DeviceUsable (const Container &d) |
| 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) const |
Static Protected Member Functions | |
| static bool | stageDecrease (const Volume &v) |
| static bool | stageIncrease (const Volume &v) |
| static bool | stageFormat (const Volume &v) |
| static bool | stageMount (const Volume &v) |
Protected Attributes | |
| Storage *const | sto |
| const CType | typ |
| bool | ronly |
| VCont | vols |
| storage::ContainerInfo | info |
Private Member Functions | |
| Container & | operator= (const Container &) |
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 * | s, | |
| const string & | name, | |||
| const string & | device, | |||
| CType | typ | |||
| ) |
References storage::Device::dev, storage::Device::nm, and y2deb.
| storage::Container::Container | ( | Storage * | s, | |
| const string & | name, | |||
| const string & | device, | |||
| CType | typ, | |||
| SystemInfo & | systemInfo | |||
| ) |
References storage::Device::dev, storage::Device::nm, storage::Storage::testmode(), and y2deb.
References storage::Device::dev, storage::getChildValue(), ronly, storage::Storage::testmode(), and y2deb.
| storage::Container::Container | ( | const Container & | c | ) |
References storage::Device::dev, and y2deb.
| storage::Container::~Container | ( | ) | [virtual] |
References storage::clearPointerList(), storage::Device::dev, vols, and y2deb.
| bool storage::Container::operator== | ( | const Container & | rhs | ) | const [inline] |
References storage::Device::del, storage::Device::nm, and typ.
| bool storage::Container::operator!= | ( | const Container & | rhs | ) | const [inline] |
| bool storage::Container::operator< | ( | const Container & | rhs | ) | const [inline] |
References storage::Device::del, storage::Device::nm, and typ.
| 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::equalContent | ( | const Container & | rhs | ) | const [virtual] |
Reimplemented in storage::BtrfsCo, storage::Disk, storage::DmCo, storage::DmmultipathCo, storage::DmraidCo, storage::LoopCo, storage::LvmVg, storage::MdCo, storage::MdPartCo, storage::NfsCo, and storage::TmpfsCo.
References storage::Device::create, storage::Device::del, storage::Device::dev, storage::Device::nm, ronly, storage::Device::silent, typ, and storage::Device::uby.
Referenced by compareContainer().
| void storage::Container::logDifference | ( | std::ostream & | log, | |
| const Container & | rhs | |||
| ) | const |
References storage::logDiff(), storage::logDiffEnum(), storage::Device::logDifference(), ronly, storage::Device::silent, typ, and storage::Device::uby.
Referenced by storage::PeContainer::logDifference(), storage::MdPartCo::logDifference(), storage::Disk::logDifference(), storage::TmpfsCo::logDifferenceWithVolumes(), storage::NfsCo::logDifferenceWithVolumes(), storage::MdCo::logDifferenceWithVolumes(), storage::LoopCo::logDifferenceWithVolumes(), and storage::BtrfsCo::logDifferenceWithVolumes().
| virtual void storage::Container::logDifferenceWithVolumes | ( | std::ostream & | log, | |
| const Container & | rhs | |||
| ) | const [pure virtual] |
Implemented in storage::BtrfsCo, storage::Disk, storage::DmCo, storage::DmmultipathCo, storage::DmraidCo, storage::LoopCo, storage::LvmVg, storage::MdCo, storage::MdPartCo, storage::NfsCo, and storage::TmpfsCo.
Referenced by compareContainer().
| void storage::Container::getCommitActions | ( | list< commitAction > & | l | ) | const [virtual] |
Reimplemented in storage::Dasd, storage::Disk, storage::DmPartCo, storage::LvmVg, and storage::MdPartCo.
References storage::IterPair< Iter >::begin(), storage::IterPair< Iter >::end(), and volPair().
Referenced by storage::MdPartCo::getCommitActions(), storage::LvmVg::getCommitActions(), storage::DmPartCo::getCommitActions(), and storage::Disk::getCommitActions().
| void storage::Container::getToCommit | ( | storage::CommitStage | stage, | |
| list< const Container * > & | col, | |||
| list< const Volume * > & | vol | |||
| ) | const [virtual] |
Reimplemented in storage::BtrfsCo, storage::Dasd, storage::Disk, storage::DmPartCo, storage::LvmVg, and storage::MdPartCo.
References storage::IterPair< Iter >::begin(), storage::Device::created(), storage::DECREASE, storage::Device::deleted(), storage::IterPair< Iter >::end(), storage::FORMAT, storage::INCREASE, storage::MOUNT, stageDecrease(), stageFormat(), stageIncrease(), stageMount(), storage::SUBVOL, volPair(), and y2mil.
Referenced by storage::MdPartCo::getToCommit(), storage::LvmVg::getToCommit(), storage::DmPartCo::getToCommit(), storage::Disk::getToCommit(), and storage::BtrfsCo::getToCommit().
| int storage::Container::commitChanges | ( | storage::CommitStage | stage | ) | [virtual] |
Reimplemented in storage::Dasd, storage::Disk, storage::DmPartCo, storage::LvmVg, and storage::MdPartCo.
References storage::CONTAINER_INVALID_VIRTUAL_CALL, storage::Device::name(), and y2mil.
Referenced by storage::MdPartCo::commitChanges(), storage::DmPartCo::commitChanges(), storage::Disk::commitChanges(), storage::BtrfsCo::commitChanges(), and storage::Storage::commitPair().
| int storage::Container::commitChanges | ( | storage::CommitStage | stage, | |
| Volume * | vol | |||
| ) | [virtual] |
Reimplemented in storage::BtrfsCo, storage::Disk, storage::DmPartCo, and storage::MdPartCo.
References storage::Device::created(), storage::DECREASE, storage::Device::deleted(), doCreate(), storage::Volume::doCrsetup(), storage::Volume::doFormat(), storage::Volume::doFstabUpdate(), storage::Volume::doMount(), doRemove(), doResize(), storage::Volume::doSetLabel(), storage::ENC_NONE, storage::FORMAT, storage::Volume::fstabUpdateDone(), storage::Volume::getEncryption(), storage::Volume::getFormat(), storage::INCREASE, storage::MOUNT, storage::Device::name(), storage::Volume::needCrsetup(), storage::Volume::needExtend(), storage::Volume::needFstabUpdate(), storage::Volume::needLabel(), storage::Volume::needRemount(), storage::Volume::needShrink(), storage::SUBVOL, storage::VOLUME_COMMIT_UNKNOWN_STAGE, and y2mil.
| virtual void storage::Container::changeDeviceName | ( | const string & | old, | |
| const string & | nw | |||
| ) | [inline, virtual] |
Reimplemented in storage::BtrfsCo, storage::MdCo, and storage::PeContainer.
| bool storage::Container::isEmpty | ( | ) | const |
References storage::IterPair< Iter >::empty(), storage::Volume::notDeleted(), and volPair().
Referenced by storage::Storage::detectBtrfs(), storage::Storage::detectDm(), storage::Storage::detectLoops(), storage::Storage::detectMds(), storage::Storage::detectNfs(), and storage::Storage::detectTmpfs().
| void storage::Container::getInfo | ( | storage::ContainerInfo & | info | ) | const |
References storage::Device::device(), storage::ContainerInfo::device, info, storage::Device::name(), storage::ContainerInfo::name, readonly(), storage::ContainerInfo::readonly, type(), storage::ContainerInfo::type, storage::UB_NONE, storage::Device::uby, storage::Device::udevId(), storage::ContainerInfo::udevId, storage::Device::udevPath(), storage::ContainerInfo::udevPath, storage::ContainerInfo::usedBy, storage::ContainerInfo::usedByDevice, and storage::ContainerInfo::usedByType.
| bool storage::Container::findVolume | ( | const string & | device, | |
| Volume *& | vol | |||
| ) |
| static bool storage::Container::notDeleted | ( | const Container & | c | ) | [inline, static] |
| ConstVolPair storage::Container::volPair | ( | bool(*)(const Volume &) | CheckFnc = NULL |
) | const [inline] |
| 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] |
| void storage::Container::saveData | ( | xmlNode * | node | ) | const |
Reimplemented from storage::Device.
Reimplemented in storage::BtrfsCo, storage::Disk, storage::LvmVg, storage::PeContainer, and storage::TmpfsCo.
References ronly, storage::Device::saveData(), and storage::setChildValue().
Referenced by storage::TmpfsCo::saveData(), storage::PeContainer::saveData(), storage::Disk::saveData(), and storage::BtrfsCo::saveData().
| Storage* storage::Container::getStorage | ( | ) | const [inline] |
References sto.
Referenced by storage::PeContainer::addPv(), storage::LvmVg::addPv(), storage::DmraidCo::addPv(), storage::DmmultipathCo::addPv(), storage::Dasd::checkFdasdOutput(), storage::Disk::checkPartedOutput(), storage::MdCo::checkUse(), storage::Btrfs::clearSignature(), storage::MdPartCo::createDisk(), storage::DmPartCo::createDisk(), storage::Disk::defaultLabel(), storage::MdPartCo::destroyPartitionTable(), storage::DmPartCo::destroyPartitionTable(), storage::Disk::destroyPartitionTable(), storage::BtrfsCo::deviceToUuid(), storage::MdPartCo::doCreate(), storage::MdCo::doCreate(), storage::LvmVg::doCreate(), storage::LoopCo::doCreate(), storage::DmPartCo::doCreate(), storage::Disk::doCreate(), storage::MdPartCo::doCreateLabel(), storage::DmPartCo::doCreateLabel(), storage::Disk::doCreateLabel(), storage::LvmVg::doCreatePv(), storage::LvmVg::doCreateVg(), storage::Dasd::doDasdfmt(), storage::LvmVg::doExtendVg(), storage::Dasd::doFdasd(), storage::LvmVg::doReduceVg(), storage::TmpfsCo::doRemove(), storage::NfsCo::doRemove(), storage::MdPartCo::doRemove(), storage::MdCo::doRemove(), storage::LvmVg::doRemove(), storage::LoopCo::doRemove(), storage::DmraidCo::doRemove(), storage::DmPartCo::doRemove(), storage::DmCo::doRemove(), storage::Disk::doRemove(), storage::BtrfsCo::doRemove(), storage::LvmVg::doRemoveVg(), storage::MdPartCo::doResize(), storage::LvmVg::doResize(), storage::DmPartCo::doResize(), storage::Disk::doResize(), storage::MdPartCo::doSetType(), storage::DmPartCo::doSetType(), storage::Disk::doSetType(), storage::Disk::execCheckFailed(), storage::MdCo::extendMd(), storage::LvmVg::extendVg(), storage::PeContainer::findPe(), storage::BtrfsCo::getBtrfsData(), storage::PeContainer::getDeviceByNumber(), storage::DmCo::getDmData(), storage::LoopCo::getLoopData(), storage::Disk::getPartedSectors(), storage::Disk::getPartedValues(), storage::Volume::getStorage(), storage::MdPartCo::getToCommit(), storage::DmPartCo::getToCommit(), storage::LvmVg::getVgData(), storage::MdPartCo::initMd(), storage::LvmVg::instSysString(), storage::MdCo::isHandledByMdPart(), storage::TmpfsCo::logData(), storage::LvmVg::logData(), storage::Disk::logData(), storage::BtrfsCo::logData(), storage::LvmVg::normalizeDmDevices(), storage::DmCo::removeDm(), storage::LvmVg::removeLv(), storage::MdCo::removeMd(), storage::Disk::removePartition(), storage::MdPartCo::removeVolume(), storage::DmPartCo::removeVolume(), storage::PeContainer::tryUnusePe(), storage::PeContainer::unuseDev(), storage::Btrfs::unuseDev(), storage::MdPartCo::unuseDevs(), and storage::Partition::zeroIfNeeded().
| CType storage::Container::type | ( | ) | const [inline] |
References typ.
Referenced by storage::Disk::checkPartedValid(), storage::Volume::cType(), storage::Partition::getCommitActions(), storage::MdPart::getCommitActions(), storage::DmPart::getCommitActions(), storage::Btrfs::getCommitActions(), getInfo(), storage::Storage::isBtrfs(), storage::Storage::isDm(), storage::isDmContainer(), storage::Storage::isDmPart(), storage::Storage::isLoop(), storage::Storage::isMd(), storage::Storage::isMdPart(), storage::Storage::isNfs(), storage::Storage::isNotBtrfs(), storage::Storage::isTmpfs(), storage::Loop::Loop(), storage::Md::Md(), storage::Nfs::Nfs(), storage::notLoop(), and storage::CheckType< Value >::operator()().
| bool storage::Container::isPartitionable | ( | ) | const |
References storage::DISK, storage::DMMULTIPATH, storage::DMRAID, storage::MDPART, and typ.
Referenced by Partitionable().
| static bool storage::Container::Partitionable | ( | const Container & | d | ) | [inline, static] |
References isPartitionable().
| bool storage::Container::isDeviceUsable | ( | ) | const |
References storage::DISK, storage::DMMULTIPATH, storage::DMRAID, storage::MDPART, and typ.
Referenced by DeviceUsable().
| static bool storage::Container::DeviceUsable | ( | const Container & | d | ) | [inline, static] |
| 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::LvmVg::changeStripe(), storage::LvmVg::changeStripeSize(), storage::Disk::createChecks(), storage::LoopCo::createLoop(), storage::LvmVg::createLv(), storage::LvmVg::createLvSnapshot(), storage::MdCo::createMd(), storage::MdPartCo::createPartition(), storage::DmPartCo::createPartition(), storage::BtrfsCo::createSubvolume(), storage::MdCo::extendMd(), storage::LvmVg::extendVg(), storage::BtrfsCo::extendVolume(), storage::Disk::forgetChangePartitionId(), getInfo(), storage::LvmVg::reduceVg(), storage::DmCo::removeDm(), storage::DmPartCo::removeDmPart(), storage::LoopCo::removeLoop(), storage::LvmVg::removeLv(), storage::MdCo::removeMd(), storage::MdPartCo::removeMdPart(), storage::MdPartCo::removePartition(), storage::DmPartCo::removePartition(), storage::Disk::removePartition(), storage::BtrfsCo::removeSubvolume(), storage::LvmVg::removeVg(), storage::NfsCo::removeVolume(), storage::MdPartCo::removeVolume(), storage::DmPartCo::removeVolume(), storage::Disk::resizePartition(), storage::MdPartCo::resizeVolume(), storage::LvmVg::resizeVolume(), storage::DmPartCo::resizeVolume(), storage::Disk::resizeVolume(), storage::MdCo::shrinkMd(), storage::BtrfsCo::shrinkVolume(), and storage::LoopCo::updateLoop().
| Text storage::Container::removeText | ( | bool | doing | ) | const [virtual] |
Reimplemented in storage::DmPartCo, storage::DmraidCo, storage::LvmVg, and storage::MdPartCo.
References storage::_(), storage::Device::dev, and storage::sformat().
| Text storage::Container::createText | ( | bool | doing | ) | const [virtual] |
Reimplemented in storage::LvmVg.
References storage::_(), storage::Device::dev, and storage::sformat().
| int storage::Container::resizeVolume | ( | Volume * | v, | |
| unsigned long long | newSize | |||
| ) | [virtual] |
Reimplemented in storage::Disk, storage::DmPartCo, storage::LvmVg, and storage::MdPartCo.
References storage::VOLUME_RESIZE_UNSUPPORTED_BY_CONTAINER.
| int storage::Container::removeVolume | ( | Volume * | v | ) | [virtual] |
Reimplemented in storage::BtrfsCo, storage::Disk, storage::DmCo, storage::DmPartCo, storage::LoopCo, storage::LvmVg, storage::MdCo, storage::MdPartCo, storage::NfsCo, and storage::TmpfsCo.
References storage::CONTAINER_INVALID_VIRTUAL_CALL, storage::Device::name(), storage::toString(), typ, and y2war.
| static storage::CType storage::Container::staticType | ( | ) | [inline, static] |
Reimplemented in storage::BtrfsCo, storage::Disk, storage::DmCo, storage::DmmultipathCo, storage::DmPartCo, storage::DmraidCo, storage::LoopCo, storage::LvmVg, storage::MdCo, storage::MdPartCo, storage::NfsCo, and storage::TmpfsCo.
References storage::CUNKNOWN.
| virtual Container* storage::Container::getCopy | ( | ) | const [pure virtual] |
| bool storage::Container::compareContainer | ( | const Container & | rhs, | |
| bool | verbose | |||
| ) | const |
References storage::CUNKNOWN, equalContent(), logDifferenceWithVolumes(), storage::prepareLogStream(), typ, y2err, and y2mil.
| void storage::Container::setExtError | ( | const string & | txt | ) | const |
References storage::Storage::setExtError(), and sto.
Referenced by storage::MdCo::doCreate(), storage::LvmVg::doCreate(), storage::LvmVg::doCreatePv(), storage::LvmVg::doExtendVg(), storage::LvmVg::doReduceVg(), storage::MdPartCo::doRemove(), storage::MdCo::doRemove(), storage::LvmVg::doRemove(), storage::DmraidCo::doRemove(), storage::LvmVg::doRemoveVg(), storage::LvmVg::doResize(), storage::Disk::execCheckFailed(), and storage::Volume::setExtError().
| void storage::Container::setExtError | ( | const SystemCmd & | cmd, | |
| bool | serr = true | |||
| ) | const |
| ConstPlainIterator storage::Container::begin | ( | ) | const [inline, protected] |
References vols.
Referenced by storage::BtrfsCo::btrfsBegin(), storage::BtrfsCo::btrfsEnd(), 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::Storage::logCo(), storage::LoopCo::loopBegin(), storage::LoopCo::loopEnd(), storage::LvmVg::lvmLvBegin(), storage::LvmVg::lvmLvEnd(), storage::MakeIterPair(), storage::MdCo::mdBegin(), storage::MdCo::mdEnd(), storage::MdPartCo::mdpartBegin(), storage::MdPartCo::mdpartEnd(), storage::NfsCo::nfsBegin(), storage::NfsCo::nfsEnd(), storage::Disk::partBegin(), storage::Disk::partEnd(), storage::DmPartCo::setUdevData(), storage::TmpfsCo::tmpfsBegin(), and storage::TmpfsCo::tmpfsEnd().
| ConstPlainIterator storage::Container::end | ( | ) | const [inline, protected] |
References vols.
Referenced by storage::BtrfsCo::btrfsBegin(), storage::BtrfsCo::btrfsEnd(), 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::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::MdPartCo::mdpartBegin(), storage::MdPartCo::mdpartEnd(), storage::NfsCo::nfsBegin(), storage::NfsCo::nfsEnd(), storage::Disk::partBegin(), storage::Disk::partEnd(), storage::TmpfsCo::tmpfsBegin(), and storage::TmpfsCo::tmpfsEnd().
| 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::BtrfsCo, storage::Dasd, storage::Disk, storage::DmCo, storage::DmmultipathCo, storage::DmPartCo, storage::DmraidCo, storage::LoopCo, storage::LvmVg, storage::MdCo, storage::MdPartCo, storage::NfsCo, storage::PeContainer, and storage::TmpfsCo.
Referenced by storage::Storage::logCo().
| void storage::Container::addToList | ( | Volume * | e | ) | [protected] |
References vols.
Referenced by storage::DmCo::addDm(), storage::LvmVg::addLv(), storage::MdCo::addMd(), storage::MdPartCo::addNewDev(), storage::DmPartCo::addNewDev(), storage::NfsCo::addNfs(), storage::Disk::addPartition(), storage::TmpfsCo::addTmpfs(), storage::Dasd::checkFdasdOutput(), storage::Disk::checkPartedOutput(), storage::LoopCo::createLoop(), storage::LvmVg::createLv(), storage::LvmVg::createLvSnapshot(), storage::MdCo::createMd(), storage::Dasd::detectPartitions(), storage::Disk::Disk(), storage::LoopCo::getLoopData(), storage::NfsCo::getNfsData(), storage::TmpfsCo::getTmpfsData(), storage::MdPartCo::getVolumes(), storage::DmPartCo::getVolumes(), storage::MdPartCo::handleWholeDevice(), storage::DmPartCo::handleWholeDevice(), and storage::LvmVg::LvmVg().
| bool storage::Container::removeFromList | ( | Volume * | e | ) | [protected] |
Referenced by storage::Dasd::doFdasd(), storage::TmpfsCo::doRemove(), storage::NfsCo::doRemove(), storage::MdPartCo::doRemove(), storage::MdCo::doRemove(), storage::LvmVg::doRemove(), storage::LoopCo::doRemove(), storage::DmPartCo::doRemove(), storage::DmCo::doRemove(), storage::Disk::doRemove(), storage::BtrfsCo::doRemove(), storage::BtrfsCo::eraseVolume(), storage::MdPartCo::handleWholeDevice(), storage::DmPartCo::handleWholeDevice(), storage::Dasd::initializeDisk(), storage::DmCo::removeDm(), storage::DmPartCo::removeDmPart(), storage::LoopCo::removeLoop(), storage::LvmVg::removeLv(), storage::MdCo::removeMd(), storage::MdPartCo::removeMdPart(), storage::Disk::removePartition(), storage::NfsCo::removeVolume(), storage::MdPartCo::updateDelDev(), and storage::DmPartCo::updateDelDev().
| int storage::Container::doCreate | ( | Volume * | v | ) | [protected, virtual] |
Reimplemented in storage::Dasd, storage::Disk, storage::DmPartCo, storage::LoopCo, storage::LvmVg, storage::MdCo, and storage::MdPartCo.
References storage::CONTAINER_INVALID_VIRTUAL_CALL, storage::Device::name(), storage::toString(), typ, and y2war.
Referenced by commitChanges().
| int storage::Container::doRemove | ( | Volume * | v | ) | [protected, virtual] |
Reimplemented in storage::BtrfsCo, storage::Dasd, storage::Disk, storage::DmCo, storage::DmPartCo, storage::LoopCo, storage::LvmVg, storage::MdCo, storage::MdPartCo, storage::NfsCo, and storage::TmpfsCo.
References storage::CONTAINER_INVALID_VIRTUAL_CALL, storage::Device::name(), storage::toString(), typ, and y2war.
Referenced by commitChanges().
| int storage::Container::doResize | ( | Volume * | v | ) | [protected, virtual] |
Reimplemented in storage::Dasd, storage::Disk, storage::DmPartCo, storage::LvmVg, and storage::MdPartCo.
References storage::CONTAINER_INVALID_VIRTUAL_CALL, storage::Device::name(), storage::toString(), typ, and y2war.
Referenced by commitChanges().
| virtual void storage::Container::logData | ( | const string & | Dir | ) | const [inline, protected, virtual] |
Reimplemented in storage::BtrfsCo, storage::Disk, storage::LvmVg, and storage::TmpfsCo.
| bool storage::Container::stageDecrease | ( | const Volume & | v | ) | [static, protected] |
References storage::Device::deleted(), and storage::Volume::needShrink().
Referenced by storage::Dasd::getToCommit(), and getToCommit().
| bool storage::Container::stageIncrease | ( | const Volume & | v | ) | [static, protected] |
References storage::Device::created(), storage::Volume::needCrsetup(), and storage::Volume::needExtend().
Referenced by storage::Dasd::getToCommit(), and getToCommit().
| bool storage::Container::stageFormat | ( | const Volume & | v | ) | [static, protected] |
References storage::Volume::getFormat(), and storage::Volume::needLabel().
Referenced by getToCommit().
| bool storage::Container::stageMount | ( | const Volume & | v | ) | [static, protected] |
References storage::Volume::needFstabUpdate(), and storage::Volume::needRemount().
Referenced by getToCommit().
friend class Storage [friend] |
friend class ListListIterator [friend] |
| std::ostream& operator<< | ( | std::ostream & | s, | |
| const Container & | c | |||
| ) | [friend] |
Storage* const storage::Container::sto [protected] |
Referenced by getStorage(), getStorageConst(), and setExtError().
const CType storage::Container::typ [protected] |
bool storage::Container::ronly [protected] |
Referenced by storage::Dasd::checkFdasdOutput(), storage::Disk::checkPartedOutput(), Container(), storage::MdPartCo::destroyPartitionTable(), storage::DmPartCo::destroyPartitionTable(), storage::Disk::destroyPartitionTable(), storage::Disk::detectPartitions(), storage::Dasd::detectPartitions(), storage::Disk::Disk(), equalContent(), storage::LvmVg::getVgData(), logDifference(), storage::operator<<(), readonly(), and saveData().
VCont storage::Container::vols [protected] |
Referenced by storage::BtrfsCo::addFromVolume(), addToList(), begin(), storage::BtrfsCo::BtrfsCo(), storage::MdPartCo::destroyPartitionTable(), storage::DmPartCo::destroyPartitionTable(), storage::Disk::destroyPartitionTable(), storage::Disk::detectPartitions(), storage::Dasd::detectPartitions(), storage::Dasd::detectPartitionsFdasd(), storage::Disk::Disk(), storage::DmCo::DmCo(), storage::DmPartCo::DmPartCo(), end(), storage::BtrfsCo::getBtrfsData(), storage::MdPartCo::getVolumes(), storage::DmPartCo::getVolumes(), storage::LoopCo::LoopCo(), storage::LvmVg::LvmVg(), storage::MdCo::MdCo(), storage::MdPartCo::MdPartCo(), storage::NfsCo::NfsCo(), removeFromList(), storage::MdPartCo::removeFromMemory(), storage::DmPartCo::removeFromMemory(), storage::Disk::removeFromMemory(), storage::TmpfsCo::TmpfsCo(), vBegin(), vEnd(), volBegin(), volCondBegin(), volCondEnd(), volEnd(), and ~Container().
storage::ContainerInfo storage::Container::info [mutable, protected] |
Reimplemented in storage::Disk, storage::DmPartCo, storage::LvmVg, and storage::MdPartCo.
Referenced by getInfo().
1.5.6