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

Public Member Functions | |
| DmPartCo (Storage *const s, const string &Name, storage::CType t, ProcPart &ppart) | |
| DmPartCo (const DmPartCo &rhs) | |
| virtual | ~DmPartCo () |
| unsigned long long | sizeK () const |
| unsigned | isValid () const |
| const string & | labelName () const |
| const string & | udevPath () const |
| const std::list< string > & | udevId () const |
| unsigned | numPartitions () const |
| int | createPartition (storage::PartitionType type, long unsigned start, long unsigned len, string &device, bool checkRelaxed=false) |
| int | createPartition (long unsigned len, string &device, bool checkRelaxed=false) |
| int | createPartition (storage::PartitionType type, string &device) |
| int | removePartition (unsigned nr) |
| int | changePartitionId (unsigned nr, unsigned id) |
| int | forgetChangePartitionId (unsigned nr) |
| int | changePartitionArea (unsigned nr, unsigned long start, unsigned long size, bool checkRelaxed=false) |
| int | nextFreePartition (storage::PartitionType type, unsigned &nr, string &device) |
| int | destroyPartitionTable (const string &new_label) |
| unsigned | availablePartNumber (storage::PartitionType type=storage::PRIMARY) |
| int | resizePartition (DmPart *p, unsigned long newCyl) |
| int | resizeVolume (Volume *v, unsigned long long newSize) |
| int | removeVolume (Volume *v) |
| int | removeDmPart () |
| void | getUnusedSpace (std::list< Region > &free, bool all=true, bool logical=false) |
| bool | hasExtended () const |
| unsigned long long | cylinderToKb (unsigned long val) const |
| unsigned long | kbToCylinder (unsigned long long val) const |
| string | getPartName (unsigned nr) const |
| virtual void | getCommitActions (std::list< storage::commitAction * > &l) const |
| virtual int | getToCommit (storage::CommitStage stage, std::list< Container * > &col, std::list< Volume * > &vol) |
| virtual int | commitChanges (storage::CommitStage stage) |
| int | commitChanges (storage::CommitStage stage, Volume *vol) |
| Partition * | getPartition (unsigned nr, bool del) |
| void | getInfo (storage::DmPartCoInfo &info) const |
| bool | equalContent (const DmPartCo &rhs) const |
| virtual string | logDiff (const DmPartCo &d) const |
| void | logDifference (const DmPartCo &d) const |
| DmPartCo & | operator= (const DmPartCo &rhs) |
| string | numToName (unsigned num) const |
Static Public Member Functions | |
| static storage::CType const | staticType () |
| static string | undevName (const string &name) |
Protected Types | |
| typedef CastIterator< VIter, DmPart * > | DmPartInter |
| typedef CastIterator< CVIter, const DmPart * > | DmPartCInter |
| typedef CheckFnc< const DmPart > | CheckFncDmPart |
| typedef CheckerIterator< CheckFncDmPart, DmPartPI< CheckFncDmPart >::type, DmPartInter, DmPart > | DmPartPIterator |
| typedef CheckerIterator< CheckFncDmPart, DmPartCPI< CheckFncDmPart >::type, DmPartCInter, const DmPart > | DmPartCPIterator |
| typedef DerefIterator< DmPartPIterator, DmPart > | DmPartIter |
| typedef DerefIterator< DmPartCPIterator, const DmPart > | ConstDmPartIter |
| typedef IterPair< DmPartIter > | DmPartPair |
| typedef IterPair< ConstDmPartIter > | ConstDmPartPair |
Protected Member Functions | |
| DmPartPair | dmpartPair (bool(*CheckDmPart)(const DmPart &)=NULL) |
| DmPartIter | dmpartBegin (bool(*CheckDmPart)(const DmPart &)=NULL) |
| DmPartIter | dmpartEnd (bool(*CheckDmPart)(const DmPart &)=NULL) |
| ConstDmPartPair | dmpartPair (bool(*CheckDmPart)(const DmPart &)=NULL) const |
| ConstDmPartIter | dmpartBegin (bool(*CheckDmPart)(const DmPart &)=NULL) const |
| ConstDmPartIter | dmpartEnd (bool(*CheckDmPart)(const DmPart &)=NULL) const |
| DmPartCo (Storage *const s, const string &File) | |
| virtual void | print (std::ostream &s) const |
| virtual Container * | getCopy () const |
| void | activate_part (bool val) |
| void | init (ProcPart &ppart) |
| void | createDisk (ProcPart &ppart) |
| void | getVolumes (ProcPart &ppart) |
| void | updatePointers (bool invalid=false) |
| void | updateMinor () |
| virtual void | newP (DmPart *&dm, unsigned num, Partition *p) |
| int | addNewDev (string &device) |
| int | updateDelDev () |
| void | handleWholeDevice () |
| void | removeFromMemory () |
| void | removePresentPartitions () |
| bool | validPartition (const Partition *p) |
| bool | findDm (unsigned nr, DmPartIter &i) |
| int | doCreate (Volume *v) |
| int | doRemove (Volume *v) |
| int | doResize (Volume *v) |
| int | doSetType (DmPart *v) |
| int | doCreateLabel () |
| virtual int | doRemove () |
| virtual string | removeText (bool doing) const |
| virtual string | setDiskLabelText (bool doing) const |
| void | logData (const string &Dir) |
Static Protected Member Functions | |
| static bool | partNotDeleted (const DmPart &d) |
Protected Attributes | |
| string | udev_path |
| std::list< string > | udev_id |
| string | logfile_name |
| string | sysfs_dir |
| Disk * | disk |
| bool | active |
| bool | valid |
| bool | del_ptable |
| unsigned | num_part |
| storage::DmPartCoInfo | info |
Friends | |
| class | Storage |
| std::ostream & | operator<< (std::ostream &, const DmPartCo &) |
Classes | |
| struct | DmPartCPI |
| struct | DmPartPI |
typedef CastIterator<VIter, DmPart *> storage::DmPartCo::DmPartInter [protected] |
typedef CastIterator<CVIter, const DmPart *> storage::DmPartCo::DmPartCInter [protected] |
typedef CheckFnc<const DmPart> storage::DmPartCo::CheckFncDmPart [protected] |
typedef CheckerIterator< CheckFncDmPart, DmPartPI<CheckFncDmPart>::type, DmPartInter, DmPart > storage::DmPartCo::DmPartPIterator [protected] |
typedef CheckerIterator< CheckFncDmPart, DmPartCPI<CheckFncDmPart>::type, DmPartCInter, const DmPart > storage::DmPartCo::DmPartCPIterator [protected] |
typedef DerefIterator<DmPartPIterator,DmPart> storage::DmPartCo::DmPartIter [protected] |
typedef DerefIterator<DmPartCPIterator,const DmPart> storage::DmPartCo::ConstDmPartIter [protected] |
typedef IterPair<DmPartIter> storage::DmPartCo::DmPartPair [protected] |
typedef IterPair<ConstDmPartIter> storage::DmPartCo::ConstDmPartPair [protected] |
| DmPartCo::DmPartCo | ( | Storage *const | s, | |
| const string & | Name, | |||
| storage::CType | t, | |||
| ProcPart & | ppart | |||
| ) |
| DmPartCo::DmPartCo | ( | const DmPartCo & | rhs | ) |
| DmPartCo::~DmPartCo | ( | ) | [virtual] |
| storage::DmPartCo::DmPartCo | ( | Storage *const | s, | |
| const string & | File | |||
| ) | [protected] |
| unsigned long long storage::DmPartCo::sizeK | ( | ) | const [inline] |
Reimplemented from storage::PeContainer.
| unsigned storage::DmPartCo::isValid | ( | ) | const [inline] |
| const string& storage::DmPartCo::labelName | ( | ) | const [inline] |
| const string& storage::DmPartCo::udevPath | ( | ) | const [inline] |
| const std::list<string>& storage::DmPartCo::udevId | ( | ) | const [inline] |
| unsigned storage::DmPartCo::numPartitions | ( | ) | const [inline] |
| static storage::CType const storage::DmPartCo::staticType | ( | ) | [inline, static] |
| int DmPartCo::createPartition | ( | storage::PartitionType | type, | |
| long unsigned | start, | |||
| long unsigned | len, | |||
| string & | device, | |||
| bool | checkRelaxed = false | |||
| ) |
| int DmPartCo::createPartition | ( | long unsigned | len, | |
| string & | device, | |||
| bool | checkRelaxed = false | |||
| ) |
| int DmPartCo::createPartition | ( | storage::PartitionType | type, | |
| string & | device | |||
| ) |
| int DmPartCo::removePartition | ( | unsigned | nr | ) |
| int DmPartCo::changePartitionId | ( | unsigned | nr, | |
| unsigned | id | |||
| ) |
| int DmPartCo::forgetChangePartitionId | ( | unsigned | nr | ) |
| int DmPartCo::changePartitionArea | ( | unsigned | nr, | |
| unsigned long | start, | |||
| unsigned long | size, | |||
| bool | checkRelaxed = false | |||
| ) |
| int DmPartCo::nextFreePartition | ( | storage::PartitionType | type, | |
| unsigned & | nr, | |||
| string & | device | |||
| ) |
| int DmPartCo::destroyPartitionTable | ( | const string & | new_label | ) |
| unsigned storage::DmPartCo::availablePartNumber | ( | storage::PartitionType | type = storage::PRIMARY |
) |
| int DmPartCo::resizePartition | ( | DmPart * | p, | |
| unsigned long | newCyl | |||
| ) |
| int DmPartCo::resizeVolume | ( | Volume * | v, | |
| unsigned long long | newSize | |||
| ) | [virtual] |
Reimplemented from storage::Container.
| int DmPartCo::removeVolume | ( | Volume * | v | ) | [virtual] |
Reimplemented from storage::Container.
| int DmPartCo::removeDmPart | ( | ) |
| void storage::DmPartCo::getUnusedSpace | ( | std::list< Region > & | free, | |
| bool | all = true, |
|||
| bool | logical = false | |||
| ) |
| bool storage::DmPartCo::hasExtended | ( | ) | const |
| unsigned long long storage::DmPartCo::cylinderToKb | ( | unsigned long | val | ) | const [inline] |
| unsigned long storage::DmPartCo::kbToCylinder | ( | unsigned long long | val | ) | const [inline] |
| string storage::DmPartCo::getPartName | ( | unsigned | nr | ) | const |
| virtual void storage::DmPartCo::getCommitActions | ( | std::list< storage::commitAction * > & | l | ) | const [virtual] |
Reimplemented from storage::Container.
| virtual int storage::DmPartCo::getToCommit | ( | storage::CommitStage | stage, | |
| std::list< Container * > & | col, | |||
| std::list< Volume * > & | vol | |||
| ) | [virtual] |
Reimplemented from storage::Container.
| int DmPartCo::commitChanges | ( | storage::CommitStage | stage | ) | [virtual] |
Reimplemented from storage::Container.
| int DmPartCo::commitChanges | ( | storage::CommitStage | stage, | |
| Volume * | vol | |||
| ) | [virtual] |
Reimplemented from storage::Container.
| Partition * DmPartCo::getPartition | ( | unsigned | nr, | |
| bool | del | |||
| ) |
| void DmPartCo::getInfo | ( | storage::DmPartCoInfo & | info | ) | const |
| bool DmPartCo::equalContent | ( | const DmPartCo & | rhs | ) | const |
| string DmPartCo::logDiff | ( | const DmPartCo & | d | ) | const [virtual] |
| void DmPartCo::logDifference | ( | const DmPartCo & | d | ) | const |
| string DmPartCo::undevName | ( | const string & | name | ) | [static] |
Reimplemented in storage::DmraidCo.
| string DmPartCo::numToName | ( | unsigned | num | ) | const |
| DmPartPair storage::DmPartCo::dmpartPair | ( | bool(*)(const DmPart &) | CheckDmPart = NULL |
) | [inline, protected] |
| DmPartIter storage::DmPartCo::dmpartBegin | ( | bool(*)(const DmPart &) | CheckDmPart = NULL |
) | [inline, protected] |
| DmPartIter storage::DmPartCo::dmpartEnd | ( | bool(*)(const DmPart &) | CheckDmPart = NULL |
) | [inline, protected] |
| ConstDmPartPair storage::DmPartCo::dmpartPair | ( | bool(*)(const DmPart &) | CheckDmPart = NULL |
) | const [inline, protected] |
| ConstDmPartIter storage::DmPartCo::dmpartBegin | ( | bool(*)(const DmPart &) | CheckDmPart = NULL |
) | const [inline, protected] |
| ConstDmPartIter storage::DmPartCo::dmpartEnd | ( | bool(*)(const DmPart &) | CheckDmPart = NULL |
) | const [inline, protected] |
| virtual void storage::DmPartCo::print | ( | std::ostream & | s | ) | const [inline, protected, virtual] |
| virtual Container* storage::DmPartCo::getCopy | ( | ) | const [inline, protected, virtual] |
| void DmPartCo::activate_part | ( | bool | val | ) | [protected] |
| void DmPartCo::init | ( | ProcPart & | ppart | ) | [protected] |
| void DmPartCo::createDisk | ( | ProcPart & | ppart | ) | [protected] |
| void DmPartCo::getVolumes | ( | ProcPart & | ppart | ) | [protected] |
| void DmPartCo::updatePointers | ( | bool | invalid = false |
) | [protected] |
| void DmPartCo::updateMinor | ( | ) | [protected] |
Reimplemented in storage::DmraidCo.
| int DmPartCo::addNewDev | ( | string & | device | ) | [protected] |
| int DmPartCo::updateDelDev | ( | ) | [protected] |
| void DmPartCo::handleWholeDevice | ( | ) | [protected] |
| void DmPartCo::removeFromMemory | ( | ) | [protected] |
| void DmPartCo::removePresentPartitions | ( | ) | [protected] |
| bool DmPartCo::validPartition | ( | const Partition * | p | ) | [protected] |
| bool DmPartCo::findDm | ( | unsigned | nr, | |
| DmPartIter & | i | |||
| ) | [protected] |
| static bool storage::DmPartCo::partNotDeleted | ( | const DmPart & | d | ) | [inline, static, protected] |
| int DmPartCo::doCreate | ( | Volume * | v | ) | [protected, virtual] |
Reimplemented from storage::Container.
| int DmPartCo::doRemove | ( | Volume * | v | ) | [protected, virtual] |
Reimplemented from storage::Container.
| int DmPartCo::doResize | ( | Volume * | v | ) | [protected, virtual] |
Reimplemented from storage::Container.
| int DmPartCo::doSetType | ( | DmPart * | v | ) | [protected] |
| int DmPartCo::doCreateLabel | ( | ) | [protected] |
| int DmPartCo::doRemove | ( | ) | [protected, virtual] |
Reimplemented in storage::DmraidCo.
| string DmPartCo::removeText | ( | bool | doing | ) | const [protected, virtual] |
| string DmPartCo::setDiskLabelText | ( | bool | doing | ) | const [protected, virtual] |
Reimplemented in storage::DmraidCo.
| void DmPartCo::logData | ( | const string & | Dir | ) | [protected, virtual] |
friend class Storage [friend] |
| std::ostream& operator<< | ( | std::ostream & | s, | |
| const DmPartCo & | d | |||
| ) | [friend] |
string storage::DmPartCo::udev_path [protected] |
std::list<string> storage::DmPartCo::udev_id [protected] |
string storage::DmPartCo::logfile_name [protected] |
string storage::DmPartCo::sysfs_dir [protected] |
Disk* storage::DmPartCo::disk [protected] |
bool storage::DmPartCo::active [protected] |
Reimplemented in storage::DmraidCo.
bool storage::DmPartCo::valid [protected] |
bool storage::DmPartCo::del_ptable [protected] |
unsigned storage::DmPartCo::num_part [protected] |
storage::DmPartCoInfo storage::DmPartCo::info [mutable, protected] |
Reimplemented from storage::Container.
1.5.0