storage::Container Class Reference

#include <Container.h>

Inheritance diagram for storage::Container:

storage::Device storage::BtrfsCo storage::Disk storage::LoopCo storage::MdCo storage::MdPartCo storage::NfsCo storage::PeContainer storage::TmpfsCo

List of all members.

Public Types

typedef DerefIterator
< ConstVolPIterator, const
Volume
ConstVolIterator
typedef IterPair
< ConstVolIterator
ConstVolPair

Public Member Functions

bool operator== (const Container &rhs) const
bool operator!= (const Container &rhs) const
bool operator< (const Container &rhs) const
bool operator<= (const Container &rhs) const
bool operator>= (const Container &rhs) const
bool operator> (const Container &rhs) const
virtual bool equalContent (const Container &rhs) const
void logDifference (std::ostream &log, const Container &rhs) const
virtual void logDifferenceWithVolumes (std::ostream &log, const Container &rhs) const =0
virtual void getCommitActions (list< commitAction > &l) const
virtual void getToCommit (storage::CommitStage stage, list< const Container * > &col, list< const Volume * > &vol) const
virtual int commitChanges (storage::CommitStage stage)
virtual int commitChanges (storage::CommitStage stage, Volume *vol)
virtual void changeDeviceName (const string &old, const string &nw)
bool isEmpty () const
void getInfo (storage::ContainerInfo &info) const
bool findVolume (const string &device, Volume *&vol)
ConstVolPair volPair (bool(*CheckFnc)(const Volume &)=NULL) const
ConstVolIterator volBegin (bool(*CheckFnc)(const Volume &)=NULL) const
ConstVolIterator volEnd (bool(*CheckFnc)(const Volume &)=NULL) const
template<class Pred>
VolCondIPair< Pred >::type volCondPair (const Pred &p) const
template<class Pred>
ConstVolumeI< Pred >::type volCondBegin (const Pred &p) const
template<class Pred>
ConstVolumeI< Pred >::type volCondEnd (const Pred &p) const
 Container (Storage *s, const string &name, const string &device, CType typ)
 Container (Storage *s, const string &name, const string &device, CType typ, SystemInfo &systemInfo)
 Container (Storage *s, CType typ, const xmlNode *node)
 Container (const Container &c)
virtual ~Container ()
void saveData (xmlNode *node) const
StoragegetStorage () const
const StoragegetStorageConst () const
CType type () const
bool isPartitionable () const
bool isDeviceUsable () const
bool readonly () const
virtual Text removeText (bool doing) const
virtual Text createText (bool doing) const
virtual int resizeVolume (Volume *v, unsigned long long newSize)
virtual int removeVolume (Volume *v)
virtual ContainergetCopy () const =0
bool compareContainer (const Container &rhs, bool verbose) const
void setExtError (const string &txt) const
void setExtError (const SystemCmd &cmd, bool serr=true) const

Static Public Member Functions

static bool notDeleted (const Container &c)
static bool Partitionable (const Container &d)
static bool DeviceUsable (const Container &d)
static storage::CType staticType ()

Protected Types

typedef std::list< Volume * > VCont
typedef VCont::iterator VIter
typedef VCont::const_iterator CVIter
typedef VCont::reverse_iterator RVIter
typedef
VCont::const_reverse_iterator 
CRVIter
typedef CheckFnc< const VolumeCheckFncVol
typedef CheckerIterator
< CheckFncVol, ConstVolumePI
< CheckFncVol >::type, CVIter,
Volume
ConstVolPIterator
typedef CheckerIterator
< CheckFncVol, VolumePI
< CheckFncVol >::type, VIter,
Volume
VolPIterator
typedef DerefIterator
< VolPIterator, Volume
VolIterator
typedef IterPair< VolIteratorVolPair
typedef CVIter ConstPlainIterator
typedef VIter PlainIterator

Protected Member Functions

VolPair volPair (bool(*CheckFnc)(const Volume &)=NULL)
VolIterator vBegin (bool(*CheckFnc)(const Volume &)=NULL)
VolIterator vEnd (bool(*CheckFnc)(const Volume &)=NULL)
ConstPlainIterator begin () const
ConstPlainIterator end () const
PlainIterator begin ()
PlainIterator end ()
virtual void print (std::ostream &s) const
void addToList (Volume *e)
bool removeFromList (Volume *e)
virtual int doCreate (Volume *v)
virtual int doRemove (Volume *v)
virtual int doResize (Volume *v)
virtual void logData (const string &Dir) const

Static Protected Member Functions

static bool stageDecrease (const Volume &v)
static bool stageIncrease (const Volume &v)
static bool stageFormat (const Volume &v)
static bool stageMount (const Volume &v)

Protected Attributes

Storage *const sto
const CType typ
bool ronly
VCont vols
storage::ContainerInfo info

Private Member Functions

Containeroperator= (const Container &)

Friends

class Storage
class ListListIterator
std::ostream & operator<< (std::ostream &s, const Container &c)

Classes

struct  ConstVolumeI
struct  ConstVolumePI
struct  VolCondIPair
struct  VolumeI
struct  VolumePI


