|
yast2-storage
|
#include <DmPartCo.h>
Classes | |
| struct | DmPartCPI |
| struct | DmPartPI |
Public Member Functions | |
| DmPartCo (Storage *s, const string &name, const string &device, CType t, SystemInfo &systeminfo) | |
| DmPartCo (const DmPartCo &c) | |
| virtual | ~DmPartCo () |
| unsigned long long | sizeK () const |
| const string & | labelName () const |
| virtual list< string > | udevId () const |
| unsigned | numPartitions () const |
| void | setUdevData (const list< string > &id) |
| virtual string | procName () const |
| virtual string | sysfsPath () const |
| int | createPartition (storage::PartitionType type, long unsigned start, long unsigned len, string &device, bool checkRelaxed=false) |
| int | createPartition (long unsigned len, string &device, bool checkRelaxed=false) |
| int | createPartition (storage::PartitionType type, string &device) |
| int | removePartition (unsigned nr) |
| int | changePartitionId (unsigned nr, unsigned id) |
| int | forgetChangePartitionId (unsigned nr) |
| int | changePartitionArea (unsigned nr, const Region &cylRegion, bool checkRelaxed=false) |
| int | nextFreePartition (storage::PartitionType type, unsigned &nr, string &device) const |
| int | destroyPartitionTable (const string &new_label) |
| int | freeCylindersAroundPartition (const DmPart *p, unsigned long &freeCylsBefore, unsigned long &freeCylsAfter) const |
| int | resizePartition (DmPart *p, unsigned long newCyl) |
| int | resizeVolume (Volume *v, unsigned long long newSize) |
| int | removeVolume (Volume *v) |
| int | removeDmPart () |
| unsigned | maxPrimary () const |
| bool | extendedPossible () const |
| unsigned | maxLogical () const |
| unsigned int | numPrimary () const |
| bool | hasExtended () const |
| unsigned int | numLogical () const |
| void | getUnusedSpace (std::list< Region > &free, bool all=true, bool logical=false) const |
| unsigned long long | cylinderToKb (unsigned long val) const |
| unsigned long | kbToCylinder (unsigned long long val) const |
| string | getPartName (unsigned nr) const |
| string | getPartDevice (unsigned nr) const |
| 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) |
| int | commitChanges (storage::CommitStage stage, Volume *vol) |
| Partition * | getPartition (unsigned nr, bool del) |
| void | getInfo (storage::DmPartCoInfo &info) const |
| bool | equalContent (const DmPartCo &rhs) const |
| void | logDifference (std::ostream &log, const DmPartCo &rhs) const |
Static Public Member Functions | |
| static storage::CType | staticType () |
| static string | undevName (const string &name) |
Protected Types | |
| typedef CastIterator< VIter, DmPart * > | DmPartInter |
| typedef CastIterator< CVIter, const DmPart * > | DmPartCInter |
| typedef CheckFnc< const DmPart > | CheckFncDmPart |
| typedef CheckerIterator < CheckFncDmPart, DmPartPI < CheckFncDmPart >::type, DmPartInter, DmPart > | DmPartPIterator |
| typedef CheckerIterator < CheckFncDmPart, DmPartCPI < CheckFncDmPart >::type, DmPartCInter, const DmPart > | DmPartCPIterator |
| typedef DerefIterator < DmPartPIterator, DmPart > | DmPartIter |
| typedef DerefIterator < DmPartCPIterator, const DmPart > | ConstDmPartIter |
| typedef IterPair< DmPartIter > | DmPartPair |
| typedef IterPair< ConstDmPartIter > | ConstDmPartPair |
Protected Member Functions | |
| DmPartPair | dmpartPair (bool(*CheckDmPart)(const DmPart &)=NULL) |
| DmPartIter | dmpartBegin (bool(*CheckDmPart)(const DmPart &)=NULL) |
| DmPartIter | dmpartEnd (bool(*CheckDmPart)(const DmPart &)=NULL) |
| ConstDmPartPair | dmpartPair (bool(*CheckDmPart)(const DmPart &)=NULL) const |
| ConstDmPartIter | dmpartBegin (bool(*CheckDmPart)(const DmPart &)=NULL) const |
| ConstDmPartIter | dmpartEnd (bool(*CheckDmPart)(const DmPart &)=NULL) const |
| virtual void | print (std::ostream &s) const |
| virtual Container * | getCopy () const =0 |
| void | activate_part (bool val) |
| void | init (SystemInfo &systeminfo) |
| void | createDisk (SystemInfo &systeminfo) |
| void | getVolumes (SystemInfo &si) |
| void | updatePointers (bool invalid=false) |
| void | updateMinor () |
| virtual void | newP (DmPart *&dm, unsigned num, Partition *p, SystemInfo &si) |
| virtual void | newP (DmPart *&dm, unsigned num, Partition *p) |
| int | addNewDev (string &device) |
| int | updateDelDev () |
| void | handleWholeDevice () |
| void | handleWholeDevice (SystemInfo &si) |
| void | removeFromMemory () |
| void | removePresentPartitions () |
| bool | validPartition (const Partition *p) |
| bool | findDm (unsigned nr, DmPartIter &i) |
| int | doCreate (Volume *v) |
| int | doRemove (Volume *v) |
| int | doResize (Volume *v) |
| int | doSetType (DmPart *v) |
| int | doCreateLabel () |
| virtual int | doRemove () |
| virtual Text | removeText (bool doing) const |
| virtual Text | setDiskLabelText (bool doing) const |
Protected Attributes | |
| list< string > | udev_id |
| Disk * | disk |
| bool | active |
| storage::DmPartCoInfo | info |
Private Member Functions | |
| DmPartCo & | operator= (const DmPartCo &) |
Friends | |
| class | Storage |
| std::ostream & | operator<< (std::ostream &, const DmPartCo &) |
typedef CheckFnc<const DmPart> storage::DmPartCo::CheckFncDmPart [protected] |
typedef DerefIterator<DmPartCPIterator,const DmPart> storage::DmPartCo::ConstDmPartIter [protected] |
typedef IterPair<ConstDmPartIter> storage::DmPartCo::ConstDmPartPair [protected] |
typedef CastIterator<CVIter, const DmPart *> storage::DmPartCo::DmPartCInter [protected] |
typedef CheckerIterator< CheckFncDmPart, DmPartCPI<CheckFncDmPart>::type, DmPartCInter, const DmPart > storage::DmPartCo::DmPartCPIterator [protected] |
typedef CastIterator<VIter, DmPart *> storage::DmPartCo::DmPartInter [protected] |
typedef DerefIterator<DmPartPIterator,DmPart> storage::DmPartCo::DmPartIter [protected] |
typedef IterPair<DmPartIter> storage::DmPartCo::DmPartPair [protected] |
typedef CheckerIterator< CheckFncDmPart, DmPartPI<CheckFncDmPart>::type, DmPartInter, DmPart > storage::DmPartCo::DmPartPIterator [protected] |
| storage::DmPartCo::DmPartCo | ( | Storage * | s, |
| const string & | name, | ||
| const string & | device, | ||
| CType | t, | ||
| SystemInfo & | systeminfo | ||
| ) |
References storage::Device::getMajorMinor(), init(), and y2deb.
| storage::DmPartCo::DmPartCo | ( | const DmPartCo & | c | ) |
| storage::DmPartCo::~DmPartCo | ( | ) | [virtual] |
References storage::Device::dev, disk, and y2deb.
| void storage::DmPartCo::activate_part | ( | bool | val | ) | [protected] |
References active.
Referenced by doCreate(), storage::DmraidCo::doRemove(), doRemove(), doResize(), and init().
| int storage::DmPartCo::addNewDev | ( | string & | device | ) | [protected] |
References storage::Container::addToList(), storage::DmPart::addUdevData(), storage::IterPair< Iter >::begin(), storage::Device::dev, storage::DMPART_PARTITION_NOT_FOUND, dmpartPair(), storage::IterPair< Iter >::end(), storage::Volume::getFsInfo(), getPartDevice(), getPartition(), handleWholeDevice(), newP(), storage::Volume::nr(), storage::Device::setCreated(), storage::Volume::setCryptPwd(), and y2mil.
Referenced by createPartition().
| int storage::DmPartCo::changePartitionArea | ( | unsigned | nr, |
| const Region & | cylRegion, | ||
| bool | checkRelaxed = false |
||
| ) |
References storage::Disk::changePartitionArea(), disk, storage::DMPART_PARTITION_NOT_FOUND, findDm(), and y2mil.
Referenced by storage::Storage::updatePartitionArea().
| int storage::DmPartCo::changePartitionId | ( | unsigned | nr, |
| unsigned | id | ||
| ) |
References storage::Disk::changePartitionId(), disk, storage::DMPART_PARTITION_NOT_FOUND, and y2mil.
Referenced by storage::Storage::changePartitionId().
| int storage::DmPartCo::commitChanges | ( | storage::CommitStage | stage | ) | [virtual] |
Reimplemented from storage::Container.
References storage::DECREASE, storage::Disk::del_ptable, storage::Device::deleted(), disk, storage::DMPART_COMMIT_NOTHING_TODO, doCreateLabel(), doRemove(), storage::Device::name(), and y2mil.
Referenced by commitChanges().
| int storage::DmPartCo::commitChanges | ( | storage::CommitStage | stage, |
| Volume * | vol | ||
| ) | [virtual] |
Reimplemented from storage::Container.
References commitChanges(), disk, storage::DMPART_INVALID_VOLUME, doSetType(), storage::DmPart::getPtr(), storage::INCREASE, storage::Device::name(), storage::Partition::toChangeId(), and y2mil.
| void storage::DmPartCo::createDisk | ( | SystemInfo & | systeminfo | ) | [protected] |
| int storage::DmPartCo::createPartition | ( | long unsigned | len, |
| string & | device, | ||
| bool | checkRelaxed = false |
||
| ) |
| int storage::DmPartCo::createPartition | ( | storage::PartitionType | type, |
| string & | device | ||
| ) |
| int storage::DmPartCo::createPartition | ( | storage::PartitionType | type, |
| long unsigned | start, | ||
| long unsigned | len, | ||
| string & | device, | ||
| bool | checkRelaxed = false |
||
| ) |
| unsigned long long storage::DmPartCo::cylinderToKb | ( | unsigned long | val | ) | const [inline] |
References storage::Disk::cylinderToKb(), and disk.
| int storage::DmPartCo::destroyPartitionTable | ( | const string & | new_label | ) |
References storage::Disk::destroyPartitionTable(), storage::Device::device(), disk, storage::Storage::getRecursiveRemoval(), storage::Container::getStorage(), storage::Device::getUsedBy(), storage::Device::isUsedBy(), storage::Storage::removeUsing(), storage::Storage::removeVolume(), storage::Container::ronly, storage::Storage::setRecursiveRemoval(), storage::Container::vols, and y2mil.
| DmPartIter storage::DmPartCo::dmpartBegin | ( | bool(*)(const DmPart &) | CheckDmPart = NULL | ) | [inline, protected] |
References storage::Container::begin(), and storage::Container::end().
Referenced by dmpartPair().
| ConstDmPartIter storage::DmPartCo::dmpartBegin | ( | bool(*)(const DmPart &) | CheckDmPart = NULL | ) | const [inline, protected] |
References storage::Container::begin(), and storage::Container::end().
| DmPartIter storage::DmPartCo::dmpartEnd | ( | bool(*)(const DmPart &) | CheckDmPart = NULL | ) | [inline, protected] |
References storage::Container::begin(), and storage::Container::end().
Referenced by dmpartPair().
| ConstDmPartIter storage::DmPartCo::dmpartEnd | ( | bool(*)(const DmPart &) | CheckDmPart = NULL | ) | const [inline, protected] |
References storage::Container::begin(), and storage::Container::end().
| DmPartPair storage::DmPartCo::dmpartPair | ( | bool(*)(const DmPart &) | CheckDmPart = NULL | ) | [inline, protected] |
References dmpartBegin(), and dmpartEnd().
Referenced by addNewDev(), DmPartCo(), equalContent(), findDm(), storage::Storage::getRecursiveUsingHelper(), getToCommit(), storage::DmraidCo::logDifferenceWithVolumes(), storage::DmmultipathCo::logDifferenceWithVolumes(), removeDmPart(), updateDelDev(), updateMinor(), and updatePointers().
| ConstDmPartPair storage::DmPartCo::dmpartPair | ( | bool(*)(const DmPart &) | CheckDmPart = NULL | ) | const [inline, protected] |
References dmpartBegin(), and dmpartEnd().
| int storage::DmPartCo::doCreate | ( | Volume * | v | ) | [protected, virtual] |
Reimplemented from storage::Container.
References activate_part(), active, disk, storage::DMPART_INTERNAL_ERR, storage::DMPART_INVALID_VOLUME, storage::DMPART_PARTITION_NOT_FOUND, storage::Disk::doCreate(), doSetType(), storage::EXTENDED, storage::Container::getStorage(), storage::Partition::id(), storage::Partition::ID_LINUX, storage::Device::name(), storage::Storage::showInfoCb(), storage::Device::silent, storage::Partition::type(), updateMinor(), storage::Storage::waitForDevice(), and y2mil.
| int storage::DmPartCo::doCreateLabel | ( | ) | [protected] |
References storage::Device::device(), disk, storage::Disk::doCreateLabel(), storage::Container::getStorage(), handleWholeDevice(), labelName(), storage::Storage::removeDmMapsTo(), removeFromMemory(), removePresentPartitions(), setDiskLabelText(), storage::Storage::showInfoCb(), storage::Device::silent, storage::Storage::waitForDevice(), and y2mil.
Referenced by commitChanges().
| int storage::DmPartCo::doRemove | ( | Volume * | v | ) | [protected, virtual] |
Reimplemented from storage::Container.
References activate_part(), active, storage::Device::deleted(), disk, storage::DMPART_INTERNAL_ERR, storage::DMPART_INVALID_VOLUME, storage::DMPART_PARTITION_NOT_FOUND, storage::DMPART_REMOVE_PARTITION_LIST_ERASE, storage::Disk::doRemove(), storage::Container::getStorage(), storage::Device::name(), storage::Volume::prepareRemove(), storage::Container::removeFromList(), storage::Storage::showInfoCb(), storage::Device::silent, updateMinor(), storage::Storage::waitForDevice(), and y2mil.
| int storage::DmPartCo::doRemove | ( | ) | [protected, virtual] |
Reimplemented in storage::DmraidCo.
References storage::DMPART_NO_REMOVE.
Referenced by commitChanges(), and removePresentPartitions().
| int storage::DmPartCo::doResize | ( | Volume * | v | ) | [protected, virtual] |
Reimplemented from storage::Container.
References activate_part(), active, disk, storage::DMPART_INTERNAL_ERR, storage::DMPART_INVALID_VOLUME, storage::DMPART_PARTITION_NOT_FOUND, storage::Disk::doResize(), storage::FSNONE, storage::Container::getStorage(), storage::Device::name(), storage::Storage::showInfoCb(), storage::Device::silent, updateMinor(), storage::VFAT, storage::Storage::waitForDevice(), and y2mil.
| int storage::DmPartCo::doSetType | ( | DmPart * | v | ) | [protected] |
References disk, storage::DMPART_PARTITION_NOT_FOUND, storage::Disk::doSetType(), storage::DmPart::getPtr(), storage::Container::getStorage(), storage::Device::name(), storage::DmPart::setTypeText(), storage::Storage::showInfoCb(), storage::Device::silent, and y2mil.
Referenced by commitChanges(), and doCreate().
| bool storage::DmPartCo::equalContent | ( | const DmPartCo & | rhs | ) | const |
References active, storage::IterPair< Iter >::begin(), dmpartPair(), and storage::IterPair< Iter >::end().
| bool storage::DmPartCo::extendedPossible | ( | ) | const [inline] |
References disk, and storage::Disk::extendedPossible().
| bool storage::DmPartCo::findDm | ( | unsigned | nr, |
| DmPartIter & | i | ||
| ) | [protected] |
References storage::IterPair< Iter >::begin(), dmpartPair(), storage::IterPair< Iter >::end(), and storage::DmPart::notDeleted().
Referenced by changePartitionArea(), and handleWholeDevice().
| int storage::DmPartCo::forgetChangePartitionId | ( | unsigned | nr | ) |
References disk, storage::DMPART_PARTITION_NOT_FOUND, storage::Disk::forgetChangePartitionId(), and y2mil.
Referenced by storage::Storage::forgetChangePartitionId().
| int storage::DmPartCo::freeCylindersAroundPartition | ( | const DmPart * | p, |
| unsigned long & | freeCylsBefore, | ||
| unsigned long & | freeCylsAfter | ||
| ) | const |
| void storage::DmPartCo::getCommitActions | ( | list< commitAction > & | l | ) | const [virtual] |
Reimplemented from storage::Container.
References storage::DECREASE, storage::Disk::del_ptable, storage::Device::deleted(), disk, removeText(), setDiskLabelText(), staticType(), and y2mil.
| virtual Container* storage::DmPartCo::getCopy | ( | ) | const [protected, pure virtual] |
Implements storage::PeContainer.
Implemented in storage::DmmultipathCo, and storage::DmraidCo.
| void storage::DmPartCo::getInfo | ( | storage::DmPartCoInfo & | info | ) | const |
| string storage::DmPartCo::getPartDevice | ( | unsigned | nr | ) | const |
References storage::decString(), storage::Device::dev, and y2mil.
Referenced by addNewDev(), storage::DmraidCo::newP(), newP(), storage::DmmultipathCo::newP(), and nextFreePartition().
| Partition * storage::DmPartCo::getPartition | ( | unsigned | nr, |
| bool | del | ||
| ) |
References storage::IterPair< Iter >::begin(), disk, storage::IterPair< Iter >::end(), storage::Disk::partPair(), and y2mil.
Referenced by addNewDev(), and updatePointers().
| string storage::DmPartCo::getPartName | ( | unsigned | nr | ) | const |
References storage::decString(), storage::Device::nm, and y2mil.
Referenced by init(), storage::DmraidCo::newP(), newP(), and storage::DmmultipathCo::newP().
| void storage::DmPartCo::getToCommit | ( | storage::CommitStage | stage, |
| list< const Container * > & | col, | ||
| list< const Volume * > & | vol | ||
| ) | const [virtual] |
| void storage::DmPartCo::getUnusedSpace | ( | std::list< Region > & | free, |
| bool | all = true, |
||
| bool | logical = false |
||
| ) | const [inline] |
References disk, and storage::Disk::getUnusedSpace().
| void storage::DmPartCo::getVolumes | ( | SystemInfo & | si | ) | [protected] |
References storage::Container::addToList(), storage::IterPair< Iter >::begin(), storage::clearPointerList(), disk, storage::IterPair< Iter >::end(), storage::SystemInfo::getProcParts(), handleWholeDevice(), newP(), storage::Disk::partPair(), storage::DmPart::updateSize(), and storage::Container::vols.
Referenced by init().
| void storage::DmPartCo::handleWholeDevice | ( | ) | [protected] |
References storage::Container::addToList(), disk, storage::IterPair< Iter >::empty(), findDm(), newP(), storage::Partition::notDeleted(), storage::Disk::partPair(), storage::Container::removeFromList(), storage::Volume::setSize(), storage::Device::size_k, y2err, and y2mil.
Referenced by addNewDev(), doCreateLabel(), getVolumes(), and updateDelDev().
| void storage::DmPartCo::handleWholeDevice | ( | SystemInfo & | si | ) | [protected] |
| bool storage::DmPartCo::hasExtended | ( | ) | const [inline] |
References disk, and storage::Disk::hasExtended().
| void storage::DmPartCo::init | ( | SystemInfo & | systeminfo | ) | [protected] |
References activate_part(), active, createDisk(), storage::decString(), disk, storage::SystemInfo::getCmdDmsetup(), storage::CmdDmsetup::getEntry(), storage::CmdDmsetup::getMatchingEntries(), getPartName(), storage::SystemInfo::getProcParts(), storage::ProcParts::getSize(), getVolumes(), storage::CmdDmsetup::Entry::mnr, storage::Device::nm, storage::PeContainer::num_pe, storage::Disk::numPartitions(), storage::PeContainer::pe_size, storage::CmdDmsetup::Entry::segments, storage::Device::size_k, y2mil, and y2war.
Referenced by DmPartCo().
| unsigned long storage::DmPartCo::kbToCylinder | ( | unsigned long long | val | ) | const [inline] |
References disk, and storage::Disk::kbToCylinder().
| const string& storage::DmPartCo::labelName | ( | ) | const [inline] |
References disk, and storage::Disk::labelName().
Referenced by doCreateLabel().
| void storage::DmPartCo::logDifference | ( | std::ostream & | log, |
| const DmPartCo & | rhs | ||
| ) | const |
References active, and storage::logDiff().
| unsigned storage::DmPartCo::maxLogical | ( | ) | const [inline] |
References disk, and storage::Disk::maxLogical().
| unsigned storage::DmPartCo::maxPrimary | ( | ) | const [inline] |
References disk, and storage::Disk::maxPrimary().
| void storage::DmPartCo::newP | ( | DmPart *& | dm, |
| unsigned | num, | ||
| Partition * | p, | ||
| SystemInfo & | si | ||
| ) | [protected, virtual] |
Reimplemented in storage::DmmultipathCo, and storage::DmraidCo.
References getPartDevice(), getPartName(), and y2mil.
Referenced by addNewDev(), getVolumes(), and handleWholeDevice().
Reimplemented in storage::DmmultipathCo, and storage::DmraidCo.
References getPartDevice(), getPartName(), and y2mil.
| int storage::DmPartCo::nextFreePartition | ( | storage::PartitionType | type, |
| unsigned & | nr, | ||
| string & | device | ||
| ) | const |
| unsigned int storage::DmPartCo::numLogical | ( | ) | const [inline] |
References disk, and storage::Disk::numLogical().
| unsigned storage::DmPartCo::numPartitions | ( | ) | const [inline] |
References disk, and storage::Disk::numPartitions().
| unsigned int storage::DmPartCo::numPrimary | ( | ) | const [inline] |
References disk, and storage::Disk::numPrimary().
| virtual void storage::DmPartCo::print | ( | std::ostream & | s | ) | const [inline, protected, virtual] |
Reimplemented from storage::PeContainer.
Reimplemented in storage::DmmultipathCo, and storage::DmraidCo.
| virtual string storage::DmPartCo::procName | ( | ) | const [inline, virtual] |
Reimplemented from storage::Device.
References storage::decString(), and storage::Device::mnr.
Referenced by sysfsPath().
| int storage::DmPartCo::removeDmPart | ( | ) |
References storage::IterPair< Iter >::begin(), storage::Device::created(), storage::DMPART_CHANGE_READONLY, dmpartPair(), storage::IterPair< Iter >::end(), storage::DmPart::notDeleted(), storage::Container::readonly(), storage::Container::removeFromList(), removePartition(), storage::Device::setDeleted(), storage::PeContainer::unuseDev(), y2err, and y2mil.
| void storage::DmPartCo::removeFromMemory | ( | ) | [protected] |
References storage::Container::vols, and y2mil.
Referenced by doCreateLabel().
| int storage::DmPartCo::removePartition | ( | unsigned | nr | ) |
| void storage::DmPartCo::removePresentPartitions | ( | ) | [protected] |
| Text storage::DmPartCo::removeText | ( | bool | doing | ) | const [protected, virtual] |
Reimplemented from storage::Container.
Reimplemented in storage::DmraidCo.
References storage::_(), storage::Device::name(), and storage::sformat().
Referenced by getCommitActions().
| int storage::DmPartCo::removeVolume | ( | Volume * | v | ) | [virtual] |
| int storage::DmPartCo::resizePartition | ( | DmPart * | p, |
| unsigned long | newCyl | ||
| ) |
| int storage::DmPartCo::resizeVolume | ( | Volume * | v, |
| unsigned long long | newSize | ||
| ) | [virtual] |
Reimplemented from storage::Container.
References disk, storage::DMPART_CHANGE_READONLY, storage::DMPART_INTERNAL_ERR, storage::DMPART_INVALID_VOLUME, storage::DMPART_PARTITION_NOT_FOUND, storage::Volume::getFsInfo(), storage::DmPart::getPtr(), storage::Volume::nr(), storage::Container::readonly(), storage::Disk::resizeVolume(), storage::DmPart::updateSize(), and y2mil.
| Text storage::DmPartCo::setDiskLabelText | ( | bool | doing | ) | const [protected, virtual] |
References disk, and storage::Disk::setDiskLabelText().
Referenced by doCreateLabel(), and getCommitActions().
| void storage::DmPartCo::setUdevData | ( | const list< string > & | id | ) |
Reimplemented in storage::DmmultipathCo, and storage::DmraidCo.
References storage::Device::alt_names, storage::Container::begin(), disk, and storage::Disk::setUdevData().
| unsigned long long storage::DmPartCo::sizeK | ( | ) | const [inline] |
Reimplemented from storage::Device.
References storage::Device::size_k.
| static storage::CType storage::DmPartCo::staticType | ( | ) | [inline, static] |
Reimplemented from storage::Container.
Reimplemented in storage::DmmultipathCo, and storage::DmraidCo.
References storage::DMRAID.
Referenced by getCommitActions().
| string storage::DmPartCo::sysfsPath | ( | ) | const [virtual] |
Reimplemented from storage::Device.
References procName(), and SYSFSDIR.
| virtual list<string> storage::DmPartCo::udevId | ( | ) | const [inline, virtual] |
Reimplemented from storage::Device.
References udev_id.
Referenced by storage::DmPart::addAltUdevId(), and storage::DmPart::udevId().
| string storage::DmPartCo::undevName | ( | const string & | name | ) | [static] |
References storage::Device::name().
Referenced by storage::Storage::findDmmultipathCo(), storage::Storage::findDmPartCo(), and storage::Storage::findDmraidCo().
| int storage::DmPartCo::updateDelDev | ( | ) | [protected] |
References storage::IterPair< Iter >::begin(), storage::Device::deleted(), storage::DMPART_PARTITION_NOT_FOUND, dmpartPair(), storage::IterPair< Iter >::end(), handleWholeDevice(), storage::Volume::nr(), storage::Container::removeFromList(), validPartition(), and y2mil.
Referenced by removePartition(), and removeVolume().
| void storage::DmPartCo::updateMinor | ( | ) | [protected] |
References storage::IterPair< Iter >::begin(), dmpartPair(), and storage::IterPair< Iter >::end().
Referenced by doCreate(), doRemove(), and doResize().
| void storage::DmPartCo::updatePointers | ( | bool | invalid = false | ) | [protected] |
References storage::IterPair< Iter >::begin(), dmpartPair(), storage::IterPair< Iter >::end(), and getPartition().
Referenced by DmPartCo().
| bool storage::DmPartCo::validPartition | ( | const Partition * | p | ) | [protected] |
References storage::IterPair< Iter >::begin(), disk, storage::IterPair< Iter >::end(), storage::Volume::nr(), storage::Disk::partPair(), and y2mil.
Referenced by updateDelDev().
| std::ostream& operator<< | ( | std::ostream & | s, |
| const DmPartCo & | d | ||
| ) | [friend] |
friend class Storage [friend] |
Reimplemented from storage::PeContainer.
Reimplemented in storage::DmmultipathCo, and storage::DmraidCo.
bool storage::DmPartCo::active [protected] |
Reimplemented in storage::DmmultipathCo, and storage::DmraidCo.
Referenced by activate_part(), doCreate(), doRemove(), doResize(), equalContent(), init(), logDifference(), and storage::operator<<().
Disk* storage::DmPartCo::disk [protected] |
Referenced by changePartitionArea(), changePartitionId(), commitChanges(), createDisk(), createPartition(), cylinderToKb(), destroyPartitionTable(), DmPartCo(), doCreate(), doCreateLabel(), doRemove(), doResize(), doSetType(), extendedPossible(), forgetChangePartitionId(), freeCylindersAroundPartition(), getCommitActions(), getInfo(), getPartition(), getToCommit(), getUnusedSpace(), getVolumes(), handleWholeDevice(), hasExtended(), init(), kbToCylinder(), labelName(), maxLogical(), maxPrimary(), nextFreePartition(), numLogical(), numPartitions(), numPrimary(), storage::operator<<(), removePartition(), removeVolume(), resizePartition(), resizeVolume(), setDiskLabelText(), setUdevData(), validPartition(), and ~DmPartCo().
storage::DmPartCoInfo storage::DmPartCo::info [mutable, protected] |
Reimplemented from storage::Container.
Referenced by storage::DmraidCo::getInfo(), getInfo(), and storage::DmmultipathCo::getInfo().
list<string> storage::DmPartCo::udev_id [protected] |
Referenced by storage::operator<<(), storage::DmraidCo::setUdevData(), storage::DmmultipathCo::setUdevData(), and udevId().
1.7.3