|
yast2-storage
|
#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 | ||
| ) |
Referenced by print().
| storage::Dasd::Dasd | ( | const Dasd & | c | ) |
| storage::Dasd::~Dasd | ( | ) | [virtual] |
References checkFdasdOutput().
| int storage::Dasd::changePartitionId | ( | unsigned | nr, |
| unsigned | id | ||
| ) | [inline, virtual] |
Reimplemented from storage::Disk.
| bool storage::Dasd::checkFdasdOutput | ( | SystemInfo & | systeminfo | ) | [protected] |
References storage::Disk::cylinderToKb(), storage::Disk::getPartDevice(), storage::Disk::getPartName(), storage::PRIMARY, storage::Disk::range, and y2war.
Referenced by ~Dasd().
| bool storage::Dasd::checkPartitionsValid | ( | SystemInfo & | systeminfo, |
| const list< Partition * > & | pl | ||
| ) | const [protected, virtual] |
Reimplemented from storage::Disk.
| int storage::Dasd::commitChanges | ( | storage::CommitStage | stage | ) | [virtual] |
Reimplemented from storage::Disk.
References doDasdfmt().
| int storage::Dasd::createPartition | ( | storage::PartitionType | type, |
| long unsigned | start, | ||
| long unsigned | len, | ||
| string & | device, | ||
| bool | checkRelaxed = false |
||
| ) | [virtual] |
Reimplemented from storage::Disk.
| Text storage::Dasd::dasdfmtText | ( | bool | doing | ) | const |
Referenced by getCommitActions().
| Text storage::Dasd::dasdfmtTexts | ( | bool | doing, |
| const list< string > & | devs | ||
| ) | [static] |
References storage::_(), and storage::sformat().
Referenced by doDasdfmt().
| string storage::Dasd::defaultLabel | ( | ) | const [virtual] |
Reimplemented from storage::Disk.
| bool storage::Dasd::detectPartitions | ( | SystemInfo & | systeminfo | ) | [protected, virtual] |
Reimplemented from storage::Disk.
Referenced by doDasdfmt().
| bool storage::Dasd::detectPartitionsFdasd | ( | SystemInfo & | systeminfo | ) | [protected] |
| int storage::Dasd::doCreate | ( | Volume * | v | ) | [inline, protected, virtual] |
Reimplemented from storage::Disk.
References doFdasd(), and storage::Disk::init_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::Disk::execCheckFailed(), storage::Storage::getCallbackProgressBarTheOne(), storage::Container::getStorage(), 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().
| int storage::Dasd::doFdasd | ( | ) | [protected] |
Referenced by doCreate(), and redetectGeometry().
| int storage::Dasd::doRemove | ( | Volume * | v | ) | [inline, protected, virtual] |
Reimplemented from storage::Disk.
| int storage::Dasd::doResize | ( | Volume * | v | ) | [protected, virtual] |
Reimplemented from storage::Disk.
References storage::DASD_NOT_POSSIBLE.
| int storage::Dasd::doSetType | ( | Volume * | v | ) | [inline, protected, virtual] |
Reimplemented from storage::Disk.
| Text storage::Dasd::fdasdText | ( | ) | const |
| void storage::Dasd::getCommitActions | ( | list< commitAction > & | l | ) | const [virtual] |
Reimplemented from storage::Disk.
References dasdfmtText(), storage::DECREASE, and storage::Disk::staticType().
| virtual Container* storage::Dasd::getCopy | ( | ) | const [inline, protected, virtual] |
Reimplemented from storage::Disk.
| void storage::Dasd::getToCommit | ( | storage::CommitStage | stage, |
| list< const Container * > & | col, | ||
| list< const Volume * > & | vol | ||
| ) | const [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.
| virtual void storage::Dasd::print | ( | std::ostream & | s | ) | const [inline, protected, virtual] |
Reimplemented from storage::Disk.
References Dasd().
| void storage::Dasd::redetectGeometry | ( | ) | [inline, protected, virtual] |
Reimplemented from storage::Disk.
References doFdasd().
| int storage::Dasd::removePartition | ( | unsigned | nr | ) | [virtual] |
Reimplemented from storage::Disk.
References storage::IterPair< Iter >::begin(), storage::Disk::changeNumbers(), storage::IterPair< Iter >::end(), storage::Partition::notDeleted(), and storage::Disk::partPair().
Referenced by resizePartition().
| int storage::Dasd::resizePartition | ( | Partition * | p, |
| unsigned long | newCyl | ||
| ) | [virtual] |
Reimplemented from storage::Disk.
References removePartition(), and y2mil.
| std::ostream& operator<< | ( | std::ostream & | s, |
| const Dasd & | d | ||
| ) | [friend] |
friend class Storage [friend] |
Reimplemented from storage::Disk.
DasdFormat storage::Dasd::fmt [protected] |
1.7.3