#include <ProcParts.h>
Public Member Functions | |
| ProcParts () | |
| void | reload () |
| bool | getSize (const string &device, unsigned long long &sizeK) const |
| bool | findDevice (const string &device) const |
| list< string > | getEntries () const |
| template<class Pred> | |
| list< string > | getMatchingEntries (Pred pred) const |
Protected Types | |
| typedef map< string, unsigned long long >::const_iterator | const_iterator |
Protected Member Functions | |
| const_iterator | findEntry (const string &device) const |
Protected Attributes | |
| map< string, unsigned long long > | data |
typedef map<string, unsigned long long>::const_iterator storage::ProcParts::const_iterator [protected] |
| storage::ProcParts::ProcParts | ( | ) |
References reload().
| void storage::ProcParts::reload | ( | ) |
References data, storage::extractNthWord(), storage::AsciiFile::lines(), storage::AsciiFile::remove(), and y2mil.
Referenced by ProcParts().
| bool storage::ProcParts::getSize | ( | const string & | device, | |
| unsigned long long & | sizeK | |||
| ) | const |
References data, findEntry(), y2err, and y2mil.
Referenced by storage::Disk::addPartition(), storage::Dasd::checkFdasdOutput(), storage::Disk::checkPartedOutput(), storage::Disk::checkPartedValid(), storage::Dasd::detectPartitions(), storage::Volume::doCryptsetup(), storage::Dasd::doFdasd(), storage::DmCo::getDmData(), storage::Disk::getPartedValues(), storage::MdPartCo::init(), storage::DmPartCo::init(), storage::Loop::Loop(), storage::MdPart::updateSize(), and storage::DmPart::updateSize().
| bool storage::ProcParts::findDevice | ( | const string & | device | ) | const |
| list< string > storage::ProcParts::getEntries | ( | ) | const |
References data.
| list<string> storage::ProcParts::getMatchingEntries | ( | Pred | pred | ) | const [inline] |
References data.
Referenced by storage::MdPartCo::havePartsInProc(), and storage::Disk::partitionsKernelKnowns().
| ProcParts::const_iterator storage::ProcParts::findEntry | ( | const string & | device | ) | const [protected] |
map<string, unsigned long long> storage::ProcParts::data [protected] |
Referenced by findDevice(), findEntry(), getEntries(), getMatchingEntries(), getSize(), and reload().
1.5.6