#include <Dasd.h>

Public Types | |
| enum | DasdFormat { DASDF_NONE, DASDF_LDL, DASDF_CDL } |
| enum | DasdType { DASDTYPE_NONE, DASDTYPE_ECKD, DASDTYPE_FBA } |
Public Member Functions | |
| Dasd (Storage *s, const string &name, const string &device, unsigned long long Size, SystemInfo &systeminfo) | |
| Dasd (const Dasd &c) | |
| 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) |
| virtual string | defaultLabel () const |
| Text | fdasdText () const |
| Text | dasdfmtText (bool doing) const |
| void | getCommitActions (list< commitAction > &l) const |
| void | getToCommit (storage::CommitStage stage, list< const Container * > &col, list< const Volume * > &vol) const |
| int | commitChanges (storage::CommitStage stage) |
Static Public Member Functions | |
| static Text | dasdfmtTexts (bool doing, const list< string > &devs) |
Protected Member Functions | |
| virtual void | print (std::ostream &s) const |
| virtual Container * | getCopy () const |
| bool | detectPartitionsFdasd (SystemInfo &systeminfo) |
| bool | detectPartitions (SystemInfo &systeminfo) |
| virtual bool | checkPartitionsValid (SystemInfo &systeminfo, const list< Partition * > &pl) const |
| bool | checkFdasdOutput (SystemInfo &systeminfo) |
| void | redetectGeometry () |
| int | doCreate (Volume *v) |
| int | doRemove (Volume *v) |
| int | doFdasd () |
| int | doResize (Volume *v) |
| int | doSetType (Volume *v) |
| int | doCreateLabel () |
| int | doDasdfmt () |
Protected Attributes | |
| DasdFormat | fmt |
Private Member Functions | |
| Dasd & | operator= (const Dasd &) |
Friends | |
| class | Storage |
| std::ostream & | operator<< (std::ostream &, const Dasd &) |
| storage::Dasd::Dasd | ( | Storage * | s, | |
| const string & | name, | |||
| const string & | device, | |||
| unsigned long long | Size, | |||
| SystemInfo & | systeminfo | |||
| ) |
| storage::Dasd::Dasd | ( | const Dasd & | c | ) |
References storage::Device::dev, and y2deb.
| storage::Dasd::~Dasd | ( | ) | [virtual] |
References storage::Device::dev, and y2deb.
| int storage::Dasd::createPartition | ( | storage::PartitionType | type, | |
| long unsigned | start, | |||
| long unsigned | len, | |||
| string & | device, | |||
| bool | checkRelaxed = false | |||
| ) | [virtual] |
Reimplemented from storage::Disk.
| int storage::Dasd::removePartition | ( | unsigned | nr | ) | [virtual] |
| int storage::Dasd::changePartitionId | ( | unsigned | nr, | |
| unsigned | id | |||
| ) | [inline, virtual] |
Reimplemented from storage::Disk.
| int storage::Dasd::resizePartition | ( | Partition * | p, | |
| unsigned long | newCyl | |||
| ) | [virtual] |
| int storage::Dasd::initializeDisk | ( | bool | value | ) | [virtual] |
Reimplemented from storage::Disk.
References storage::IterPair< Iter >::begin(), storage::Disk::destroyPartitionTable(), storage::DISK_REMOVE_PARTITION_LIST_ERASE, storage::IterPair< Iter >::end(), storage::Disk::geometry, storage::Geometry::heads, storage::Disk::init_disk, storage::Disk::new_geometry, storage::Disk::partPair(), storage::Container::removeFromList(), storage::Geometry::sectors, storage::Device::size_k, storage::Geometry::sizeK(), and y2mil.
| string storage::Dasd::defaultLabel | ( | ) | const [virtual] |
| Text storage::Dasd::fdasdText | ( | ) | const |
| Text storage::Dasd::dasdfmtText | ( | bool | doing | ) | const |
| Text storage::Dasd::dasdfmtTexts | ( | bool | doing, | |
| const list< string > & | devs | |||
| ) | [static] |
| void storage::Dasd::getCommitActions | ( | list< commitAction > & | l | ) | const [virtual] |
Reimplemented from storage::Disk.
References dasdfmtText(), storage::DECREASE, storage::Disk::getCommitActions(), storage::Disk::init_disk, storage::Device::name(), storage::Disk::staticType(), and y2mil.
| void storage::Dasd::getToCommit | ( | storage::CommitStage | stage, | |
| list< const Container * > & | col, | |||
| list< const Volume * > & | vol | |||
| ) | const [virtual] |
Reimplemented from storage::Disk.
References storage::IterPair< Iter >::begin(), storage::DECREASE, storage::Device::deleted(), storage::IterPair< Iter >::empty(), storage::Disk::getToCommit(), storage::INCREASE, storage::Disk::init_disk, storage::Container::stageDecrease(), storage::Container::stageIncrease(), storage::Container::volPair(), and y2mil.
| int storage::Dasd::commitChanges | ( | storage::CommitStage | stage | ) | [virtual] |
Reimplemented from storage::Disk.
References storage::Disk::commitChanges(), storage::DECREASE, doDasdfmt(), storage::Disk::init_disk, storage::Device::name(), and y2mil.
| 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 storage::Dasd::detectPartitionsFdasd | ( | SystemInfo & | systeminfo | ) | [protected] |
References checkFdasdOutput(), storage::Container::vols, and y2mil.
Referenced by detectPartitions().
| bool storage::Dasd::detectPartitions | ( | SystemInfo & | systeminfo | ) | [protected, virtual] |
Reimplemented from storage::Disk.
References storage::Container::addToList(), storage::Disk::cylinders(), storage::Disk::cylinderToKb(), DASDF_CDL, DASDF_LDL, storage::Disk::detected_label, detectPartitionsFdasd(), storage::Device::device(), fmt, storage::Disk::geometry, storage::Dasdview::getDasdFormat(), storage::SystemInfo::getDasdview(), storage::Dasdview::getGeometry(), storage::Disk::getPartDevice(), storage::Disk::getPartName(), storage::SystemInfo::getProcParts(), storage::ProcParts::getSize(), storage::Disk::label, storage::Disk::max_primary, storage::Disk::new_geometry, storage::PRIMARY, storage::Container::ronly, storage::Disk::setLabelData(), storage::Volume::setSize(), storage::Device::size_k, storage::Geometry::sizeK(), storage::toString(), storage::Container::vols, and y2mil.
Referenced by doDasdfmt().
| bool storage::Dasd::checkPartitionsValid | ( | SystemInfo & | systeminfo, | |
| const list< Partition * > & | pl | |||
| ) | const [protected, virtual] |
Reimplemented from storage::Disk.
References storage::Partition::detectSysfsBlkRegion(), storage::Device::dev, storage::Disk::geometry, storage::Fdasd::getEntry(), storage::SystemInfo::getFdasd(), storage::SystemInfo::getProcParts(), storage::Fdasd::Entry::headRegion, storage::Geometry::headSize(), storage::Volume::nr(), storage::Disk::partitionsKernelKnowns(), and y2err.
| bool storage::Dasd::checkFdasdOutput | ( | SystemInfo & | systeminfo | ) | [protected] |
References storage::_(), storage::Storage::addInfoPopupText(), storage::Container::addToList(), storage::Disk::checkPartedValid(), storage::Disk::cylinderToKb(), storage::Device::dev, storage::Disk::geometry, storage::Fdasd::getEntries(), storage::SystemInfo::getFdasd(), storage::Fdasd::getGeometry(), storage::Disk::getPartDevice(), storage::Disk::getPartName(), storage::SystemInfo::getProcParts(), storage::ProcParts::getSize(), storage::Container::getStorage(), storage::Device::nm, storage::PRIMARY, storage::Disk::range, storage::Container::ronly, storage::sformat(), y2mil, and y2war.
Referenced by detectPartitionsFdasd().
| 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 storage::Dasd::doFdasd | ( | ) | [protected] |
References storage::IterPair< Iter >::begin(), storage::classic(), storage::Disk::cylinders(), storage::DASD_FDASD_FAILED, storage::decString(), storage::Disk::del_ptable, storage::Device::device(), storage::DISK_REMOVE_PARTITION_LIST_ERASE, storage::Container::end(), storage::IterPair< Iter >::end(), storage::Disk::execCheckFailed(), FDASDBIN, fdasdText(), storage::ProcParts::getSize(), storage::Container::getStorage(), storage::Geometry::heads, storage::Disk::new_geometry, storage::Partition::notDeleted(), storage::Disk::partPair(), storage::quote(), storage::Container::removeFromList(), storage::Storage::showInfoCb(), storage::Device::silent, storage::Storage::tmpDir(), storage::Storage::waitForDevice(), and y2mil.
Referenced by doCreate(), and doRemove().
| int storage::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 storage::Dasd::doDasdfmt | ( | ) | [protected] |
References storage::DASD_DASDFMT_FAILED, DASDFMTBIN, dasdfmtTexts(), detectPartitions(), storage::Device::device(), storage::Disk::execCheckFailed(), storage::Storage::getCallbackProgressBarTheOne(), storage::Storage::getDiskList(), storage::Container::getStorage(), storage::needDasdfmt(), storage::normalizeDevice(), storage::quote(), storage::Disk::removeFromMemory(), storage::Disk::resetInitDisk(), storage::SystemCmd::setOutputProcessor(), storage::Storage::showInfoCb(), storage::Device::silent, storage::undevDevice(), and y2mil.
Referenced by commitChanges().
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 detectPartitions(), and storage::operator<<().
1.5.6