#include <Dasd.h>

Public Member Functions | |
| Dasd (Storage *const s, const string &Name, unsigned long long Size) | |
| Dasd (const Dasd &rhs) | |
| virtual | ~Dasd () |
| int | createPartition (storage::PartitionType type, long unsigned start, long unsigned len, string &device, bool checkRelaxed=false) |
| int | removePartition (unsigned nr) |
| int | changePartitionId (unsigned nr, unsigned id) |
| int | resizePartition (Partition *p, unsigned long newCyl) |
| int | initializeDisk (bool value) |
| string | fdasdText () const |
| string | dasdfmtText (bool doing) const |
| void | getCommitActions (std::list< storage::commitAction * > &l) const |
| int | getToCommit (storage::CommitStage stage, std::list< Container * > &col, std::list< Volume * > &vol) |
| int | commitChanges (storage::CommitStage stage) |
| bool | detectGeometry () |
Static Public Member Functions | |
| static string | dasdfmtTexts (bool single, const string &devs) |
Protected Types | |
| enum | DasdFormat { DASDF_NONE, DASDF_LDL, DASDF_CDL } |
Protected Member Functions | |
| virtual void | print (std::ostream &s) const |
| virtual Container * | getCopy () const |
| bool | detectPartitionsFdasd (ProcPart &ppart) |
| bool | detectPartitions (ProcPart &ppart) |
| bool | checkFdasdOutput (SystemCmd &Cmd, ProcPart &ppart) |
| bool | scanFdasdLine (const string &Line, unsigned &nr, unsigned long &start, unsigned long &csize) |
| void | getGeometry (SystemCmd &cmd, unsigned long &c, unsigned &h, unsigned &s) |
| void | redetectGeometry () |
| int | doCreate (Volume *v) |
| int | doRemove (Volume *v) |
| int | doFdasd () |
| int | doResize (Volume *v) |
| int | doSetType (Volume *v) |
| int | doCreateLabel () |
| int | doDasdfmt () |
| Dasd & | operator= (const Dasd &rhs) |
Protected Attributes | |
| DasdFormat | fmt |
Friends | |
| class | Storage |
| std::ostream & | operator<< (std::ostream &, const Dasd &) |
enum storage::Dasd::DasdFormat [protected] |
| Dasd::Dasd | ( | Storage *const | s, | |
| const string & | Name, | |||
| unsigned long long | Size | |||
| ) |
| Dasd::Dasd | ( | const Dasd & | rhs | ) |
References DASDF_NONE, fmt, storage::Container::nm, and y2debug.
| Dasd::~Dasd | ( | ) | [virtual] |
References storage::Container::dev, and y2debug.
| int storage::Dasd::createPartition | ( | storage::PartitionType | type, | |
| long unsigned | start, | |||
| long unsigned | len, | |||
| string & | device, | |||
| bool | checkRelaxed = false | |||
| ) | [virtual] |
Reimplemented from storage::Disk.
| int Dasd::removePartition | ( | unsigned | nr | ) | [virtual] |
| int storage::Dasd::changePartitionId | ( | unsigned | nr, | |
| unsigned | id | |||
| ) | [inline, virtual] |
Reimplemented from storage::Disk.
| int Dasd::resizePartition | ( | Partition * | p, | |
| unsigned long | newCyl | |||
| ) | [virtual] |
| int Dasd::initializeDisk | ( | bool | value | ) | [virtual] |
Reimplemented from storage::Disk.
References storage::IterPair< Iter >::begin(), storage::Disk::byte_cyl, storage::Disk::cyl, storage::Disk::destroyPartitionTable(), storage::DISK_REMOVE_PARTITION_LIST_ERASE, storage::IterPair< Iter >::end(), storage::Disk::head, storage::Disk::init_disk, storage::Disk::new_head, storage::Disk::new_sector, storage::Disk::partPair(), storage::Container::removeFromList(), storage::Disk::sector, storage::Container::size_k, and y2milestone.
| string Dasd::fdasdText | ( | ) | const |
| string Dasd::dasdfmtText | ( | bool | doing | ) | const |
References storage::_(), dasdfmtTexts(), storage::Container::dev, and storage::sformat().
| string Dasd::dasdfmtTexts | ( | bool | single, | |
| const string & | devs | |||
| ) | [static] |
| void storage::Dasd::getCommitActions | ( | std::list< storage::commitAction * > & | l | ) | const [virtual] |
Reimplemented from storage::Disk.
| int storage::Dasd::getToCommit | ( | storage::CommitStage | stage, | |
| std::list< Container * > & | col, | |||
| std::list< Volume * > & | vol | |||
| ) | [virtual] |
Reimplemented from storage::Disk.
| int Dasd::commitChanges | ( | storage::CommitStage | stage | ) | [virtual] |
Reimplemented from storage::Disk.
References storage::Disk::commitChanges(), storage::DECREASE, doDasdfmt(), storage::Disk::init_disk, storage::Container::name(), and y2milestone.
| bool Dasd::detectGeometry | ( | ) | [virtual] |
Reimplemented from storage::Disk.
References storage::Disk::byte_cyl, storage::Disk::cyl, storage::Disk::detectGeometry(), storage::Disk::sector, and y2milestone.
| virtual void storage::Dasd::print | ( | std::ostream & | s | ) | const [inline, protected, virtual] |
Reimplemented from storage::Disk.
| virtual Container* storage::Dasd::getCopy | ( | ) | const [inline, protected, virtual] |
| bool Dasd::detectPartitionsFdasd | ( | ProcPart & | ppart | ) | [protected] |
References checkFdasdOutput(), storage::Container::device(), storage::Disk::system_stderr, storage::Container::vols, and y2milestone.
Referenced by detectPartitions().
| bool Dasd::detectPartitions | ( | ProcPart & | ppart | ) | [protected, virtual] |
Reimplemented from storage::Disk.
References storage::Container::addToList(), storage::Disk::byte_cyl, storage::Disk::cyl, storage::Disk::cylinderToKb(), DASDF_CDL, DASDF_LDL, storage::Disk::detected_label, detectPartitionsFdasd(), storage::Volume::device(), storage::Container::device(), storage::extractNthWord(), fmt, getGeometry(), storage::ProcPart::getSize(), storage::Disk::head, storage::Partition::ID_LINUX, storage::Disk::label, storage::Disk::max_primary, storage::Disk::new_cyl, storage::Disk::new_head, storage::Disk::new_sector, storage::PRIMARY, storage::Container::ronly, storage::Disk::sector, storage::Disk::setLabelData(), storage::Volume::setSize(), storage::Container::size_k, storage::Disk::system_stderr, storage::tolower(), storage::Container::vols, y2mil, and y2milestone.
Referenced by doDasdfmt().
References storage::_(), storage::Storage::addInfoPopupText(), storage::Container::addToList(), storage::Disk::checkPartedValid(), storage::Disk::cylinderToKb(), storage::Container::dev, storage::Volume::device(), storage::Container::device(), storage::extractNthWord(), storage::SystemCmd::getLine(), storage::ProcPart::getMatchingEntries(), storage::ProcPart::getSize(), storage::Container::getStorage(), storage::Partition::ID_LINUX, storage::Regex::match(), storage::Container::nm, storage::SystemCmd::numLines(), storage::PRIMARY, storage::Disk::range, storage::Container::ronly, scanFdasdLine(), storage::SystemCmd::select(), storage::Volume::setSize(), storage::sformat(), y2mil, and y2warning.
Referenced by detectPartitionsFdasd().
| bool Dasd::scanFdasdLine | ( | const string & | Line, | |
| unsigned & | nr, | |||
| unsigned long & | start, | |||
| unsigned long & | csize | |||
| ) | [protected] |
References storage::Disk::cylinders(), storage::Container::device(), storage::Disk::head, y2debug, and y2milestone.
Referenced by checkFdasdOutput().
| void Dasd::getGeometry | ( | SystemCmd & | cmd, | |
| unsigned long & | c, | |||
| unsigned & | h, | |||
| unsigned & | s | |||
| ) | [protected] |
References storage::extractNthWord(), storage::SystemCmd::getLine(), storage::SystemCmd::select(), y2mil, and y2milestone.
Referenced by detectPartitions().
| void storage::Dasd::redetectGeometry | ( | ) | [inline, protected, virtual] |
Reimplemented from storage::Disk.
| int storage::Dasd::doCreate | ( | Volume * | v | ) | [inline, protected, virtual] |
| int storage::Dasd::doRemove | ( | Volume * | v | ) | [inline, protected, virtual] |
| int Dasd::doFdasd | ( | ) | [protected] |
References storage::Disk::cylinders(), storage::DASD_FDASD_FAILED, storage::decString(), storage::Container::device(), storage::DISK_REMOVE_PARTITION_LIST_ERASE, storage::Container::end(), storage::Disk::execCheckFailed(), fdasdText(), storage::ProcPart::getSize(), storage::Container::getStorage(), storage::Disk::new_head, storage::Disk::notDeleted(), storage::Disk::partPair(), storage::Container::removeFromList(), storage::Storage::showInfoCb(), storage::Container::silent, storage::Storage::tmpDir(), storage::Storage::waitForDevice(), and y2milestone.
Referenced by doCreate(), and doRemove().
| int Dasd::doResize | ( | Volume * | v | ) | [protected, virtual] |
| int storage::Dasd::doSetType | ( | Volume * | v | ) | [inline, protected, virtual] |
Reimplemented from storage::Disk.
| int storage::Dasd::doCreateLabel | ( | ) | [inline, protected, virtual] |
Reimplemented from storage::Disk.
| int Dasd::doDasdfmt | ( | ) | [protected] |
References storage::DASD_DASDFMT_FAILED, dasdfmtTexts(), detectPartitions(), storage::Container::device(), storage::Disk::execCheckFailed(), storage::Storage::getCallbackProgressBarTheOne(), storage::Storage::getDiskList(), storage::Container::getStorage(), storage::mergeString(), needDasdfmt(), storage::normalizeDevice(), storage::Disk::removeFromMemory(), storage::Disk::resetInitDisk(), storage::SystemCmd::setOutputProcessor(), storage::Storage::showInfoCb(), storage::Container::silent, storage::undevDevice(), y2mil, and y2milestone.
Referenced by commitChanges().
References fmt, storage::Container::nm, and y2debug.
friend class Storage [friend] |
Reimplemented from storage::Disk.
| std::ostream& operator<< | ( | std::ostream & | s, | |
| const Dasd & | d | |||
| ) | [friend] |
DasdFormat storage::Dasd::fmt [protected] |
Referenced by Dasd(), detectPartitions(), storage::operator<<(), and operator=().
1.5.5