#include <LoopCo.h>

Public Member Functions | |
| LoopCo (Storage *const s, bool detect, ProcPart &ppart) | |
| LoopCo (const LoopCo &rhs) | |
| virtual | ~LoopCo () |
| int | createLoop (const string &file, bool reuseExisting, unsigned long long sizeK, bool dmcr, string &device) |
| int | updateLoop (const string &device, const string &file, bool reuseExisting, unsigned long long sizeK) |
| int | removeLoop (const string &file, bool removeFile=false) |
| void | loopIds (std::list< unsigned > &l) const |
| int | removeVolume (Volume *v) |
| bool | equalContent (const Container &rhs) const |
| void | logDifference (const Container &d) const |
Static Public Member Functions | |
| static storage::CType | staticType () |
Protected Types | |
| typedef CastIterator< VIter, Loop * > | LoopInter |
| typedef CastIterator< CVIter, const Loop * > | LoopCInter |
| typedef CheckFnc< const Loop > | CheckFncLoop |
| typedef CheckerIterator < CheckFncLoop, LoopPI < CheckFncLoop >::type, LoopInter, Loop > | LoopPIterator |
| typedef CheckerIterator < CheckFncLoop, LoopCPI < CheckFncLoop >::type, LoopCInter, const Loop > | LoopCPIterator |
| typedef DerefIterator < LoopPIterator, Loop > | LoopIter |
| typedef DerefIterator < LoopCPIterator, const Loop > | ConstLoopIter |
| typedef IterPair< LoopIter > | LoopPair |
| typedef IterPair< ConstLoopIter > | ConstLoopPair |
Protected Member Functions | |
| LoopPair | loopPair (bool(*Check)(const Loop &)=NULL) |
| LoopIter | loopBegin (bool(*Check)(const Loop &)=NULL) |
| LoopIter | loopEnd (bool(*Check)(const Loop &)=NULL) |
| ConstLoopPair | loopPair (bool(*Check)(const Loop &)=NULL) const |
| ConstLoopIter | loopBegin (bool(*Check)(const Loop &)=NULL) const |
| ConstLoopIter | loopEnd (bool(*Check)(const Loop &)=NULL) const |
| LoopCo (Storage *const s, const string &File) | |
| void | getLoopData (ProcPart &ppart) |
| bool | findLoop (unsigned num, LoopIter &i) |
| bool | findLoop (unsigned num) |
| bool | findLoop (const string &file, LoopIter &i) |
| bool | findLoop (const string &file) |
| bool | findLoopDev (const string &dev, LoopIter &i) |
| void | addLoop (Loop *m) |
| void | updateEntry (const Loop *m) |
| void | init () |
| virtual void | print (std::ostream &s) const |
| virtual Container * | getCopy () const |
| int | doCreate (Volume *v) |
| int | doRemove (Volume *v) |
| void | logData (const string &Dir) |
Friends | |
| class | Storage |
| std::ostream & | operator<< (std::ostream &, const LoopCo &) |
Classes | |
| struct | LoopCPI |
| struct | LoopPI |
typedef CastIterator<VIter, Loop *> storage::LoopCo::LoopInter [protected] |
typedef CastIterator<CVIter, const Loop *> storage::LoopCo::LoopCInter [protected] |
typedef CheckFnc<const Loop> storage::LoopCo::CheckFncLoop [protected] |
typedef CheckerIterator< CheckFncLoop, LoopPI<CheckFncLoop>::type, LoopInter, Loop > storage::LoopCo::LoopPIterator [protected] |
typedef CheckerIterator< CheckFncLoop, LoopCPI<CheckFncLoop>::type, LoopCInter, const Loop > storage::LoopCo::LoopCPIterator [protected] |
typedef DerefIterator<LoopPIterator,Loop> storage::LoopCo::LoopIter [protected] |
typedef DerefIterator<LoopCPIterator,const Loop> storage::LoopCo::ConstLoopIter [protected] |
typedef IterPair<LoopIter> storage::LoopCo::LoopPair [protected] |
typedef IterPair<ConstLoopIter> storage::LoopCo::ConstLoopPair [protected] |
| LoopCo::LoopCo | ( | const LoopCo & | rhs | ) |
| LoopCo::~LoopCo | ( | ) | [virtual] |
References y2debug.
| LoopCo::LoopCo | ( | Storage *const | s, | |
| const string & | File | |||
| ) | [protected] |
| static storage::CType storage::LoopCo::staticType | ( | ) | [inline, static] |
| int LoopCo::createLoop | ( | const string & | file, | |
| bool | reuseExisting, | |||
| unsigned long long | sizeK, | |||
| bool | dmcr, | |||
| string & | device | |||
| ) |
| int LoopCo::updateLoop | ( | const string & | device, | |
| const string & | file, | |||
| bool | reuseExisting, | |||
| unsigned long long | sizeK | |||
| ) |
| int LoopCo::removeLoop | ( | const string & | file, | |
| bool | removeFile = false | |||
| ) |
References findLoop(), findLoopDev(), storage::LOOP_CHANGE_READONLY, storage::LOOP_REMOVE_CREATE_NOT_FOUND, storage::LOOP_REMOVE_USED_BY, storage::LOOP_UNKNOWN_FILE, storage::Container::readonly(), storage::Container::removeFromList(), storage::UB_NONE, and y2milestone.
Referenced by storage::Storage::removeFileLoop(), and removeVolume().
| void LoopCo::loopIds | ( | std::list< unsigned > & | l | ) | const |
References storage::IterPair< Iter >::begin(), storage::IterPair< Iter >::end(), loopPair(), and storage::Loop::notDeleted().
Referenced by storage::Loop::Loop().
| int LoopCo::removeVolume | ( | Volume * | v | ) | [virtual] |
Reimplemented from storage::Container.
References storage::LOOP_REMOVE_INVALID_VOLUME, storage::Volume::name(), removeLoop(), and y2milestone.
| bool LoopCo::equalContent | ( | const Container & | rhs | ) | const [virtual] |
Reimplemented from storage::Container.
References storage::IterPair< Iter >::begin(), storage::IterPair< Iter >::end(), storage::Container::equalContent(), and loopPair().
| void LoopCo::logDifference | ( | const Container & | d | ) | const [virtual] |
Reimplemented from storage::Container.
References storage::IterPair< Iter >::begin(), storage::IterPair< Iter >::end(), storage::Container::getDiffString(), loopPair(), and y2mil.
References loopBegin(), and loopEnd().
Referenced by equalContent(), findLoop(), findLoopDev(), getLoopData(), logDifference(), LoopCo(), and loopIds().
| ConstLoopPair storage::LoopCo::loopPair | ( | bool(*)(const Loop &) | Check = NULL |
) | const [inline, protected] |
References loopBegin(), and loopEnd().
| ConstLoopIter storage::LoopCo::loopBegin | ( | bool(*)(const Loop &) | Check = NULL |
) | const [inline, protected] |
References storage::Container::begin(), and storage::Container::end().
| ConstLoopIter storage::LoopCo::loopEnd | ( | bool(*)(const Loop &) | Check = NULL |
) | const [inline, protected] |
References storage::Container::begin(), and storage::Container::end().
| void LoopCo::getLoopData | ( | ProcPart & | ppart | ) | [protected] |
References storage::Container::addToList(), storage::IterPair< Iter >::begin(), storage::checkNormalFile(), storage::Volume::device(), storage::IterPair< Iter >::end(), storage::Storage::findDm(), storage::Storage::findDmUsing(), findLoop(), storage::EtcFstab::getFileBasedLoops(), storage::Storage::getFstab(), storage::Container::getStorage(), storage::Volume::loopInUse(), loopPair(), storage::Loop::notDeleted(), storage::Storage::removeDm(), storage::Storage::root(), storage::Loop::setEncryption(), storage::Volume::setFs(), storage::Volume::sizeK(), storage::Volume::toFsType(), y2mil, y2milestone, and y2warning.
Referenced by LoopCo().
| bool LoopCo::findLoop | ( | unsigned | num, | |
| LoopIter & | i | |||
| ) | [protected] |
References storage::IterPair< Iter >::begin(), storage::IterPair< Iter >::end(), loopPair(), and storage::Loop::notDeleted().
Referenced by createLoop(), findLoop(), getLoopData(), and removeLoop().
| bool LoopCo::findLoop | ( | unsigned | num | ) | [protected] |
References findLoop().
| bool LoopCo::findLoop | ( | const string & | file, | |
| LoopIter & | i | |||
| ) | [protected] |
| bool LoopCo::findLoop | ( | const string & | file | ) | [protected] |
References findLoop().
| bool LoopCo::findLoopDev | ( | const string & | dev, | |
| LoopIter & | i | |||
| ) | [protected] |
References storage::IterPair< Iter >::begin(), storage::IterPair< Iter >::end(), loopPair(), and storage::Loop::notDeleted().
Referenced by removeLoop(), and updateLoop().
| void storage::LoopCo::addLoop | ( | Loop * | m | ) | [protected] |
| void storage::LoopCo::updateEntry | ( | const Loop * | m | ) | [protected] |
| void LoopCo::init | ( | ) | [protected] |
| virtual void storage::LoopCo::print | ( | std::ostream & | s | ) | const [inline, protected, virtual] |
Reimplemented from storage::Container.
| virtual Container* storage::LoopCo::getCopy | ( | ) | const [inline, protected, virtual] |
| int LoopCo::doCreate | ( | Volume * | v | ) | [protected, virtual] |
| int LoopCo::doRemove | ( | Volume * | v | ) | [protected, virtual] |
Reimplemented from storage::Container.
References storage::Container::getStorage(), storage::LOOP_NOT_IN_LIST, storage::LOOP_REMOVE_FILE_FAILED, storage::LOOP_REMOVE_INVALID_VOLUME, storage::Volume::name(), storage::Container::removeFromList(), storage::Storage::showInfoCb(), storage::Container::silent, and y2milestone.
| void LoopCo::logData | ( | const string & | Dir | ) | [protected, virtual] |
Reimplemented from storage::Container.
friend class Storage [friend] |
Reimplemented from storage::Container.
| std::ostream& operator<< | ( | std::ostream & | s, | |
| const LoopCo & | d | |||
| ) | [friend] |
1.5.5