#include <PeContainer.h>
Inheritance diagram for storage::PeContainer:

Public Member Functions | |
| PeContainer (Storage *const s, storage::CType t) | |
| PeContainer (const PeContainer &c) | |
| PeContainer & | operator= (const PeContainer &rhs) |
| virtual | ~PeContainer () |
| unsigned long long | peSize () const |
| unsigned long long | sizeK () const |
| unsigned long | peCount () const |
| unsigned long | peFree () const |
| unsigned | numPv () const |
| bool | addedPv (const string &dev) const |
| unsigned long | sizeToLe (unsigned long long sizeK) const |
| int | setPeSize (long long unsigned, bool lvm1) |
| void | unuseDev () |
| bool | equalContent (const PeContainer &rhs, bool comp_vol=true) const |
| virtual string | logDiff (const PeContainer &d) const |
Protected Member Functions | |
| void | init () |
| string | addList () const |
| virtual void | print (std::ostream &s) const |
| virtual Container * | getCopy () const |
| unsigned long | leByLvRemove () const |
| int | tryUnusePe (const string &dev, std::list< Pv > &pl, std::list< Pv > &pladd, std::list< Pv > &plrem, unsigned long &removed_pe) |
| bool | checkCreateConstraints () |
| virtual bool | checkConsistency () const |
| void | addPv (const Pv *p) |
Static Protected Member Functions | |
| static int | addLvPeDistribution (unsigned long le, unsigned stripe, std::list< Pv > &pl, std::list< Pv > &pladd, std::map< string, unsigned long > &pe_map) |
| static int | remLvPeDistribution (unsigned long le, std::map< string, unsigned long > &pe_map, std::list< Pv > &pl, std::list< Pv > &pladd) |
Protected Attributes | |
| unsigned long long | pe_size |
| unsigned long | num_pe |
| unsigned long | free_pe |
| std::list< Pv > | pv |
| std::list< Pv > | pv_add |
| std::list< Pv > | pv_remove |
Friends | |
| class | Storage |
| std::ostream & | operator<< (std::ostream &, const PeContainer &) |
| std::ostream & | operator<< (std::ostream &, const Pv &) |
| void | printDevList (std::ostream &, const std::list< Pv > &) |
Classes | |
| struct | Pv |
| PeContainer::PeContainer | ( | Storage *const | s, | |
| storage::CType | t | |||
| ) |
| PeContainer::PeContainer | ( | const PeContainer & | c | ) |
| PeContainer::~PeContainer | ( | ) | [virtual] |
| PeContainer & PeContainer::operator= | ( | const PeContainer & | rhs | ) |
| unsigned long long storage::PeContainer::peSize | ( | ) | const [inline] |
| unsigned long long storage::PeContainer::sizeK | ( | ) | const [inline] |
| unsigned long storage::PeContainer::peCount | ( | ) | const [inline] |
| unsigned long storage::PeContainer::peFree | ( | ) | const [inline] |
| unsigned storage::PeContainer::numPv | ( | ) | const [inline] |
| bool PeContainer::addedPv | ( | const string & | dev | ) | const |
| unsigned long PeContainer::sizeToLe | ( | unsigned long long | sizeK | ) | const |
| int storage::PeContainer::setPeSize | ( | long long | unsigned, | |
| bool | lvm1 | |||
| ) |
| void PeContainer::unuseDev | ( | ) |
| bool PeContainer::equalContent | ( | const PeContainer & | rhs, | |
| bool | comp_vol = true | |||
| ) | const |
| string PeContainer::logDiff | ( | const PeContainer & | d | ) | const [virtual] |
| void PeContainer::init | ( | ) | [protected] |
Reimplemented in storage::DmCo, storage::EvmsCo, and storage::LvmVg.
| string PeContainer::addList | ( | ) | const [protected] |
| virtual void storage::PeContainer::print | ( | std::ostream & | s | ) | const [inline, protected, virtual] |
Reimplemented from storage::Container.
Reimplemented in storage::DmCo, storage::DmPartCo, storage::DmraidCo, storage::EvmsCo, and storage::LvmVg.
| virtual Container* storage::PeContainer::getCopy | ( | ) | const [inline, protected, virtual] |
Reimplemented from storage::Container.
Reimplemented in storage::DmCo, storage::DmPartCo, storage::DmraidCo, storage::EvmsCo, and storage::LvmVg.
| unsigned long PeContainer::leByLvRemove | ( | ) | const [protected] |
| int storage::PeContainer::tryUnusePe | ( | const string & | dev, | |
| std::list< Pv > & | pl, | |||
| std::list< Pv > & | pladd, | |||
| std::list< Pv > & | plrem, | |||
| unsigned long & | removed_pe | |||
| ) | [protected] |
| bool PeContainer::checkCreateConstraints | ( | ) | [protected] |
| static int storage::PeContainer::addLvPeDistribution | ( | unsigned long | le, | |
| unsigned | stripe, | |||
| std::list< Pv > & | pl, | |||
| std::list< Pv > & | pladd, | |||
| std::map< string, unsigned long > & | pe_map | |||
| ) | [static, protected] |
| static int storage::PeContainer::remLvPeDistribution | ( | unsigned long | le, | |
| std::map< string, unsigned long > & | pe_map, | |||
| std::list< Pv > & | pl, | |||
| std::list< Pv > & | pladd | |||
| ) | [static, protected] |
| bool PeContainer::checkConsistency | ( | ) | const [protected, virtual] |
Reimplemented in storage::EvmsCo.
| void PeContainer::addPv | ( | const Pv * | p | ) | [protected] |
friend class Storage [friend] |
Reimplemented from storage::Container.
Reimplemented in storage::DmCo, storage::DmPartCo, storage::DmraidCo, storage::EvmsCo, and storage::LvmVg.
| std::ostream& operator<< | ( | std::ostream & | s, | |
| const PeContainer & | d | |||
| ) | [friend] |
| std::ostream& operator<< | ( | std::ostream & | s, | |
| const Pv & | v | |||
| ) | [friend] |
| void printDevList | ( | std::ostream & | s, | |
| const std::list< Pv > & | l | |||
| ) | [friend] |
unsigned long long storage::PeContainer::pe_size [protected] |
unsigned long storage::PeContainer::num_pe [protected] |
unsigned long storage::PeContainer::free_pe [protected] |
std::list<Pv> storage::PeContainer::pv [protected] |
std::list<Pv> storage::PeContainer::pv_add [protected] |
std::list<Pv> storage::PeContainer::pv_remove [protected] |
1.5.0