|
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 |
int | setPeSize (long long unsigned, bool lvm1) |
void | unuseDev () |
bool | equalContent (const PeContainer &rhs, bool comp_vol=true) const |
string | logDifference (const PeContainer &d) const |
Protected Member Functions |
void | init () |
unsigned long long | capacityInKb () 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) |
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 |