Member Typedef Documentation

typedef std::list<Volume*> storage::Container::VCont [protected]

typedef VCont::iterator storage::Container::VIter [protected]

typedef VCont::const_iterator storage::Container::CVIter [protected]

typedef VCont::reverse_iterator storage::Container::RVIter [protected]

typedef VCont::const_reverse_iterator storage::Container::CRVIter [protected]

typedef CheckFnc<const Volume> storage::Container::CheckFncVol [protected]


Constructor & Destructor Documentation

storage::Container::Container ( Storage s,
const string &  name,
const string &  device,
CType  typ 
)

storage::Container::Container ( Storage s,
const string &  name,
const string &  device,
CType  typ,
SystemInfo systemInfo 
)

storage::Container::Container ( Storage s,
CType  typ,
const xmlNode *  node 
)

storage::Container::Container ( const Container c  ) 

References storage::Device::dev, and y2deb.

storage::Container::~Container (  )  [virtual]


Member Function Documentation

bool storage::Container::operator== ( const Container rhs  )  const [inline]

bool storage::Container::operator!= ( const Container rhs  )  const [inline]

bool storage::Container::operator< ( const Container rhs  )  const [inline]

bool storage::Container::operator<= ( const Container rhs  )  const [inline]

bool storage::Container::operator>= ( const Container rhs  )  const [inline]

bool storage::Container::operator> ( const Container rhs  )  const [inline]

bool storage::Container::equalContent ( const Container rhs  )  const [virtual]

void storage::Container::logDifference ( std::ostream &  log,
const Container rhs 
) const

virtual void storage::Container::logDifferenceWithVolumes ( std::ostream &  log,
const Container rhs 
) const [pure virtual]

void storage::Container::getCommitActions ( list< commitAction > &  l  )  const [virtual]

void storage::Container::getToCommit ( storage::CommitStage  stage,
list< const Container * > &  col,
list< const Volume * > &  vol 
) const [virtual]

int storage::Container::commitChanges ( storage::CommitStage  stage  )  [virtual]

int storage::Container::commitChanges ( storage::CommitStage  stage,
Volume vol 
) [virtual]

virtual void storage::Container::changeDeviceName ( const string &  old,
const string &  nw 
) [inline, virtual]

bool storage::Container::isEmpty (  )  const

void storage::Container::getInfo ( storage::ContainerInfo info  )  const

bool storage::Container::findVolume ( const string &  device,
Volume *&  vol 
)

static bool storage::Container::notDeleted ( const Container c  )  [inline, static]

ConstVolPair storage::Container::volPair ( bool(*)(const Volume &)  CheckFnc = NULL  )  const [inline]

ConstVolIterator storage::Container::volBegin ( bool(*)(const Volume &)  CheckFnc = NULL  )  const [inline]

References vols.

Referenced by volPair().

ConstVolIterator storage::Container::volEnd ( bool(*)(const Volume &)  CheckFnc = NULL  )  const [inline]

References vols.

Referenced by volPair().

template<class Pred>
VolCondIPair<Pred>::type storage::Container::volCondPair ( const Pred &  p  )  const [inline]

References volCondBegin(), and volCondEnd().

template<class Pred>
ConstVolumeI<Pred>::type storage::Container::volCondBegin ( const Pred &  p  )  const [inline]

References vols.

Referenced by volCondPair().

template<class Pred>
ConstVolumeI<Pred>::type storage::Container::volCondEnd ( const Pred &  p  )  const [inline]

References vols.

Referenced by volCondPair().

VolPair storage::Container::volPair ( bool(*)(const Volume &)  CheckFnc = NULL  )  [inline, protected]

References vBegin(), and vEnd().

VolIterator storage::Container::vBegin ( bool(*)(const Volume &)  CheckFnc = NULL  )  [inline, protected]

References vols.

Referenced by storage::Storage::checkNfsDevice(), and volPair().

VolIterator storage::Container::vEnd ( bool(*)(const Volume &)  CheckFnc = NULL  )  [inline, protected]

References vols.

Referenced by volPair().

void storage::Container::saveData ( xmlNode *  node  )  const

Storage* storage::Container::getStorage (  )  const [inline]

References sto.

