#include <DmPart.h>

Public Member Functions | |
| DmPart (const DmPartCo &c, const string &name, const string &device, unsigned nr, Partition *p) | |
| DmPart (const DmPartCo &c, const DmPart &v) | |
| virtual | ~DmPart () |
| virtual void | print (std::ostream &s) const |
| void | getInfo (storage::DmPartInfo &info) const |
| bool | equalContent (const DmPart &rhs) const |
| void | logDifference (std::ostream &log, const DmPart &rhs) const |
| void | setPtr (Partition *pa) |
| Partition * | getPtr () const |
| unsigned | id () const |
| void | updateName () |
| void | updateMinor () |
| void | updateSize (const ProcParts &parts) |
| void | updateSize () |
| void | getCommitActions (list< commitAction > &l) const |
| void | addUdevData () |
| virtual list< string > | getUsing () const |
| virtual list< string > | udevId () const |
| virtual Text | setTypeText (bool doing) const |
Static Public Member Functions | |
| static bool | notDeleted (const DmPart &l) |
Protected Member Functions | |
| virtual const string | shortPrintedName () const |
| const DmPartCo * | co () const |
| void | addAltUdevId (unsigned num) |
Protected Attributes | |
| Partition * | p |
| storage::DmPartInfo | info |
Private Member Functions | |
| DmPart (const DmPart &) | |
| DmPart & | operator= (const DmPart &) |
Friends | |
| std::ostream & | operator<< (std::ostream &s, const DmPart &p) |
References storage::Device::dev, and y2deb.
| storage::DmPart::~DmPart | ( | ) | [virtual] |
References storage::Device::dev, and y2deb.
| storage::DmPart::DmPart | ( | const DmPart & | ) | [private] |
| virtual void storage::DmPart::print | ( | std::ostream & | s | ) | const [inline, virtual] |
| void storage::DmPart::getInfo | ( | storage::DmPartInfo & | info | ) | const |
References storage::Partition::getInfo(), storage::Volume::getInfo(), info, storage::DmPartInfo::p, p, storage::DmPartInfo::part, storage::DmPartInfo::table, storage::Dm::target, storage::DmPartInfo::target, storage::Dm::tname, and storage::DmPartInfo::v.
Referenced by storage::Dmraid::getInfo(), and storage::Dmmultipath::getInfo().
| bool storage::DmPart::equalContent | ( | const DmPart & | rhs | ) | const |
References storage::Dm::equalContent().
Referenced by storage::Dmraid::equalContent(), and storage::Dmmultipath::equalContent().
| void storage::DmPart::logDifference | ( | std::ostream & | log, | |
| const DmPart & | rhs | |||
| ) | const |
References storage::Dm::logDifference().
Referenced by storage::Dmraid::logDifference(), and storage::Dmmultipath::logDifference().
| void storage::DmPart::setPtr | ( | Partition * | pa | ) | [inline] |
| Partition* storage::DmPart::getPtr | ( | ) | const [inline] |
| unsigned storage::DmPart::id | ( | ) | const [inline] |
References id().
Referenced by id(), storage::Dmraid::setTypeText(), setTypeText(), and storage::Dmmultipath::setTypeText().
| void storage::DmPart::updateName | ( | ) |
References co(), storage::Volume::nr(), storage::Volume::num, p, and storage::Device::setNameDevice().
| void storage::DmPart::updateMinor | ( | ) |
| void storage::DmPart::updateSize | ( | const ProcParts & | parts | ) |
| void storage::DmPart::updateSize | ( | ) |
References storage::Volume::orig_size_k, storage::Volume::origSizeK(), p, storage::Device::size_k, and storage::Device::sizeK().
Referenced by updateSize().
| void storage::DmPart::getCommitActions | ( | list< commitAction > & | l | ) | const [virtual] |
Reimplemented from storage::Volume.
References storage::Volume::cont, storage::Volume::getCommitActions(), storage::INCREASE, p, setTypeText(), storage::toChangeId(), and storage::Container::type().
| void storage::DmPart::addUdevData | ( | ) |
| list< string > storage::DmPart::getUsing | ( | ) | const [virtual] |
| list< string > storage::DmPart::udevId | ( | ) | const [virtual] |
Reimplemented from storage::Device.
References co(), storage::Volume::num, storage::udevAppendPart(), and storage::DmPartCo::udevId().
| Text storage::DmPart::setTypeText | ( | bool | doing | ) | const [virtual] |
Reimplemented in storage::Dmmultipath, and storage::Dmraid.
References storage::_(), storage::Device::dev, id(), and storage::sformat().
Referenced by storage::DmPartCo::doSetType(), and getCommitActions().
| static bool storage::DmPart::notDeleted | ( | const DmPart & | l | ) | [inline, static] |
References storage::Device::deleted().
Referenced by storage::DmPartCo::findDm(), storage::Storage::getRecursiveUsingHelper(), and storage::DmPartCo::removeDmPart().
| virtual const string storage::DmPart::shortPrintedName | ( | ) | const [inline, protected, virtual] |
| const DmPartCo * storage::DmPart::co | ( | ) | const [protected] |
References storage::Volume::cont.
Referenced by addAltUdevId(), storage::Dmraid::removeText(), storage::Dmmultipath::removeText(), udevId(), and updateName().
| void storage::DmPart::addAltUdevId | ( | unsigned | num | ) | [protected] |
| std::ostream& operator<< | ( | std::ostream & | s, | |
| const DmPart & | p | |||
| ) | [friend] |
Partition* storage::DmPart::p [protected] |
storage::DmPartInfo storage::DmPart::info [mutable, protected] |
Reimplemented from storage::Dm.
Referenced by storage::Dmraid::getInfo(), getInfo(), and storage::Dmmultipath::getInfo().
1.5.6