storage::Dasd Class Reference

#include <Dasd.h>

Inheritance diagram for storage::Dasd:

storage::Disk storage::Container

List of all members.

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 ContainergetCopy () 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 ()
Dasdoperator= (const Dasd &rhs)

Protected Attributes

DasdFormat fmt

Friends

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


Member Enumeration Documentation

enum storage::Dasd::DasdFormat [protected]

Enumerator:
DASDF_NONE 
DASDF_LDL 
DASDF_CDL 


Constructor & Destructor Documentation

Dasd::Dasd ( Storage *const   s,
const string &  Name,
unsigned long long  Size 
)

References DASDF_NONE, storage::Container::dev, fmt, and y2debug.

Referenced by getCopy().

Dasd::Dasd ( const Dasd rhs  ) 

Dasd::~Dasd (  )  [virtual]

References storage::Container::dev, and y2debug.


Member Function Documentation

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]

Reimplemented from storage::Disk.

References storage::DASD_NOT_POSSIBLE.

int Dasd::initializeDisk ( bool  value  )  [virtual]

string Dasd::fdasdText (  )  const

string Dasd::dasdfmtText ( bool  doing  )  const

string Dasd::dasdfmtTexts ( bool  single,
const string &  devs 
) [static]

References storage::_(), and storage::sformat().

Referenced by dasdfmtText(), and doDasdfmt().

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]

bool Dasd::detectGeometry (  )  [virtual]

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]

Reimplemented from storage::Disk.

References Dasd().

bool Dasd::detectPartitionsFdasd ( ProcPart ppart  )  [protected]

bool Dasd::detectPartitions ( ProcPart ppart  )  [protected, virtual]

bool Dasd::checkFdasdOutput ( SystemCmd Cmd,
ProcPart ppart 
) [protected]

bool Dasd::scanFdasdLine ( const string &  Line,
unsigned &  nr,
unsigned long &  start,
unsigned long &  csize 
) [protected]

void Dasd::getGeometry ( SystemCmd cmd,
unsigned long &  c,
unsigned &  h,
unsigned &  s 
) [protected]

void storage::Dasd::redetectGeometry (  )  [inline, protected, virtual]

Reimplemented from storage::Disk.

int storage::Dasd::doCreate ( Volume v  )  [inline, protected, virtual]

Reimplemented from storage::Disk.

References doFdasd().

int storage::Dasd::doRemove ( Volume v  )  [inline, protected, virtual]

Reimplemented from storage::Disk.

References doFdasd(), and storage::Disk::init_disk.

int Dasd::doFdasd (  )  [protected]

int 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.

int storage::Dasd::doCreateLabel (  )  [inline, protected, virtual]

Reimplemented from storage::Disk.

int Dasd::doDasdfmt (  )  [protected]

Dasd & Dasd::operator= ( const Dasd rhs  )  [protected]

References fmt, storage::Container::nm, and y2debug.


Friends And Related Function Documentation

friend class Storage [friend]

Reimplemented from storage::Disk.

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


Member Data Documentation


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

Generated on Sun Jun 8 10:48:03 2008 for yast2-storage by  doxygen 1.5.5