Referenced by storage::PeContainer::addPv(), storage::LvmVg::addPv(), storage::DmraidCo::addPv(), storage::DmmultipathCo::addPv(), storage::Dasd::checkFdasdOutput(), storage::Disk::checkPartedOutput(), storage::MdCo::checkUse(), storage::Btrfs::clearSignature(), storage::MdPartCo::createDisk(), storage::DmPartCo::createDisk(), storage::Disk::defaultLabel(), storage::MdPartCo::destroyPartitionTable(), storage::DmPartCo::destroyPartitionTable(), storage::Disk::destroyPartitionTable(), storage::BtrfsCo::deviceToUuid(), storage::MdPartCo::doCreate(), storage::MdCo::doCreate(), storage::LvmVg::doCreate(), storage::LoopCo::doCreate(), storage::DmPartCo::doCreate(), storage::Disk::doCreate(), storage::MdPartCo::doCreateLabel(), storage::DmPartCo::doCreateLabel(), storage::Disk::doCreateLabel(), storage::LvmVg::doCreatePv(), storage::LvmVg::doCreateVg(), storage::Dasd::doDasdfmt(), storage::LvmVg::doExtendVg(), storage::Dasd::doFdasd(), storage::LvmVg::doReduceVg(), storage::TmpfsCo::doRemove(), storage::NfsCo::doRemove(), storage::MdPartCo::doRemove(), storage::MdCo::doRemove(), storage::LvmVg::doRemove(), storage::LoopCo::doRemove(), storage::DmraidCo::doRemove(), storage::DmPartCo::doRemove(), storage::DmCo::doRemove(), storage::Disk::doRemove(), storage::BtrfsCo::doRemove(), storage::LvmVg::doRemoveVg(), storage::MdPartCo::doResize(), storage::LvmVg::doResize(), storage::DmPartCo::doResize(), storage::Disk::doResize(), storage::MdPartCo::doSetType(), storage::DmPartCo::doSetType(), storage::Disk::doSetType(), storage::Disk::execCheckFailed(), storage::MdCo::extendMd(), storage::LvmVg::extendVg(), storage::PeContainer::findPe(), storage::BtrfsCo::getBtrfsData(), storage::PeContainer::getDeviceByNumber(), storage::DmCo::getDmData(), storage::LoopCo::getLoopData(), storage::Disk::getPartedSectors(), storage::Disk::getPartedValues(), storage::Volume::getStorage(), storage::MdPartCo::getToCommit(), storage::DmPartCo::getToCommit(), storage::LvmVg::getVgData(), storage::MdPartCo::initMd(), storage::LvmVg::instSysString(), storage::MdCo::isHandledByMdPart(), storage::TmpfsCo::logData(), storage::LvmVg::logData(), storage::Disk::logData(), storage::BtrfsCo::logData(), storage::LvmVg::normalizeDmDevices(), storage::DmCo::removeDm(), storage::LvmVg::removeLv(), storage::MdCo::removeMd(), storage::Disk::removePartition(), storage::MdPartCo::removeVolume(), storage::DmPartCo::removeVolume(), storage::PeContainer::tryUnusePe(), storage::PeContainer::unuseDev(), storage::Btrfs::unuseDev(), storage::MdPartCo::unuseDevs(), and storage::Partition::zeroIfNeeded().

const Storage* storage::Container::getStorageConst (  )  const [inline]

References sto.

CType storage::Container::type (  )  const [inline]

bool storage::Container::isPartitionable (  )  const

static bool storage::Container::Partitionable ( const Container d  )  [inline, static]

References isPartitionable().

bool storage::Container::isDeviceUsable (  )  const

static bool storage::Container::DeviceUsable ( const Container d  )  [inline, static]

bool storage::Container::readonly (  )  const [inline]

Text storage::Container::removeText ( bool  doing  )  const [virtual]

Text storage::Container::createText ( bool  doing  )  const [virtual]

int storage::Container::resizeVolume ( Volume v,
unsigned long long  newSize 
) [virtual]

int storage::Container::removeVolume ( Volume v  )  [virtual]

static storage::CType storage::Container::staticType (  )  [inline, static]

virtual Container* storage::Container::getCopy (  )  const [pure virtual]

bool storage::Container::compareContainer ( const Container rhs,
bool  verbose 
) const

void storage::Container::setExtError ( const string &  txt  )  const

void storage::Container::setExtError ( const SystemCmd cmd,
bool  serr = true 
) const

ConstPlainIterator storage::Container::begin (  )  const [inline, protected]

ConstPlainIterator storage::Container::end (  )  const [inline, protected]

PlainIterator storage::Container::begin (  )  [inline, protected]

References vols.

PlainIterator storage::Container::end (  )  [inline, protected]

References vols.

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

void storage::Container::addToList ( Volume e  )  [protected]

bool storage::Container::removeFromList ( Volume e  )  [protected]

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

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

int storage::Container::doResize ( Volume v  )  [protected, virtual]

virtual void storage::Container::logData ( const string &  Dir  )  const [inline, protected, virtual]

bool storage::Container::stageDecrease ( const Volume v  )  [static, protected]

bool storage::Container::stageIncrease ( const Volume v  )  [static, protected]

bool storage::Container::stageFormat ( const Volume v  )  [static, protected]

bool storage::Container::stageMount ( const Volume v  )  [static, protected]

Container& storage::Container::operator= ( const Container  )  [private]


Friends And Related Function Documentation

friend class Storage [friend]

friend class ListListIterator [friend]

std::ostream& operator<< ( std::ostream &  s,
const Container c 
) [friend]


Member Data Documentation

Storage* const storage::Container::sto [protected]

const CType storage::Container::typ [protected]

bool storage::Container::ronly [protected]


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

Generated on Mon Feb 6 10:42:57 2012 for yast2-storage by  doxygen 1.5.6