#include <DmPartCo.h>

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 (const ProcParts &parts) |
| void | updatePointers (bool invalid=false) |
| void | updateMinor () |
| virtual void | newP (DmPart *&dm, unsigned num, Partition *p) |
| int | addNewDev (string &device) |
| int | updateDelDev () |
| void | handleWholeDevice () |
| 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 &) |
Classes | |
| struct | DmPartCPI |
| struct | DmPartPI |
typedef CastIterator<VIter, DmPart *> storage::DmPartCo::DmPartInter [protected] |
typedef CastIterator<CVIter, const DmPart *> storage::DmPartCo::DmPartCInter [protected] |
typedef CheckFnc<const DmPart> storage::DmPartCo::CheckFncDmPart [protected] |
typedef CheckerIterator< CheckFncDmPart, DmPartPI<CheckFncDmPart>::type, DmPartInter, DmPart > storage::DmPartCo::DmPartPIterator [protected] |
typedef CheckerIterator< CheckFncDmPart, DmPartCPI<CheckFncDmPart>::type, DmPartCInter, const DmPart > storage::DmPartCo::DmPartCPIterator [protected] |
typedef DerefIterator<DmPartPIterator,DmPart> storage::DmPartCo::DmPartIter [protected] |
typedef DerefIterator<DmPartCPIterator,const DmPart> storage::DmPartCo::ConstDmPartIter [protected] |
typedef IterPair<DmPartIter> storage::DmPartCo::DmPartPair [protected] |
typedef IterPair<ConstDmPartIter> storage::DmPartCo::ConstDmPartPair [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.
| unsigned long long storage::DmPartCo::sizeK | ( | ) | const [inline] |
| const string& storage::DmPartCo::labelName | ( | ) | const [inline] |
| 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().
| unsigned storage::DmPartCo::numPartitions | ( | ) | const [inline] |
References disk, and storage::Disk::numPartitions().
| 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().
| 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().
Referenced by storage::DmraidCo::setUdevData(), and storage::DmmultipathCo::setUdevData().
| virtual string storage::DmPartCo::procName | ( | ) | const [inline, virtual] |
Reimplemented from storage::Device.
References storage::decString(), and storage::Device::mnr.
Referenced by sysfsPath().
| string storage::DmPartCo::sysfsPath | ( | ) | const [virtual] |
| int storage::DmPartCo::createPartition | ( | storage::PartitionType | type, | |
| long unsigned | start, | |||
| long unsigned | len, | |||
| string & | device, | |||
| bool | checkRelaxed = false | |||
| ) |
| int storage::DmPartCo::createPartition | ( | long unsigned | len, | |
| string & | device, | |||
| bool | checkRelaxed = false | |||
| ) |
| int storage::DmPartCo::createPartition | ( | storage::PartitionType | type, | |
| string & | device | |||
| ) |
| int storage::DmPartCo::removePartition | ( | unsigned | nr | ) |
| 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::forgetChangePartitionId | ( | unsigned | nr | ) |
References disk, storage::DMPART_PARTITION_NOT_FOUND, storage::Disk::forgetChangePartitionId(), and y2mil.
Referenced by storage::Storage::forgetChangePartitionId().
| 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::nextFreePartition | ( | storage::PartitionType | type, | |
| unsigned & | nr, | |||
| string & | device | |||
| ) | const |
| 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.
| int storage::DmPartCo::freeCylindersAroundPartition | ( | const DmPart * | p, | |
| unsigned long & | freeCylsBefore, | |||
| unsigned long & | freeCylsAfter | |||
| ) | const |
| 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.
| int storage::DmPartCo::removeVolume | ( | Volume * | v | ) | [virtual] |
| 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.
| unsigned storage::DmPartCo::maxPrimary | ( | ) | const [inline] |
References disk, and storage::Disk::maxPrimary().
| bool storage::DmPartCo::extendedPossible | ( | ) | const [inline] |
References disk, and storage::Disk::extendedPossible().
| unsigned storage::DmPartCo::maxLogical | ( | ) | const [inline] |
References disk, and storage::Disk::maxLogical().
| unsigned int storage::DmPartCo::numPrimary | ( | ) | const [inline] |
References disk, and storage::Disk::numPrimary().
| bool storage::DmPartCo::hasExtended | ( | ) | const [inline] |
References disk, and storage::Disk::hasExtended().
| unsigned int storage::DmPartCo::numLogical | ( | ) | const [inline] |
References disk, and storage::Disk::numLogical().
| void storage::DmPartCo::getUnusedSpace | ( | std::list< Region > & | free, | |
| bool | all = true, |
|||
| bool | logical = false | |||
| ) | const [inline] |
References disk, and storage::Disk::getUnusedSpace().
| unsigned long long storage::DmPartCo::cylinderToKb | ( | unsigned long | val | ) | const [inline] |
References storage::Disk::cylinderToKb(), and disk.
| unsigned long storage::DmPartCo::kbToCylinder | ( | unsigned long long | val | ) | const [inline] |
References disk, and storage::Disk::kbToCylinder().
| string storage::DmPartCo::getPartName | ( | unsigned | nr | ) | const |
References storage::decString(), storage::Device::nm, and y2mil.
Referenced by init(), storage::DmraidCo::newP(), newP(), storage::DmmultipathCo::newP(), storage::Dmraid::removeText(), and storage::Dmmultipath::removeText().
| 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().
| void storage::DmPartCo::getCommitActions | ( | list< commitAction > & | l | ) | const [virtual] |
Reimplemented from storage::Container.
References storage::DECREASE, storage::Disk::del_ptable, storage::Device::deleted(), disk, storage::Container::getCommitActions(), removeText(), setDiskLabelText(), staticType(), and y2mil.
| void storage::DmPartCo::getToCommit | ( | storage::CommitStage | stage, | |
| list< const Container * > & | col, | |||
| list< const Volume * > & | vol | |||
| ) | const [virtual] |
Reimplemented from storage::Container.
References storage::IterPair< Iter >::begin(), storage::Disk::del_ptable, disk, dmpartPair(), storage::IterPair< Iter >::end(), storage::Container::getStorage(), storage::Container::getToCommit(), storage::INCREASE, storage::Storage::logCo(), storage::toChangeId(), and y2mil.
| 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.
| int storage::DmPartCo::commitChanges | ( | storage::CommitStage | stage, | |
| Volume * | vol | |||
| ) | [virtual] |
Reimplemented from storage::Container.
References storage::Container::commitChanges(), disk, storage::DMPART_INVALID_VOLUME, doSetType(), storage::DmPart::getPtr(), storage::INCREASE, storage::Device::name(), storage::Partition::toChangeId(), and y2mil.
| 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().
| void storage::DmPartCo::getInfo | ( | storage::DmPartCoInfo & | info | ) | const |
| bool storage::DmPartCo::equalContent | ( | const DmPartCo & | rhs | ) | const |
| void storage::DmPartCo::logDifference | ( | std::ostream & | log, | |
| const DmPartCo & | rhs | |||
| ) | const |
References active, storage::logDiff(), and storage::PeContainer::logDifference().
Referenced by storage::DmraidCo::logDifference(), and storage::DmmultipathCo::logDifference().
| string storage::DmPartCo::undevName | ( | const string & | name | ) | [static] |
| DmPartPair storage::DmPartCo::dmpartPair | ( | bool(*)(const DmPart &) | CheckDmPart = NULL |
) | [inline, protected] |
References dmpartBegin(), and dmpartEnd().
Referenced by DmPartCo(), equalContent(), findDm(), storage::Storage::getRecursiveUsingHelper(), getToCommit(), storage::DmraidCo::logDifferenceWithVolumes(), storage::DmmultipathCo::logDifferenceWithVolumes(), removeDmPart(), updateDelDev(), updateMinor(), and updatePointers().
| DmPartIter storage::DmPartCo::dmpartBegin | ( | bool(*)(const DmPart &) | CheckDmPart = NULL |
) | [inline, protected] |
| DmPartIter storage::DmPartCo::dmpartEnd | ( | bool(*)(const DmPart &) | CheckDmPart = NULL |
) | [inline, protected] |
| ConstDmPartPair storage::DmPartCo::dmpartPair | ( | bool(*)(const DmPart &) | CheckDmPart = NULL |
) | const [inline, protected] |
References dmpartBegin(), and dmpartEnd().
| ConstDmPartIter storage::DmPartCo::dmpartBegin | ( | bool(*)(const DmPart &) | CheckDmPart = NULL |
) | const [inline, protected] |
References storage::Container::begin(), and storage::Container::end().
| ConstDmPartIter storage::DmPartCo::dmpartEnd | ( | bool(*)(const DmPart &) | CheckDmPart = NULL |
) | const [inline, protected] |
References storage::Container::begin(), and storage::Container::end().
| virtual void storage::DmPartCo::print | ( | std::ostream & | s | ) | const [inline, protected, virtual] |
Reimplemented from storage::PeContainer.
Reimplemented in storage::DmmultipathCo, and storage::DmraidCo.
| virtual Container* storage::DmPartCo::getCopy | ( | ) | const [protected, pure virtual] |
| void storage::DmPartCo::activate_part | ( | bool | val | ) | [protected] |
References active.
Referenced by doCreate(), storage::DmraidCo::doRemove(), doRemove(), doResize(), and init().
| 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().
| void storage::DmPartCo::createDisk | ( | SystemInfo & | systeminfo | ) | [protected] |
| void storage::DmPartCo::getVolumes | ( | const ProcParts & | parts | ) | [protected] |
| void storage::DmPartCo::updatePointers | ( | bool | invalid = false |
) | [protected] |
References storage::IterPair< Iter >::begin(), dmpartPair(), storage::IterPair< Iter >::end(), and getPartition().
Referenced by DmPartCo().
| void storage::DmPartCo::updateMinor | ( | ) | [protected] |
References storage::IterPair< Iter >::begin(), dmpartPair(), and storage::IterPair< Iter >::end().
Referenced by doCreate(), doRemove(), and doResize().
Reimplemented in storage::DmmultipathCo, and storage::DmraidCo.
References getPartDevice(), getPartName(), and y2mil.
Referenced by addNewDev(), getVolumes(), and handleWholeDevice().
| int storage::DmPartCo::addNewDev | ( | string & | device | ) | [protected] |
References storage::Container::addToList(), storage::DmPart::addUdevData(), storage::Device::dev, storage::DMPART_PARTITION_NOT_FOUND, storage::Volume::getFsInfo(), getPartDevice(), getPartition(), handleWholeDevice(), newP(), storage::Volume::nr(), storage::Device::setCreated(), and y2mil.
Referenced by createPartition().
| 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::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::removeFromMemory | ( | ) | [protected] |
| void storage::DmPartCo::removePresentPartitions | ( | ) | [protected] |
| 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().
| 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::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::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::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().
| 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 | ( | ) | [protected, virtual] |
Reimplemented in storage::DmraidCo.
References storage::DMPART_NO_REMOVE.
Referenced by commitChanges(), and removePresentPartitions().
| 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().
| Text storage::DmPartCo::setDiskLabelText | ( | bool | doing | ) | const [protected, virtual] |
References disk, and storage::Disk::setDiskLabelText().
Referenced by doCreateLabel(), and getCommitActions().
friend class Storage [friend] |
Reimplemented from storage::PeContainer.
Reimplemented in storage::DmmultipathCo, and storage::DmraidCo.
| std::ostream& operator<< | ( | std::ostream & | s, | |
| const DmPartCo & | d | |||
| ) | [friend] |
list<string> storage::DmPartCo::udev_id [protected] |
Referenced by storage::operator<<(), storage::DmraidCo::setUdevData(), storage::DmmultipathCo::setUdevData(), and udevId().
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().
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<<().
storage::DmPartCoInfo storage::DmPartCo::info [mutable, protected] |
Reimplemented from storage::Container.
Referenced by storage::DmraidCo::getInfo(), getInfo(), and storage::DmmultipathCo::getInfo().
1.5.6