#include <MdPart.h>

Public Member Functions | |
| MdPart (const MdPartCo &c, const string &name, const string &device, unsigned nr, Partition *p) | |
| MdPart (const MdPartCo &c, const MdPart &v) | |
| virtual | ~MdPart () |
| virtual void | print (std::ostream &s) const |
| void | getInfo (storage::MdPartInfo &info) const |
| bool | equalContent (const MdPart &rhs) const |
| void | logDifference (std::ostream &log, const MdPart &rhs) const |
| void | setPtr (Partition *pa) |
| Partition * | getPtr () const |
| unsigned | id () const |
| void | updateName () |
| void | updateMinor () |
| void | updateSize (const ProcParts &pp) |
| void | updateSize () |
| void | getCommitActions (list< commitAction > &l) const |
| void | addUdevData () |
| virtual list< string > | udevId () const |
| virtual Text | setTypeText (bool doing) const |
| virtual string | procName () const |
| virtual string | sysfsPath () const |
| virtual list< string > | getUsing () const |
Static Public Member Functions | |
| static bool | notDeleted (const MdPart &l) |
Protected Member Functions | |
| const MdPartCo * | co () const |
| void | addAltUdevId (unsigned num) |
Protected Attributes | |
| Partition * | p |
| storage::MdPartInfo | info |
Private Member Functions | |
| MdPart (const MdPart &) | |
| MdPart & | operator= (const MdPart &) |
Friends | |
| std::ostream & | operator<< (std::ostream &s, const MdPart &p) |
References storage::Device::dev, and y2deb.
| storage::MdPart::~MdPart | ( | ) | [virtual] |
References storage::Device::dev, and y2deb.
| storage::MdPart::MdPart | ( | const MdPart & | ) | [private] |
| virtual void storage::MdPart::print | ( | std::ostream & | s | ) | const [inline, virtual] |
Reimplemented from storage::Volume.
| void storage::MdPart::getInfo | ( | storage::MdPartInfo & | info | ) | const |
| bool storage::MdPart::equalContent | ( | const MdPart & | rhs | ) | const |
References storage::equalContent().
| void storage::MdPart::logDifference | ( | std::ostream & | log, | |
| const MdPart & | rhs | |||
| ) | const |
References storage::Volume::logDifference().
| void storage::MdPart::setPtr | ( | Partition * | pa | ) | [inline] |
| Partition* storage::MdPart::getPtr | ( | ) | const [inline] |
| unsigned storage::MdPart::id | ( | ) | const [inline] |
| void storage::MdPart::updateName | ( | ) |
References co(), storage::Volume::nr(), storage::Volume::num, p, and storage::Device::setNameDevice().
| void storage::MdPart::updateMinor | ( | ) |
References storage::Device::getMajorMinor().
| void storage::MdPart::updateSize | ( | const ProcParts & | pp | ) |
| void storage::MdPart::updateSize | ( | ) |
References storage::Volume::orig_size_k, storage::Volume::origSizeK(), p, storage::Device::size_k, and storage::Device::sizeK().
Referenced by updateSize().
| void storage::MdPart::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::MdPart::addUdevData | ( | ) |
| list< string > storage::MdPart::udevId | ( | ) | const [virtual] |
Reimplemented from storage::Device.
References co(), storage::Volume::num, storage::udevAppendPart(), and storage::MdPartCo::udevId().
| Text storage::MdPart::setTypeText | ( | bool | doing | ) | const [virtual] |
References storage::_(), storage::Device::dev, id(), and storage::sformat().
Referenced by storage::MdPartCo::doSetType(), and getCommitActions().
| static bool storage::MdPart::notDeleted | ( | const MdPart & | l | ) | [inline, static] |
| virtual string storage::MdPart::procName | ( | ) | const [inline, virtual] |
Reimplemented from storage::Device.
References storage::Device::nm.
Referenced by sysfsPath(), and updateSize().
| string storage::MdPart::sysfsPath | ( | ) | const [virtual] |
Reimplemented from storage::Device.
References co(), procName(), and storage::MdPartCo::sysfsPath().
| list< string > storage::MdPart::getUsing | ( | ) | const [virtual] |
Reimplemented from storage::Device.
References storage::Volume::cont, and storage::Device::device().
| const MdPartCo * storage::MdPart::co | ( | ) | const [protected] |
References storage::Volume::cont.
Referenced by addAltUdevId(), sysfsPath(), udevId(), and updateName().
| void storage::MdPart::addAltUdevId | ( | unsigned | num | ) | [protected] |
| std::ostream& operator<< | ( | std::ostream & | s, | |
| const MdPart & | p | |||
| ) | [friend] |
Partition* storage::MdPart::p [protected] |
Referenced by getCommitActions(), getInfo(), updateName(), and updateSize().
storage::MdPartInfo storage::MdPart::info [mutable, protected] |
1.5.6