|
yast2-storage
|
#include <Container.h>
Classes | |
| struct | ConstVolumeI |
| struct | ConstVolumePI |
| struct | VolCondIPair |
| struct | VolumeI |
| struct | VolumePI |
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) |
typedef CheckFnc<const Volume> storage::Container::CheckFncVol [protected] |
typedef CVIter storage::Container::ConstPlainIterator [protected] |
| typedef DerefIterator<ConstVolPIterator,const Volume> storage::Container::ConstVolIterator |
typedef CheckerIterator< CheckFncVol, ConstVolumePI<CheckFncVol>::type, CVIter, Volume> storage::Container::ConstVolPIterator [protected] |
typedef VCont::const_reverse_iterator storage::Container::CRVIter [protected] |
typedef VCont::const_iterator storage::Container::CVIter [protected] |
typedef VIter storage::Container::PlainIterator [protected] |
typedef VCont::reverse_iterator storage::Container::RVIter [protected] |
typedef std::list<Volume*> storage::Container::VCont [protected] |
typedef VCont::iterator storage::Container::VIter [protected] |
typedef DerefIterator<VolPIterator,Volume> storage::Container::VolIterator [protected] |
typedef IterPair<VolIterator> storage::Container::VolPair [protected] |
typedef CheckerIterator< CheckFncVol, VolumePI<CheckFncVol>::type, VIter, Volume> storage::Container::VolPIterator [protected] |
| storage::Container::Container | ( | Storage * | s, |
| const string & | name, | ||
| const string & | device, | ||
| CType | typ | ||
| ) |
References 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::getChildValue(), storage::Storage::testmode(), and y2deb.
| storage::Container::~Container | ( | ) | [virtual] |
References storage::clearPointerList(), storage::Device::dev, vols, and y2deb.
| void storage::Container::addToList | ( | Volume * | e | ) | [protected] |
References vols.
Referenced by storage::LvmVg::addLv(), storage::MdPartCo::addNewDev(), storage::DmPartCo::addNewDev(), storage::TmpfsCo::addTmpfs(), storage::LvmVg::createLv(), storage::LvmVg::createLvSnapshot(), storage::LvmVg::createThin(), storage::TmpfsCo::getTmpfsData(), storage::MdPartCo::getVolumes(), storage::DmPartCo::getVolumes(), storage::MdPartCo::handleWholeDevice(), storage::DmPartCo::handleWholeDevice(), and storage::LvmVg::LvmVg().
| 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().
| PlainIterator storage::Container::begin | ( | ) | [inline, protected] |
References vols.
| virtual void storage::Container::changeDeviceName | ( | const string & | old, |
| const string & | nw | ||
| ) | [inline, virtual] |
Reimplemented in storage::BtrfsCo, storage::MdCo, and storage::PeContainer.
| 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::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::Device::isUsedBy(), 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::UB_LVM, storage::VOLUME_COMMIT_UNKNOWN_STAGE, and y2mil.
| bool storage::Container::compareContainer | ( | const Container & | rhs, |
| bool | verbose | ||
| ) | const |
References storage::CUNKNOWN, equalContent(), logDifferenceWithVolumes(), storage::prepareLogStream(), typ, y2err, and y2mil.
| Text storage::Container::createText | ( | bool | doing | ) | const [virtual] |
Reimplemented in storage::LvmVg.
References storage::_(), storage::Device::dev, and storage::sformat().
| static bool storage::Container::DeviceUsable | ( | const Container & | d | ) | [inline, static] |
References isDeviceUsable().
Referenced by storage::Storage::deviceByNumber().
| 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().
| 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::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::end | ( | ) | [inline, protected] |
References vols.
| 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().
| bool storage::Container::findVolume | ( | const string & | device, |
| Volume *& | vol | ||
| ) |
| 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().
| virtual Container* storage::Container::getCopy | ( | ) | const [pure virtual] |
| 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.
| Storage* storage::Container::getStorage | ( | ) | const [inline] |
References sto.
Referenced by storage::PeContainer::addPv(), storage::LvmVg::addPv(), storage::DmraidCo::addPv(), storage::DmmultipathCo::addPv(), storage::Btrfs::clearSignature(), storage::MdPartCo::createDisk(), storage::DmPartCo::createDisk(), storage::MdPartCo::destroyPartitionTable(), storage::DmPartCo::destroyPartitionTable(), storage::MdPartCo::doCreate(), storage::LvmVg::doCreate(), storage::DmPartCo::doCreate(), storage::MdPartCo::doCreateLabel(), storage::DmPartCo::doCreateLabel(), storage::LvmVg::doCreatePv(), storage::LvmVg::doCreateVg(), storage::Dasd::doDasdfmt(), storage::LvmVg::doExtendVg(), storage::LvmVg::doReduceVg(), storage::TmpfsCo::doRemove(), storage::MdPartCo::doRemove(), storage::LvmVg::doRemove(), storage::DmraidCo::doRemove(), storage::DmPartCo::doRemove(), storage::BtrfsCo::doRemove(), storage::LvmVg::doRemoveVg(), storage::MdPartCo::doResize(), storage::LvmVg::doResize(), storage::DmPartCo::doResize(), storage::MdPartCo::doSetType(), storage::DmPartCo::doSetType(), storage::LvmVg::extendVg(), storage::PeContainer::findPe(), storage::BtrfsCo::getBtrfsData(), storage::PeContainer::getDeviceByNumber(), storage::Volume::getStorage(), storage::MdPartCo::getToCommit(), storage::DmPartCo::getToCommit(), storage::LvmVg::getVgData(), storage::MdPartCo::initMd(), storage::LvmVg::instSysString(), storage::TmpfsCo::logData(), storage::LvmVg::logData(), storage::LvmVg::normalizeDmDevices(), storage::LvmVg::removeLv(), storage::LvmVg::removeVg(), storage::MdPartCo::removeVolume(), storage::DmPartCo::removeVolume(), storage::PeContainer::tryUnusePe(), storage::PeContainer::unuseDev(), storage::MdPartCo::unuseDevs(), and storage::Partition::zeroIfNeeded().
| 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.
| bool storage::Container::isDeviceUsable | ( | ) | const |
References storage::DISK, storage::DMMULTIPATH, storage::DMRAID, storage::MDPART, and typ.
Referenced by DeviceUsable().
| 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().
| bool storage::Container::isPartitionable | ( | ) | const |
References storage::DISK, storage::DMMULTIPATH, storage::DMRAID, storage::MDPART, and typ.
Referenced by Partitionable().
| virtual void storage::Container::logData | ( | const string & | Dir | ) | const [inline, protected, virtual] |
Reimplemented in storage::BtrfsCo, storage::Disk, storage::LvmVg, and storage::TmpfsCo.
| void storage::Container::logDifference | ( | std::ostream & | log, |
| const Container & | rhs | ||
| ) | const |
References storage::logDiff(), storage::logDiffEnum(), ronly, storage::Device::silent, typ, and storage::Device::uby.
Referenced by storage::TmpfsCo::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().
| static bool storage::Container::notDeleted | ( | const Container & | c | ) | [inline, static] |
References storage::Device::deleted().
Referenced by storage::Storage::getContainers().
| 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] |
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] |
| static bool storage::Container::Partitionable | ( | const Container & | d | ) | [inline, static] |
References isPartitionable().
| 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().
| bool storage::Container::readonly | ( | ) | const [inline] |
References ronly.
Referenced by storage::LvmVg::changeChunkSize(), storage::LvmVg::changeStripe(), storage::LvmVg::changeStripeSize(), storage::LvmVg::createLv(), storage::LvmVg::createLvSnapshot(), storage::MdPartCo::createPartition(), storage::DmPartCo::createPartition(), storage::LvmVg::createThin(), storage::LvmVg::extendVg(), getInfo(), storage::LvmVg::reduceVg(), storage::DmPartCo::removeDmPart(), storage::LvmVg::removeLv(), storage::MdPartCo::removeMdPart(), storage::MdPartCo::removePartition(), storage::DmPartCo::removePartition(), storage::LvmVg::removeVg(), storage::MdPartCo::removeVolume(), storage::DmPartCo::removeVolume(), storage::MdPartCo::resizeVolume(), storage::LvmVg::resizeVolume(), and storage::DmPartCo::resizeVolume().
| bool storage::Container::removeFromList | ( | Volume * | e | ) | [protected] |
Referenced by storage::TmpfsCo::doRemove(), storage::MdPartCo::doRemove(), storage::LvmVg::doRemove(), storage::DmPartCo::doRemove(), storage::BtrfsCo::doRemove(), storage::MdPartCo::handleWholeDevice(), storage::DmPartCo::handleWholeDevice(), storage::Dasd::initializeDisk(), storage::DmPartCo::removeDmPart(), storage::LvmVg::removeLv(), storage::MdPartCo::removeMdPart(), storage::MdPartCo::updateDelDev(), and storage::DmPartCo::updateDelDev().
| 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().
| 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.
| 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.
| 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, and storage::setChildValue().
| void storage::Container::setExtError | ( | const SystemCmd & | cmd, |
| bool | serr = true |
||
| ) | const |
| void storage::Container::setExtError | ( | const string & | txt | ) | const |
References storage::Storage::setExtError(), and sto.
Referenced by storage::LvmVg::doCreate(), storage::LvmVg::doCreatePv(), storage::LvmVg::doExtendVg(), storage::LvmVg::doReduceVg(), storage::MdPartCo::doRemove(), storage::LvmVg::doRemove(), storage::DmraidCo::doRemove(), storage::LvmVg::doRemoveVg(), storage::LvmVg::doResize(), and storage::Volume::setExtError().
| 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::stageFormat | ( | const Volume & | v | ) | [static, protected] |
References storage::Volume::getFormat(), and storage::Volume::needLabel().
Referenced by getToCommit().
| bool storage::Container::stageIncrease | ( | const Volume & | v | ) | [static, protected] |
References storage::Device::created(), storage::Volume::needCrsetup(), and storage::Volume::needExtend().
Referenced by getToCommit().
| bool storage::Container::stageMount | ( | const Volume & | v | ) | [static, protected] |
References storage::Volume::needFstabUpdate(), and storage::Volume::needRemount().
Referenced by getToCommit().
| 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.
| CType storage::Container::type | ( | ) | const [inline] |
References typ.
Referenced by storage::Volume::cType(), storage::Partition::getCommitActions(), storage::DmPart::getCommitActions(), getInfo(), storage::Storage::isBtrfs(), storage::Storage::isDm(), storage::Storage::isLoop(), storage::Storage::isMd(), storage::Storage::isNfs(), storage::Storage::isTmpfs(), storage::Loop::Loop(), and storage::Md::Md().
| VolIterator storage::Container::vBegin | ( | bool(*)(const Volume &) | CheckFnc = NULL | ) | [inline, protected] |
References vols.
Referenced by storage::Storage::checkNfsDevice(), and volPair().
| VolIterator storage::Container::vEnd | ( | bool(*)(const Volume &) | CheckFnc = NULL | ) | [inline, protected] |
| ConstVolIterator storage::Container::volBegin | ( | bool(*)(const Volume &) | CheckFnc = NULL | ) | const [inline] |
| ConstVolumeI<Pred>::type storage::Container::volCondBegin | ( | const Pred & | p | ) | const [inline] |
References vols.
Referenced by volCondPair().
| ConstVolumeI<Pred>::type storage::Container::volCondEnd | ( | const Pred & | p | ) | const [inline] |
References vols.
Referenced by volCondPair().
| VolCondIPair<Pred>::type storage::Container::volCondPair | ( | const Pred & | p | ) | const [inline] |
References volCondBegin(), and volCondEnd().
| ConstVolIterator storage::Container::volEnd | ( | bool(*)(const Volume &) | CheckFnc = NULL | ) | const [inline] |
| ConstVolPair storage::Container::volPair | ( | bool(*)(const Volume &) | CheckFnc = NULL | ) | const [inline] |
References volBegin(), and volEnd().
Referenced by findVolume(), getCommitActions(), storage::Dasd::getToCommit(), getToCommit(), isEmpty(), storage::MdPartCo::removePresentPartitions(), and storage::DmPartCo::removePresentPartitions().
friend class ListListIterator [friend] |
| std::ostream& operator<< | ( | std::ostream & | s, |
| const Container & | c | ||
| ) | [friend] |
friend class Storage [friend] |
storage::ContainerInfo storage::Container::info [mutable, protected] |
Reimplemented in storage::Disk, storage::DmPartCo, storage::LvmVg, and storage::MdPartCo.
Referenced by getInfo().
bool storage::Container::ronly [protected] |
Storage* const storage::Container::sto [protected] |
Referenced by getStorage(), getStorageConst(), and setExtError().
const CType storage::Container::typ [protected] |
VCont storage::Container::vols [protected] |
Referenced by addToList(), begin(), storage::BtrfsCo::BtrfsCo(), storage::MdPartCo::destroyPartitionTable(), storage::DmPartCo::destroyPartitionTable(), storage::DmPartCo::DmPartCo(), end(), storage::BtrfsCo::getBtrfsData(), storage::MdPartCo::getVolumes(), storage::DmPartCo::getVolumes(), storage::LvmVg::LvmVg(), storage::MdPartCo::MdPartCo(), removeFromList(), storage::MdPartCo::removeFromMemory(), storage::DmPartCo::removeFromMemory(), storage::TmpfsCo::TmpfsCo(), vBegin(), vEnd(), volBegin(), volCondBegin(), volCondEnd(), volEnd(), and ~Container().
1.7.3