storage::Dm Class Reference

#include <Dm.h>

Inheritance diagram for storage::Dm:

storage::Volume storage::DmPart storage::Evms storage::LvmLv storage::Dmraid

List of all members.

Public Member Functions

 Dm (const PeContainer &d, const string &tn)
 Dm (const PeContainer &d, const string &tn, unsigned mnum)
 Dm (const PeContainer &d, const Dm &rhs)
Dmoperator= (const Dm &)
virtual ~Dm ()
const string & getTableName () const
const string & getTargetName () const
void setTableName (const string &name)
bool inactive () const
unsigned long long getLe () const
void setLe (unsigned long long le)
void modifyPeSize (unsigned long long old, unsigned long long neww)
bool removeTable ()
void calcSize ()
const std::map< string,
unsigned long > & 
getPeMap () const
void setPeMap (const std::map< string, unsigned long > &m)
unsigned long long usingPe (const string &dev) const
bool mapsTo (const string &dev) const
void getTableInfo ()
virtual bool checkConsistency () const
unsigned stripes () const
unsigned setStripes (unsigned long val)
unsigned long long stripeSize () const
void setStripeSize (unsigned long long val)
string sysfsPath () const
void updateMajorMinor ()
virtual void print (std::ostream &s) const
virtual string removeText (bool doing) const
virtual string formatText (bool doing) const
void getInfo (storage::DmInfo &info) const
void changeDeviceName (const string &old, const string &nw)
bool equalContent (const Dm &rhs) const
void logDifference (const Dm &d) const
string stringDifference (const Dm &d) const

Static Public Member Functions

static bool notDeleted (const Dm &l)
static void activate (bool val=true)
static string devToTable (const string &dev)
static string dmName (const string &table)
static int dmNumber (const string &table)
static unsigned dmMajor ()
static string dmDeviceName (unsigned long num)

Protected Member Functions

void init ()
const PeContainerpec () const
virtual const string shortPrintedName () const
string getDevice (const string &majmin)

Static Protected Member Functions

static void getDmMajor ()

Protected Attributes

string tname
string target
unsigned long long num_le
unsigned stripe
unsigned long long stripe_size
bool inactiv
std::map< string, unsigned long > pe_map
storage::DmInfo info

Static Protected Attributes

static bool active = false
static unsigned dm_major = 0
static std::list< string > known_types

Friends

std::ostream & operator<< (std::ostream &s, const Dm &p)


Constructor & Destructor Documentation

Dm::Dm ( const PeContainer d,
const string &  tn 
)

References inactiv, num_le, stripe, stripe_size, and y2debug.

Dm::Dm ( const PeContainer d,
const string &  tn,
unsigned  mnum 
)

Dm::Dm ( const PeContainer d,
const Dm rhs 
)

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

Dm::~Dm (  )  [virtual]

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


Member Function Documentation

Dm & Dm::operator= ( const Dm rhs  ) 

const string& storage::Dm::getTableName (  )  const [inline]

References tname.

const string& storage::Dm::getTargetName (  )  const [inline]

References target.

Referenced by storage::DmCo::getDmData().

void storage::Dm::setTableName ( const string &  name  )  [inline]

References tname.

bool storage::Dm::inactive (  )  const [inline]

References inactiv.

Referenced by storage::LvmVg::addLv().

unsigned long long storage::Dm::getLe (  )  const [inline]

void Dm::setLe ( unsigned long long  le  ) 

void Dm::modifyPeSize ( unsigned long long  old,
unsigned long long  neww 
)

References calcSize(), num_le, and pe_map.

bool Dm::removeTable (  ) 

void Dm::calcSize (  ) 

const std::map<string,unsigned long>& storage::Dm::getPeMap (  )  const [inline]

void Dm::setPeMap ( const std::map< string, unsigned long > &  m  ) 

unsigned long long Dm::usingPe ( const string &  dev  )  const

References pe_map.

bool Dm::mapsTo ( const string &  dev  )  const

void Dm::getTableInfo (  ) 

bool Dm::checkConsistency (  )  const [virtual]

unsigned storage::Dm::stripes (  )  const [inline]

unsigned storage::Dm::setStripes ( unsigned long  val  )  [inline]

References stripe.

unsigned long long storage::Dm::stripeSize (  )  const [inline]

References stripe_size.

void storage::Dm::setStripeSize ( unsigned long long  val  )  [inline]

References stripe_size.

string Dm::sysfsPath (  )  const [virtual]

void Dm::updateMajorMinor (  ) 

virtual void storage::Dm::print ( std::ostream &  s  )  const [inline, virtual]

Reimplemented from storage::Volume.

Reimplemented in storage::DmPart, storage::Dmraid, storage::Evms, and storage::LvmLv.

string Dm::removeText ( bool  doing  )  const [virtual]

string Dm::formatText ( bool  doing  )  const [virtual]

void Dm::getInfo ( storage::DmInfo info  )  const

void Dm::changeDeviceName ( const string &  old,
const string &  nw 
)

References pe_map.

static bool storage::Dm::notDeleted ( const Dm l  )  [inline, static]

void Dm::activate ( bool  val = true  )  [static]

string Dm::devToTable ( const string &  dev  )  [static]

string Dm::dmName ( const string &  table  )  [static]

int Dm::dmNumber ( const string &  table  )  [static]

bool Dm::equalContent ( const Dm rhs  )  const

void Dm::logDifference ( const Dm d  )  const

References stringDifference(), and y2milestone.

string Dm::stringDifference ( const Dm d  )  const

unsigned Dm::dmMajor (  )  [static]

string Dm::dmDeviceName ( unsigned long  num  )  [static]

void Dm::init (  )  [protected]

const PeContainer * Dm::pec (  )  const [protected]

References storage::Volume::cont.

Referenced by calcSize(), getTableInfo(), and mapsTo().

virtual const string storage::Dm::shortPrintedName (  )  const [inline, protected, virtual]

string Dm::getDevice ( const string &  majmin  )  [protected]

void Dm::getDmMajor (  )  [static, protected]


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const Dm p 
) [friend]


Member Data Documentation

string storage::Dm::tname [protected]

string storage::Dm::target [protected]

unsigned long long storage::Dm::num_le [protected]

unsigned storage::Dm::stripe [protected]

unsigned long long storage::Dm::stripe_size [protected]

bool storage::Dm::inactiv [protected]

std::map<string,unsigned long> storage::Dm::pe_map [protected]

bool Dm::active = false [static, protected]

Referenced by activate().

unsigned Dm::dm_major = 0 [static, protected]

list< string > Dm::known_types [static, protected]

Referenced by getTableInfo().

storage::DmInfo storage::Dm::info [mutable, protected]

Reimplemented from storage::Volume.

Reimplemented in storage::DmPart, storage::Evms, and storage::LvmLv.

Referenced by getInfo().


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