#include <Parted.h>
Public Types | |
| typedef vector< Entry > ::const_iterator | const_iterator |
Public Member Functions | |
| Parted (const string &device) | |
| const string & | getLabel () const |
| const Geometry & | getGeometry () const |
| bool | getGptEnlarge () const |
| const vector< Entry > & | getEntries () const |
| bool | getEntry (unsigned num, Entry &entry) const |
Private Types | |
| typedef vector< Entry >::iterator | iterator |
Private Member Functions | |
| void | scanSectorSizeLine (const string &line) |
| void | scanGeometryLine (const string &line) |
| void | scanCylEntryLine (const string &line) |
| void | scanSecEntryLine (const string &line) |
Private Attributes | |
| string | label |
| Geometry | geometry |
| bool | gpt_enlarge |
| vector< Entry > | entries |
Classes | |
| struct | Entry |
| typedef vector<Entry>::const_iterator storage::Parted::const_iterator |
typedef vector<Entry>::iterator storage::Parted::iterator [private] |
| storage::Parted::Parted | ( | const string & | device | ) |
References entries, storage::extractNthWord(), geometry, storage::SystemCmd::getLine(), gpt_enlarge, label, LABEL_GPT_SYNC_MBR, PARTEDCMD, storage::quote(), scanCylEntryLine(), scanGeometryLine(), scanSecEntryLine(), scanSectorSizeLine(), storage::SystemCmd::select(), storage::SystemCmd::stdout(), y2err, y2mil, and y2war.
| const string& storage::Parted::getLabel | ( | ) | const [inline] |
References label.
Referenced by storage::Disk::detectPartitions(), and storage::MdPartCo::hasPartitionTable().
| const Geometry& storage::Parted::getGeometry | ( | ) | const [inline] |
References geometry.
Referenced by storage::Disk::detectPartitions(), and storage::Disk::redetectGeometry().
| bool storage::Parted::getGptEnlarge | ( | ) | const [inline] |
| const vector<Entry>& storage::Parted::getEntries | ( | ) | const [inline] |
| bool storage::Parted::getEntry | ( | unsigned | num, | |
| Entry & | entry | |||
| ) | const |
References entries.
Referenced by storage::Disk::checkPartitionsValid(), storage::Disk::getPartedSectors(), and storage::Disk::getPartedValues().
| void storage::Parted::scanSectorSizeLine | ( | const string & | line | ) | [private] |
References storage::extractNthWord(), geometry, storage::Geometry::sector_size, storage::splitString(), and y2war.
Referenced by Parted().
| void storage::Parted::scanGeometryLine | ( | const string & | line | ) | [private] |
References storage::Geometry::cylinders, storage::extractNthWord(), geometry, storage::Geometry::heads, storage::Geometry::sectors, storage::splitString(), and y2err.
Referenced by Parted().
| void storage::Parted::scanCylEntryLine | ( | const string & | line | ) | [private] |
References storage::Parted::Entry::boot, storage::classic(), storage::contains(), storage::contains_if(), storage::Geometry::cylinders, storage::Parted::Entry::cylRegion, entries, storage::EXTENDED, storage::find_if(), geometry, storage::Parted::Entry::id, storage::Partition::ID_APPLE_HFS, storage::Partition::ID_APPLE_OTHER, storage::Partition::ID_APPLE_UFS, storage::Partition::ID_DOS32, storage::Partition::ID_EXTENDED, storage::Partition::ID_GPT_BOOT, storage::Partition::ID_GPT_MSFTRES, storage::Partition::ID_GPT_SERVICE, storage::Partition::ID_LINUX, storage::Partition::ID_LVM, storage::Partition::ID_NTFS, storage::Partition::ID_RAID, storage::Partition::ID_SWAP, label, storage::LOGICAL, storage::Parted::Entry::num, storage::splitString(), storage::toString(), storage::Parted::Entry::type, y2err, and y2mil.
Referenced by Parted().
| void storage::Parted::scanSecEntryLine | ( | const string & | line | ) | [private] |
string storage::Parted::label [private] |
Referenced by getLabel(), Parted(), and scanCylEntryLine().
Geometry storage::Parted::geometry [private] |
Referenced by getGeometry(), Parted(), scanCylEntryLine(), scanGeometryLine(), and scanSectorSizeLine().
bool storage::Parted::gpt_enlarge [private] |
Referenced by getGptEnlarge(), and Parted().
vector<Entry> storage::Parted::entries [private] |
Referenced by getEntries(), getEntry(), Parted(), scanCylEntryLine(), and scanSecEntryLine().
1.5.6