#include <DmmultipathCo.h>

Public Member Functions | |
| DmmultipathCo (Storage *s, const string &name, const string &device, SystemInfo &systeminfo) | |
| DmmultipathCo (const DmmultipathCo &c) | |
| virtual | ~DmmultipathCo () |
| void | getInfo (storage::DmmultipathCoInfo &info) const |
| void | setUdevData (const list< string > &id) |
| bool | equalContent (const Container &rhs) const |
| void | logDifference (std::ostream &log, const DmmultipathCo &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, Dmmultipath * > | DmmultipathInter |
| typedef CastIterator< CVIter, const Dmmultipath * > | DmmultipathCInter |
| typedef CheckFnc< const Dmmultipath > | CheckFncDmmultipath |
| typedef CheckerIterator < CheckFncDmmultipath, DmmultipathPI < CheckFncDmmultipath >::type, DmmultipathInter, Dmmultipath > | DmmultipathPIterator |
| typedef CheckerIterator < CheckFncDmmultipath, DmmultipathCPI < CheckFncDmmultipath >::type, DmmultipathCInter, const Dmmultipath > | DmmultipathCPIterator |
| typedef DerefIterator < DmmultipathPIterator, Dmmultipath > | DmmultipathIter |
| typedef DerefIterator < DmmultipathCPIterator, const Dmmultipath > | ConstDmmultipathIter |
| typedef IterPair< DmmultipathIter > | DmmultipathPair |
| typedef IterPair < ConstDmmultipathIter > | ConstDmmultipathPair |
Protected Member Functions | |
| DmmultipathPair | dmmultipathPair (bool(*CheckDmmultipath)(const Dmmultipath &)=NULL) |
| DmmultipathIter | dmmultipathBegin (bool(*CheckDmmultipath)(const Dmmultipath &)=NULL) |
| DmmultipathIter | dmmultipathEnd (bool(*CheckDmmultipath)(const Dmmultipath &)=NULL) |
| ConstDmmultipathPair | dmmultipathPair (bool(*CheckDmmultipath)(const Dmmultipath &)=NULL) const |
| ConstDmmultipathIter | dmmultipathBegin (bool(*CheckDmmultipath)(const Dmmultipath &)=NULL) const |
| ConstDmmultipathIter | dmmultipathEnd (bool(*CheckDmmultipath)(const Dmmultipath &)=NULL) const |
| virtual void | print (std::ostream &s) const |
| virtual Container * | getCopy () const |
| void | getMultipathData (const string &name, SystemInfo &systeminfo) |
| void | addPv (const Pv &pv) |
| void | newP (DmPart *&dm, unsigned num, Partition *p) |
Static Protected Member Functions | |
| static void | activate (bool val) |
| static bool | isActive () |
| static list< string > | getMultipaths (SystemInfo &systeminfo) |
Protected Attributes | |
| string | vendor |
| string | model |
Static Protected Attributes | |
| static bool | active = false |
Private Member Functions | |
| DmmultipathCo & | operator= (const DmmultipathCo &) |
Friends | |
| class | Storage |
| std::ostream & | operator<< (std::ostream &, const DmmultipathCo &) |
Classes | |
| struct | DmmultipathCPI |
| struct | DmmultipathPI |
typedef CastIterator<VIter, Dmmultipath *> storage::DmmultipathCo::DmmultipathInter [protected] |
typedef CastIterator<CVIter, const Dmmultipath *> storage::DmmultipathCo::DmmultipathCInter [protected] |
typedef CheckFnc<const Dmmultipath> storage::DmmultipathCo::CheckFncDmmultipath [protected] |
typedef CheckerIterator< CheckFncDmmultipath, DmmultipathPI<CheckFncDmmultipath>::type, DmmultipathInter, Dmmultipath > storage::DmmultipathCo::DmmultipathPIterator [protected] |
typedef CheckerIterator< CheckFncDmmultipath, DmmultipathCPI<CheckFncDmmultipath>::type, DmmultipathCInter, const Dmmultipath > storage::DmmultipathCo::DmmultipathCPIterator [protected] |
typedef DerefIterator<DmmultipathPIterator,Dmmultipath> storage::DmmultipathCo::DmmultipathIter [protected] |
typedef DerefIterator<DmmultipathCPIterator,const Dmmultipath> storage::DmmultipathCo::ConstDmmultipathIter [protected] |
typedef IterPair<DmmultipathIter> storage::DmmultipathCo::DmmultipathPair [protected] |
typedef IterPair<ConstDmmultipathIter> storage::DmmultipathCo::ConstDmmultipathPair [protected] |
| storage::DmmultipathCo::DmmultipathCo | ( | Storage * | s, | |
| const string & | name, | |||
| const string & | device, | |||
| SystemInfo & | systeminfo | |||
| ) |
References storage::decString(), getMultipathData(), storage::SystemInfo::getUdevMap(), storage::Device::minorNr(), setUdevData(), and y2deb.
Referenced by getCopy().
| storage::DmmultipathCo::DmmultipathCo | ( | const DmmultipathCo & | c | ) |
References storage::Device::dev, and y2deb.
| storage::DmmultipathCo::~DmmultipathCo | ( | ) | [virtual] |
References storage::Device::dev, and y2deb.
| static storage::CType storage::DmmultipathCo::staticType | ( | ) | [inline, static] |
| void storage::DmmultipathCo::getInfo | ( | storage::DmmultipathCoInfo & | info | ) | const |
| void storage::DmmultipathCo::setUdevData | ( | const list< string > & | id | ) |
Reimplemented from storage::DmPartCo.
References storage::IterPair< Iter >::begin(), dmmultipathPair(), storage::IterPair< Iter >::end(), storage::Device::nm, storage::DmPartCo::setUdevData(), storage::DmPartCo::udev_id, and y2mil.
Referenced by DmmultipathCo().
| bool storage::DmmultipathCo::equalContent | ( | const Container & | rhs | ) | const [virtual] |
| void storage::DmmultipathCo::logDifference | ( | std::ostream & | log, | |
| const DmmultipathCo & | rhs | |||
| ) | const |
References storage::logDiff(), storage::DmPartCo::logDifference(), model, and vendor.
Referenced by logDifferenceWithVolumes().
| void storage::DmmultipathCo::logDifferenceWithVolumes | ( | std::ostream & | log, | |
| const Container & | rhs | |||
| ) | const [virtual] |
| DmmultipathPair storage::DmmultipathCo::dmmultipathPair | ( | bool(*)(const Dmmultipath &) | CheckDmmultipath = NULL |
) | [inline, protected] |
| DmmultipathIter storage::DmmultipathCo::dmmultipathBegin | ( | bool(*)(const Dmmultipath &) | CheckDmmultipath = NULL |
) | [inline, protected] |
References storage::Container::begin(), and storage::Container::end().
Referenced by dmmultipathPair().
| DmmultipathIter storage::DmmultipathCo::dmmultipathEnd | ( | bool(*)(const Dmmultipath &) | CheckDmmultipath = NULL |
) | [inline, protected] |
References storage::Container::begin(), and storage::Container::end().
Referenced by dmmultipathPair().
| ConstDmmultipathPair storage::DmmultipathCo::dmmultipathPair | ( | bool(*)(const Dmmultipath &) | CheckDmmultipath = NULL |
) | const [inline, protected] |
References dmmultipathBegin(), and dmmultipathEnd().
| ConstDmmultipathIter storage::DmmultipathCo::dmmultipathBegin | ( | bool(*)(const Dmmultipath &) | CheckDmmultipath = NULL |
) | const [inline, protected] |
References storage::Container::begin(), and storage::Container::end().
| ConstDmmultipathIter storage::DmmultipathCo::dmmultipathEnd | ( | bool(*)(const Dmmultipath &) | CheckDmmultipath = NULL |
) | const [inline, protected] |
References storage::Container::begin(), and storage::Container::end().
| virtual void storage::DmmultipathCo::print | ( | std::ostream & | s | ) | const [inline, protected, virtual] |
Reimplemented from storage::DmPartCo.
| virtual Container* storage::DmmultipathCo::getCopy | ( | ) | const [inline, protected, virtual] |
| void storage::DmmultipathCo::getMultipathData | ( | const string & | name, | |
| SystemInfo & | systeminfo | |||
| ) | [protected] |
References addPv(), storage::PeContainer::Pv::device, storage::CmdMultipath::Entry::devices, storage::SystemInfo::getCmdMultipath(), storage::CmdMultipath::getEntry(), storage::CmdMultipath::Entry::model, model, storage::PeContainer::pv, storage::CmdMultipath::Entry::vendor, and vendor.
Referenced by DmmultipathCo().
| void storage::DmmultipathCo::addPv | ( | const Pv & | pv | ) | [protected] |
Reimplemented from storage::PeContainer.
References storage::PeContainer::addPv(), storage::Device::deleted(), storage::Device::device(), storage::PeContainer::Pv::device, storage::Container::getStorage(), storage::Storage::setUsedBy(), and storage::UB_DMMULTIPATH.
Referenced by getMultipathData().
| void storage::DmmultipathCo::newP | ( | DmPart *& | dm, | |
| unsigned | num, | |||
| Partition * | p | |||
| ) | [protected, virtual] |
Reimplemented from storage::DmPartCo.
References storage::DmPartCo::getPartDevice(), storage::DmPartCo::getPartName(), and y2mil.
| void storage::DmmultipathCo::activate | ( | bool | val | ) | [static, protected] |
References storage::Dm::activate(), storage::LvmVg::activate(), active, storage::SystemCmd::execute(), storage::LvmVg::isActive(), MODPROBEBIN, MULTIPATHBIN, MULTIPATHDBIN, and y2mil.
Referenced by storage::Storage::activateMultipath(), storage::Storage::initialize(), and storage::Storage::rescanEverything().
| static bool storage::DmmultipathCo::isActive | ( | ) | [inline, static, protected] |
| list< string > storage::DmmultipathCo::getMultipaths | ( | SystemInfo & | systeminfo | ) | [static, protected] |
References active, storage::SystemInfo::getCmdDmsetup(), storage::SystemInfo::getCmdMultipath(), storage::CmdMultipath::getEntries(), storage::CmdDmsetup::getEntry(), storage::CmdDmsetup::Entry::segments, and y2mil.
Referenced by storage::Storage::detectDmmultipath(), and storage::Storage::rescanEverything().
| DmmultipathCo& storage::DmmultipathCo::operator= | ( | const DmmultipathCo & | ) | [private] |
friend class Storage [friend] |
Reimplemented from storage::DmPartCo.
| std::ostream& operator<< | ( | std::ostream & | s, | |
| const DmmultipathCo & | d | |||
| ) | [friend] |
string storage::DmmultipathCo::vendor [protected] |
Referenced by equalContent(), getInfo(), getMultipathData(), logDifference(), and storage::operator<<().
string storage::DmmultipathCo::model [protected] |
Referenced by equalContent(), getInfo(), getMultipathData(), logDifference(), and storage::operator<<().
bool storage::DmmultipathCo::active = false [static, protected] |
1.5.6