#include <DmPartCo.h>

Public Member Functions | |
| DmPartCo (Storage *const s, const string &Name, storage::CType t, ProcPart &ppart) | |
| DmPartCo (const DmPartCo &rhs) | |
| virtual | ~DmPartCo () |
| unsigned long long | sizeK () const |
| unsigned | isValid () const |
| const string & | labelName () const |
| const string & | udevPath () const |
| const std::list< string > & | udevId () const |
| unsigned | numPartitions () const |
| void | setUdevData (const list< string > &id) |
| 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, unsigned long start, unsigned long size, bool checkRelaxed=false) |
| int | nextFreePartition (storage::PartitionType type, unsigned &nr, string &device) const |
| int | destroyPartitionTable (const string &new_label) |
| int | freeCylindersAfterPartition (const DmPart *p, unsigned long &freeCyls) 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 |
| virtual void | getCommitActions (std::list< storage::commitAction * > &l) const |
| virtual int | getToCommit (storage::CommitStage stage, std::list< Container * > &col, std::list< Volume * > &vol) |
| virtual int | commitChanges (storage::CommitStage stage) |
| 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 |
| virtual string | getDiffString (const Container &d) const |
| void | logDifference (const DmPartCo &d) const |
| DmPartCo & | operator= (const DmPartCo &rhs) |
| string | numToName (unsigned num) 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 |
| DmPartCo (Storage *const s, const string &File) | |
| virtual void | print (std::ostream &s) const |
| virtual Container * | getCopy () const |
| void | activate_part (bool val) |
| void | init (ProcPart &ppart) |
| void | createDisk (ProcPart &ppart) |
| void | getVolumes (ProcPart &ppart) |
| 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 string | removeText (bool doing) const |
| virtual string | setDiskLabelText (bool doing) const |
| void | logData (const string &Dir) |
Static Protected Member Functions | |
| static bool | partNotDeleted (const DmPart &d) |
Protected Attributes | |
| string | udev_path |
| std::list< string > | udev_id |
| string | logfile_name |
| Disk * | disk |
| bool | active |
| bool | valid |
| bool | del_ptable |
| unsigned | num_part |
| storage::DmPartCoInfo | info |
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 *const | s, | |
| const string & | Name, | |||
| storage::CType | t, | |||
| ProcPart & | ppart | |||
| ) |
Referenced by getCopy().
| DmPartCo::DmPartCo | ( | const DmPartCo & | rhs | ) |
| DmPartCo::~DmPartCo | ( | ) | [virtual] |
References storage::Container::dev, disk, and y2deb.
| storage::DmPartCo::DmPartCo | ( | Storage *const | s, | |
| const string & | File | |||
| ) | [protected] |
| unsigned long long storage::DmPartCo::sizeK | ( | ) | const [inline] |
| unsigned storage::DmPartCo::isValid | ( | ) | const [inline] |
References valid.
Referenced by storage::Storage::detectDmmultipath(), and storage::Storage::detectDmraid().
| const string& storage::DmPartCo::labelName | ( | ) | const [inline] |
References disk, and storage::Disk::labelName().
Referenced by doCreateLabel(), storage::DmraidCo::setDiskLabelText(), setDiskLabelText(), and storage::DmmultipathCo::setDiskLabelText().
| const string& storage::DmPartCo::udevPath | ( | ) | const [inline] |
References udev_path.
| const std::list<string>& storage::DmPartCo::udevId | ( | ) | const [inline] |
| 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.
| 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 DmPartCo::removePartition | ( | unsigned | nr | ) |
| int DmPartCo::changePartitionId | ( | unsigned | nr, | |
| unsigned | id | |||
| ) |
References storage::Disk::changePartitionId(), disk, storage::DMPART_PARTITION_NOT_FOUND, and y2mil.
| int DmPartCo::forgetChangePartitionId | ( | unsigned | nr | ) |
References disk, storage::DMPART_PARTITION_NOT_FOUND, storage::Disk::forgetChangePartitionId(), and y2mil.
| int DmPartCo::changePartitionArea | ( | unsigned | nr, | |
| unsigned long | start, | |||
| unsigned long | size, | |||
| bool | checkRelaxed = false | |||
| ) |
References storage::Disk::changePartitionArea(), disk, storage::DMPART_PARTITION_NOT_FOUND, findDm(), and y2mil.
| int storage::DmPartCo::nextFreePartition | ( | storage::PartitionType | type, | |
| unsigned & | nr, | |||
| string & | device | |||
| ) | const |
| int storage::DmPartCo::destroyPartitionTable | ( | const string & | new_label | ) |
| int DmPartCo::freeCylindersAfterPartition | ( | const DmPart * | p, | |
| unsigned long & | freeCyls | |||
| ) | const |
| int DmPartCo::resizePartition | ( | DmPart * | p, | |
| unsigned long | newCyl | |||
| ) |
| int 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 DmPartCo::removeVolume | ( | Volume * | v | ) | [virtual] |
| int DmPartCo::removeDmPart | ( | ) |
References storage::IterPair< Iter >::begin(), storage::Container::created(), storage::DMPART_CHANGE_READONLY, dmpartPair(), storage::IterPair< Iter >::end(), storage::DmPart::notDeleted(), storage::Container::readonly(), storage::Container::removeFromList(), removePartition(), storage::Container::setDeleted(), storage::PeContainer::unuseDev(), y2err, y2mil, and y2milestone.
| 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 |
| void DmPartCo::getCommitActions | ( | std::list< storage::commitAction * > & | l | ) | const [virtual] |
Reimplemented from storage::Container.
References storage::DECREASE, del_ptable, storage::Container::deleted(), storage::Container::getCommitActions(), removeText(), setDiskLabelText(), staticType(), and y2mil.
| int DmPartCo::getToCommit | ( | storage::CommitStage | stage, | |
| std::list< Container * > & | col, | |||
| std::list< Volume * > & | vol | |||
| ) | [virtual] |
| int DmPartCo::commitChanges | ( | storage::CommitStage | stage | ) | [virtual] |
Reimplemented from storage::Container.
References storage::DECREASE, del_ptable, storage::Container::deleted(), storage::DMPART_COMMIT_NOTHING_TODO, doCreateLabel(), doRemove(), storage::Container::name(), y2mil, and y2milestone.
| int 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::Container::name(), storage::Partition::toChangeId(), y2mil, and y2milestone.
| Partition * DmPartCo::getPartition | ( | unsigned | nr, | |
| bool | del | |||
| ) |
References storage::IterPair< Iter >::begin(), disk, storage::IterPair< Iter >::end(), storage::Disk::partPair(), and y2mil.
Referenced by updatePointers().
| void DmPartCo::getInfo | ( | storage::DmPartCoInfo & | info | ) | const |
| bool DmPartCo::equalContent | ( | const DmPartCo & | rhs | ) | const |
| string DmPartCo::getDiffString | ( | const Container & | d | ) | const [virtual] |
Reimplemented from storage::PeContainer.
Reimplemented in storage::DmmultipathCo, and storage::DmraidCo.
References active, del_ptable, storage::Container::getDiffString(), and valid.
Referenced by storage::DmraidCo::getDiffString(), storage::DmmultipathCo::getDiffString(), and logDifference().
| void DmPartCo::logDifference | ( | const DmPartCo & | d | ) | const |
| static string storage::DmPartCo::undevName | ( | const string & | name | ) | [static] |
Reimplemented in storage::DmmultipathCo, and storage::DmraidCo.
| string DmPartCo::numToName | ( | unsigned | num | ) | const |
References storage::decString(), storage::Container::nm, and y2mil.
Referenced by storage::DmPart::DmPart(), init(), storage::Dmraid::removeText(), storage::Dmmultipath::removeText(), and storage::DmPart::updateName().
| DmPartPair storage::DmPartCo::dmpartPair | ( | bool(*)(const DmPart &) | CheckDmPart = NULL |
) | [inline, protected] |
References dmpartBegin(), and dmpartEnd().
Referenced by DmPartCo(), equalContent(), findDm(), getToCommit(), logDifference(), 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 [inline, protected, virtual] |
Reimplemented from storage::PeContainer.
Reimplemented in storage::DmmultipathCo, and storage::DmraidCo.
References DmPartCo().
| void DmPartCo::activate_part | ( | bool | val | ) | [protected] |
References storage::Dm::activate(), active, storage::Container::dev, storage::SystemCmd::execute(), KPARTXBIN, storage::quote(), and y2milestone.
Referenced by doCreate(), storage::DmraidCo::doRemove(), doRemove(), doResize(), and init().
| void DmPartCo::init | ( | ProcPart & | ppart | ) | [protected] |
References activate_part(), active, createDisk(), storage::decString(), disk, storage::Dm::dmNumber(), DMSETUPBIN, storage::SystemCmd::execute(), storage::ProcPart::getSize(), getVolumes(), storage::Container::mnr, storage::Container::nm, storage::PeContainer::num_pe, storage::SystemCmd::numLines(), storage::Disk::numPartitions(), numToName(), storage::PeContainer::pe_size, storage::quote(), storage::SystemCmd::retcode(), storage::Container::size_k, storage::SystemCmd::stdout(), valid, y2mil, and y2war.
| void DmPartCo::createDisk | ( | ProcPart & | ppart | ) | [protected] |
| void DmPartCo::getVolumes | ( | ProcPart & | ppart | ) | [protected] |
| void DmPartCo::updatePointers | ( | bool | invalid = false |
) | [protected] |
References storage::IterPair< Iter >::begin(), dmpartPair(), storage::IterPair< Iter >::end(), and getPartition().
Referenced by DmPartCo().
| void 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 y2mil.
Referenced by getVolumes(), and handleWholeDevice().
| int storage::DmPartCo::addNewDev | ( | string & | device | ) | [protected] |
| int DmPartCo::updateDelDev | ( | ) | [protected] |
References storage::IterPair< Iter >::begin(), storage::Volume::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 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::Container::size_k, y2err, and y2milestone.
Referenced by doCreateLabel(), getVolumes(), and updateDelDev().
| void DmPartCo::removeFromMemory | ( | ) | [protected] |
| void DmPartCo::removePresentPartitions | ( | ) | [protected] |
| bool 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 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().
| static bool storage::DmPartCo::partNotDeleted | ( | const DmPart & | d | ) | [inline, static, protected] |
References storage::Volume::deleted().
| int 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::Volume::name(), storage::Container::name(), storage::Storage::showInfoCb(), storage::Container::silent, storage::Partition::type(), updateMinor(), storage::Storage::waitForDevice(), y2mil, and y2milestone.
| int DmPartCo::doRemove | ( | Volume * | v | ) | [protected, virtual] |
Reimplemented from storage::Container.
References activate_part(), active, storage::Container::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::Volume::name(), storage::Container::name(), storage::Volume::prepareRemove(), storage::Container::removeFromList(), storage::Storage::showInfoCb(), storage::Container::silent, updateMinor(), storage::Storage::waitForDevice(), y2mil, and y2milestone.
| int 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::Volume::name(), storage::Container::name(), storage::Storage::showInfoCb(), storage::Container::silent, updateMinor(), storage::VFAT, storage::Storage::waitForDevice(), y2mil, and y2milestone.
| int DmPartCo::doSetType | ( | DmPart * | v | ) | [protected] |
References disk, storage::DMPART_PARTITION_NOT_FOUND, storage::Disk::doSetType(), storage::DmPart::getPtr(), storage::Container::getStorage(), storage::Volume::name(), storage::Container::name(), storage::DmPart::setTypeText(), storage::Storage::showInfoCb(), storage::Container::silent, y2mil, and y2milestone.
Referenced by commitChanges(), and doCreate().
| int DmPartCo::doCreateLabel | ( | ) | [protected] |
References del_ptable, storage::Container::device(), disk, storage::Disk::doCreateLabel(), storage::Container::getStorage(), handleWholeDevice(), labelName(), storage::Storage::removeDmMapsTo(), removeFromMemory(), removePresentPartitions(), setDiskLabelText(), storage::Storage::showInfoCb(), storage::Container::silent, storage::Storage::waitForDevice(), y2mil, and y2milestone.
Referenced by commitChanges().
| int DmPartCo::doRemove | ( | ) | [protected, virtual] |
Reimplemented in storage::DmraidCo.
References storage::DMPART_NO_REMOVE.
Referenced by commitChanges(), and removePresentPartitions().
| string DmPartCo::removeText | ( | bool | doing | ) | const [protected, virtual] |
Reimplemented from storage::Container.
Reimplemented in storage::DmraidCo.
References storage::_(), storage::Container::name(), and storage::sformat().
Referenced by getCommitActions().
| string DmPartCo::setDiskLabelText | ( | bool | doing | ) | const [protected, virtual] |
Reimplemented in storage::DmmultipathCo, and storage::DmraidCo.
References storage::_(), storage::Container::dev, labelName(), and storage::sformat().
Referenced by doCreateLabel(), and getCommitActions().
| void storage::DmPartCo::logData | ( | const string & | Dir | ) | [protected, virtual] |
Reimplemented from storage::Container.
Reimplemented in storage::DmmultipathCo, and storage::DmraidCo.
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] |
string storage::DmPartCo::udev_path [protected] |
Referenced by udevPath().
std::list<string> storage::DmPartCo::udev_id [protected] |
Referenced by storage::operator<<(), and udevId().
string storage::DmPartCo::logfile_name [protected] |
Disk* storage::DmPartCo::disk [protected] |
Referenced by changePartitionArea(), changePartitionId(), commitChanges(), createDisk(), cylinderToKb(), DmPartCo(), doCreate(), doCreateLabel(), doRemove(), doResize(), doSetType(), extendedPossible(), forgetChangePartitionId(), freeCylindersAfterPartition(), getInfo(), getPartition(), getUnusedSpace(), getVolumes(), handleWholeDevice(), hasExtended(), init(), kbToCylinder(), labelName(), maxLogical(), maxPrimary(), numLogical(), numPartitions(), numPrimary(), removePartition(), removeVolume(), resizePartition(), resizeVolume(), validPartition(), and ~DmPartCo().
bool storage::DmPartCo::active [protected] |
Reimplemented in storage::DmmultipathCo, and storage::DmraidCo.
Referenced by activate_part(), DmPartCo(), doCreate(), doRemove(), doResize(), equalContent(), getDiffString(), init(), and storage::operator<<().
bool storage::DmPartCo::valid [protected] |
Referenced by DmPartCo(), equalContent(), getDiffString(), init(), isValid(), and storage::operator<<().
bool storage::DmPartCo::del_ptable [protected] |
Referenced by commitChanges(), DmPartCo(), doCreateLabel(), equalContent(), getCommitActions(), getDiffString(), getToCommit(), and storage::operator<<().
unsigned storage::DmPartCo::num_part [protected] |
Referenced by getVolumes(), 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