#include <DmraidCo.h>

Public Member Functions | |
| DmraidCo (Storage *s, const string &name, const string &device, SystemInfo &systeminfo) | |
| DmraidCo (const DmraidCo &c) | |
| virtual | ~DmraidCo () |
| void | getInfo (storage::DmraidCoInfo &info) const |
| void | setUdevData (const list< string > &id) |
| bool | equalContent (const Container &rhs) const |
| void | logDifference (std::ostream &log, const DmraidCo &rhs) const |
| virtual void | logDifferenceWithVolumes (std::ostream &log, const Container &rhs) const |
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 |
| virtual void | print (std::ostream &s) const |
| virtual Container * | getCopy () const |
| void | getRaidData (const string &name, SystemInfo &systeminfo) |
| void | addPv (const Pv &pv) |
| void | newP (DmPart *&dm, unsigned num, Partition *p) |
| Text | removeText (bool doing) const |
| int | doRemove () |
Static Protected Member Functions | |
| static void | activate (bool val) |
| static list< string > | getRaids (SystemInfo &systeminfo) |
Protected Attributes | |
| string | raidtype |
| string | controller |
Static Protected Attributes | |
| static bool | active = false |
Private Member Functions | |
| DmraidCo & | operator= (const DmraidCo &) |
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 * | s, | |
| const string & | name, | |||
| const string & | device, | |||
| SystemInfo & | systeminfo | |||
| ) |
References storage::decString(), getRaidData(), storage::SystemInfo::getUdevMap(), storage::Device::minorNr(), setUdevData(), and y2deb.
Referenced by getCopy().
| storage::DmraidCo::DmraidCo | ( | const DmraidCo & | c | ) |
References storage::Device::dev, and y2deb.
| storage::DmraidCo::~DmraidCo | ( | ) | [virtual] |
References storage::Device::dev, and y2deb.
| static storage::CType storage::DmraidCo::staticType | ( | ) | [inline, static] |
| void storage::DmraidCo::getInfo | ( | storage::DmraidCoInfo & | info | ) | const |
References storage::DmPartCo::getInfo(), storage::DmPartCo::info, and storage::DmraidCoInfo::p.
| void storage::DmraidCo::setUdevData | ( | const list< string > & | id | ) |
Reimplemented from storage::DmPartCo.
References storage::IterPair< Iter >::begin(), dmraidPair(), storage::IterPair< Iter >::end(), storage::Device::nm, storage::DmPartCo::setUdevData(), storage::DmPartCo::udev_id, and y2mil.
Referenced by DmraidCo().
| bool storage::DmraidCo::equalContent | ( | const Container & | rhs | ) | const [virtual] |
Reimplemented from storage::Container.
References controller, storage::equalContent(), and raidtype.
| void storage::DmraidCo::logDifference | ( | std::ostream & | log, | |
| const DmraidCo & | rhs | |||
| ) | const |
References controller, storage::logDiff(), storage::DmPartCo::logDifference(), and raidtype.
Referenced by logDifferenceWithVolumes().
| void storage::DmraidCo::logDifferenceWithVolumes | ( | std::ostream & | log, | |
| const Container & | rhs | |||
| ) | const [virtual] |
| 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 storage::DmraidCo::activate | ( | bool | val | ) | [static, protected] |
References storage::Dm::activate(), active, DMRAIDBIN, storage::SystemCmd::execute(), storage::Storage::waitForDevice(), and y2mil.
Referenced by storage::Storage::detectObjects(), doRemove(), and storage::Storage::rescanEverything().
| void storage::DmraidCo::getRaidData | ( | const string & | name, | |
| SystemInfo & | systeminfo | |||
| ) | [protected] |
References addPv(), storage::CmdDmraid::Entry::controller, controller, storage::PeContainer::Pv::device, storage::CmdDmraid::Entry::devices, storage::SystemInfo::getCmdDmraid(), storage::CmdDmraid::getEntry(), storage::PeContainer::pv, storage::CmdDmraid::Entry::raidtype, raidtype, and y2mil.
Referenced by DmraidCo().
| void storage::DmraidCo::addPv | ( | const Pv & | pv | ) | [protected] |
Reimplemented from storage::PeContainer.
References storage::PeContainer::addPv(), storage::Storage::addUsedBy(), storage::Device::deleted(), storage::Device::device(), storage::PeContainer::Pv::device, storage::Container::getStorage(), and storage::UB_DMRAID.
Referenced by getRaidData().
Reimplemented from storage::DmPartCo.
References storage::DmPartCo::getPartDevice(), storage::DmPartCo::getPartName(), and y2mil.
| Text storage::DmraidCo::removeText | ( | bool | doing | ) | const [protected, virtual] |
Reimplemented from storage::DmPartCo.
References storage::_(), storage::Device::name(), and storage::sformat().
Referenced by doRemove().
| list< string > storage::DmraidCo::getRaids | ( | SystemInfo & | systeminfo | ) | [static, protected] |
| int storage::DmraidCo::doRemove | ( | ) | [protected, virtual] |
Reimplemented from storage::DmPartCo.
References activate(), storage::DmPartCo::activate_part(), active, storage::Device::deleted(), storage::DMRAID_REMOVE_FAILED, DMRAIDBIN, storage::SystemCmd::execute(), storage::Container::getStorage(), storage::Device::name(), storage::PeContainer::pv, storage::quote(), removeText(), storage::SystemCmd::retcode(), storage::Device::setDeleted(), storage::Container::setExtError(), storage::Storage::showInfoCb(), storage::Device::silent, and y2mil.
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 equalContent(), getRaidData(), logDifference(), and storage::operator<<().
string storage::DmraidCo::controller [protected] |
Referenced by equalContent(), getRaidData(), logDifference(), and storage::operator<<().
bool storage::DmraidCo::active = false [static, protected] |
1.5.6