#include <DmraidCo.h>

Public Member Functions | |
| DmraidCo (Storage *const s, const string &Name, ProcPart &ppart) | |
| DmraidCo (Storage *const s, const string &Name, unsigned num, unsigned long long Size, ProcPart &ppart) | |
| DmraidCo (const DmraidCo &rhs) | |
| virtual | ~DmraidCo () |
| void | getInfo (storage::DmraidCoInfo &info) const |
| void | setUdevData (const string &id) |
| bool | equalContent (const Container &rhs) const |
| string | getDiffString (const Container &d) const |
| DmraidCo & | operator= (const DmraidCo &rhs) |
Static Public Member Functions | |
| static storage::CType | staticType () |
Protected Types | |
| typedef CastIterator< VIter, Dmraid * > | DmraidInter |
| typedef CastIterator< CVIter, const Dmraid * > | DmraidCInter |
| typedef CheckFnc< const Dmraid > | CheckFncDmraid |
| typedef CheckerIterator < CheckFncDmraid, DmraidPI < CheckFncDmraid >::type, DmraidInter, Dmraid > | DmraidPIterator |
| typedef CheckerIterator < CheckFncDmraid, DmraidCPI < CheckFncDmraid >::type, DmraidCInter, const Dmraid > | DmraidCPIterator |
| typedef DerefIterator < DmraidPIterator, Dmraid > | DmraidIter |
| typedef DerefIterator < DmraidCPIterator, const Dmraid > | ConstDmraidIter |
| typedef IterPair< DmraidIter > | DmraidPair |
| typedef IterPair< ConstDmraidIter > | ConstDmraidPair |
Protected Member Functions | |
| DmraidPair | dmraidPair (bool(*CheckDmraid)(const Dmraid &)=NULL) |
| DmraidIter | dmraidBegin (bool(*CheckDmraid)(const Dmraid &)=NULL) |
| DmraidIter | dmraidEnd (bool(*CheckDmraid)(const Dmraid &)=NULL) |
| ConstDmraidPair | dmraidPair (bool(*CheckDmraid)(const Dmraid &)=NULL) const |
| ConstDmraidIter | dmraidBegin (bool(*CheckDmraid)(const Dmraid &)=NULL) const |
| ConstDmraidIter | dmraidEnd (bool(*CheckDmraid)(const Dmraid &)=NULL) const |
| DmraidCo (Storage *const s, const string &File) | |
| virtual void | print (std::ostream &s) const |
| virtual Container * | getCopy () const |
| void | getRaidData (const string &name) |
| void | addRaid (const string &name) |
| void | addPv (Pv *&p) |
| void | newP (DmPart *&dm, unsigned num, Partition *p) |
| string | removeText (bool doing) const |
| string | setDiskLabelText (bool doing) const |
| int | doRemove () |
| void | logData (const string &Dir) |
Static Protected Member Functions | |
| static void | activate (bool val) |
| static string | undevName (const string &name) |
| static void | getRaids (std::list< string > &l) |
| static bool | raidNotDeleted (const Dmraid &d) |
Protected Attributes | |
| string | raidtype |
| string | controller |
Static Protected Attributes | |
| static bool | active = false |
Friends | |
| class | Storage |
| std::ostream & | operator<< (std::ostream &, const DmraidCo &) |
Classes | |
| struct | DmraidCPI |
| struct | DmraidPI |
typedef CastIterator<VIter, Dmraid *> storage::DmraidCo::DmraidInter [protected] |
typedef CastIterator<CVIter, const Dmraid *> storage::DmraidCo::DmraidCInter [protected] |
typedef CheckFnc<const Dmraid> storage::DmraidCo::CheckFncDmraid [protected] |
typedef CheckerIterator< CheckFncDmraid, DmraidPI<CheckFncDmraid>::type, DmraidInter, Dmraid > storage::DmraidCo::DmraidPIterator [protected] |
typedef CheckerIterator< CheckFncDmraid, DmraidCPI<CheckFncDmraid>::type, DmraidCInter, const Dmraid > storage::DmraidCo::DmraidCPIterator [protected] |
typedef DerefIterator<DmraidPIterator,Dmraid> storage::DmraidCo::DmraidIter [protected] |
typedef DerefIterator<DmraidCPIterator,const Dmraid> storage::DmraidCo::ConstDmraidIter [protected] |
typedef IterPair<DmraidIter> storage::DmraidCo::DmraidPair [protected] |
typedef IterPair<ConstDmraidIter> storage::DmraidCo::ConstDmraidPair [protected] |
| storage::DmraidCo::DmraidCo | ( | Storage *const | s, | |
| const string & | Name, | |||
| unsigned | num, | |||
| unsigned long long | Size, | |||
| ProcPart & | ppart | |||
| ) |
| DmraidCo::DmraidCo | ( | const DmraidCo & | rhs | ) |
References controller, and raidtype.
| DmraidCo::~DmraidCo | ( | ) | [virtual] |
References storage::Container::dev, and y2debug.
| storage::DmraidCo::DmraidCo | ( | Storage *const | s, | |
| const string & | File | |||
| ) | [protected] |
| static storage::CType storage::DmraidCo::staticType | ( | ) | [inline, static] |
| void DmraidCo::getInfo | ( | storage::DmraidCoInfo & | info | ) | const |
References storage::DmPartCo::getInfo(), storage::DmPartCo::info, and storage::DmraidCoInfo::p.
| void DmraidCo::setUdevData | ( | const string & | id | ) |
Reimplemented from storage::DmPartCo.
References storage::IterPair< Iter >::begin(), dmraidPair(), storage::IterPair< Iter >::end(), storage::Container::nm, storage::splitString(), storage::DmPartCo::udev_id, y2mil, and y2milestone.
Referenced by storage::Storage::detectDmraid().
| bool DmraidCo::equalContent | ( | const Container & | rhs | ) | const [virtual] |
Reimplemented from storage::Container.
References controller, storage::DmPartCo::equalContent(), storage::Container::equalContent(), and raidtype.
| string DmraidCo::getDiffString | ( | const Container & | d | ) | const [virtual] |
Reimplemented from storage::DmPartCo.
References controller, storage::DmPartCo::getDiffString(), and raidtype.
| DmraidPair storage::DmraidCo::dmraidPair | ( | bool(*)(const Dmraid &) | CheckDmraid = NULL |
) | [inline, protected] |
| DmraidIter storage::DmraidCo::dmraidBegin | ( | bool(*)(const Dmraid &) | CheckDmraid = NULL |
) | [inline, protected] |
| DmraidIter storage::DmraidCo::dmraidEnd | ( | bool(*)(const Dmraid &) | CheckDmraid = NULL |
) | [inline, protected] |
| ConstDmraidPair storage::DmraidCo::dmraidPair | ( | bool(*)(const Dmraid &) | CheckDmraid = NULL |
) | const [inline, protected] |
References dmraidBegin(), and dmraidEnd().
| ConstDmraidIter storage::DmraidCo::dmraidBegin | ( | bool(*)(const Dmraid &) | CheckDmraid = NULL |
) | const [inline, protected] |
References storage::Container::begin(), and storage::Container::end().
| ConstDmraidIter storage::DmraidCo::dmraidEnd | ( | bool(*)(const Dmraid &) | CheckDmraid = NULL |
) | const [inline, protected] |
References storage::Container::begin(), and storage::Container::end().
| virtual void storage::DmraidCo::print | ( | std::ostream & | s | ) | const [inline, protected, virtual] |
Reimplemented from storage::DmPartCo.
| virtual Container* storage::DmraidCo::getCopy | ( | ) | const [inline, protected, virtual] |
| void DmraidCo::activate | ( | bool | val | ) | [static, protected] |
References storage::Dm::activate(), active, storage::SystemCmd::execute(), and y2milestone.
Referenced by storage::Storage::detectObjects(), and doRemove().
| void DmraidCo::getRaidData | ( | const string & | name | ) | [protected] |
References addPv(), controller, storage::PeContainer::Pv::device, raidtype, storage::splitString(), y2mil, and y2milestone.
Referenced by DmraidCo().
| void storage::DmraidCo::addRaid | ( | const string & | name | ) | [protected] |
| void DmraidCo::addPv | ( | Pv *& | p | ) | [protected] |
| string DmraidCo::removeText | ( | bool | doing | ) | const [protected, virtual] |
Reimplemented from storage::DmPartCo.
References storage::_(), storage::Container::name(), and storage::sformat().
Referenced by doRemove().
| string DmraidCo::setDiskLabelText | ( | bool | doing | ) | const [protected, virtual] |
Reimplemented from storage::DmPartCo.
References storage::_(), storage::DmPartCo::labelName(), storage::Container::nm, and storage::sformat().
| static string storage::DmraidCo::undevName | ( | const string & | name | ) | [static, protected] |
Reimplemented from storage::DmPartCo.
| static void storage::DmraidCo::getRaids | ( | std::list< string > & | l | ) | [static, protected] |
Referenced by storage::Storage::detectDmraid().
| static bool storage::DmraidCo::raidNotDeleted | ( | const Dmraid & | d | ) | [inline, static, protected] |
| int DmraidCo::doRemove | ( | ) | [protected, virtual] |
Reimplemented from storage::DmPartCo.
References activate(), storage::DmPartCo::activate_part(), active, storage::Container::deleted(), storage::DMRAID_REMOVE_FAILED, storage::SystemCmd::execute(), storage::Container::getStorage(), storage::Container::name(), storage::PeContainer::pv, removeText(), storage::SystemCmd::retcode(), storage::Container::setDeleted(), storage::Container::setExtError(), storage::Storage::showInfoCb(), storage::Container::silent, and y2milestone.
| void DmraidCo::logData | ( | const string & | Dir | ) | [protected, virtual] |
Reimplemented from storage::DmPartCo.
friend class Storage [friend] |
Reimplemented from storage::DmPartCo.
| std::ostream& operator<< | ( | std::ostream & | s, | |
| const DmraidCo & | d | |||
| ) | [friend] |
string storage::DmraidCo::raidtype [protected] |
Referenced by DmraidCo(), equalContent(), getDiffString(), getRaidData(), and storage::operator<<().
string storage::DmraidCo::controller [protected] |
Referenced by DmraidCo(), equalContent(), getDiffString(), getRaidData(), and storage::operator<<().
bool DmraidCo::active = false [static, protected] |
1.5.5