yast2-storage
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Friends

storage::Dasd Class Reference

#include <Dasd.h>

Inheritance diagram for storage::Dasd:
storage::Disk storage::Container storage::Device

List of all members.

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 ContainergetCopy () 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

Dasdoperator= (const Dasd &)

Friends

class Storage
std::ostream & operator<< (std::ostream &, const Dasd &)

Member Enumeration Documentation

Enumerator:
DASDF_NONE 
DASDF_LDL 
DASDF_CDL 
Enumerator:
DASDTYPE_NONE 
DASDTYPE_ECKD 
DASDTYPE_FBA 

Constructor & Destructor Documentation

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().


Member Function Documentation

int storage::Dasd::changePartitionId ( unsigned  nr,
unsigned  id 
) [inline, virtual]

Reimplemented from storage::Disk.

bool storage::Dasd::checkFdasdOutput ( SystemInfo systeminfo) [protected]
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]
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]
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]
Dasd& storage::Dasd::operator= ( const Dasd ) [private]
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]
int storage::Dasd::resizePartition ( Partition p,
unsigned long  newCyl 
) [virtual]

Reimplemented from storage::Disk.

References removePartition(), and y2mil.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const Dasd d 
) [friend]
friend class Storage [friend]

Reimplemented from storage::Disk.


Member Data Documentation


The documentation for this class was generated from the following files: