#include <NfsCo.h>

Public Member Functions | |
| NfsCo (Storage *const s, ProcMounts &mounts) | |
| NfsCo (Storage *const s) | |
| NfsCo (const NfsCo &rhs) | |
| virtual | ~NfsCo () |
| int | addNfs (const string &nfsDev, unsigned long long sizeK, const string &mp) |
| int | removeVolume (Volume *v) |
| int | doRemove (Volume *) |
| bool | equalContent (const Container &rhs) const |
| void | logDifference (const Container &d) const |
Static Public Member Functions | |
| static storage::CType | staticType () |
| static bool | isNfsDev (const string &dev) |
Protected Types | |
| typedef CastIterator< VIter, Nfs * > | NfsInter |
| typedef CastIterator< CVIter, const Nfs * > | NfsCInter |
| typedef CheckFnc< const Nfs > | CheckFncNfs |
| typedef CheckerIterator < CheckFncNfs, NfsPI < CheckFncNfs >::type, NfsInter, Nfs > | NfsPIterator |
| typedef CheckerIterator < CheckFncNfs, NfsCPI < CheckFncNfs >::type, NfsCInter, const Nfs > | NfsCPIterator |
| typedef DerefIterator < NfsPIterator, Nfs > | NfsIter |
| typedef DerefIterator < NfsCPIterator, const Nfs > | ConstNfsIter |
| typedef IterPair< NfsIter > | NfsPair |
| typedef IterPair< ConstNfsIter > | ConstNfsPair |
Protected Member Functions | |
| NfsPair | nfsPair (bool(*Check)(const Nfs &)=NULL) |
| NfsIter | nfsBegin (bool(*Check)(const Nfs &)=NULL) |
| NfsIter | nfsEnd (bool(*Check)(const Nfs &)=NULL) |
| ConstNfsPair | nfsPair (bool(*Check)(const Nfs &)=NULL) const |
| ConstNfsIter | nfsBegin (bool(*Check)(const Nfs &)=NULL) const |
| ConstNfsIter | nfsEnd (bool(*Check)(const Nfs &)=NULL) const |
| NfsCo (Storage *const s, const string &File) | |
| bool | findNfs (const string &dev, NfsIter &i) |
| bool | findNfs (const string &dev) |
| void | getNfsData (ProcMounts &mounts) |
| void | init () |
| virtual void | print (std::ostream &s) const |
| virtual Container * | getCopy () const |
| void | logData (const string &Dir) |
Friends | |
| class | Storage |
| std::ostream & | operator<< (std::ostream &, const NfsCo &) |
Classes | |
| struct | NfsCPI |
| struct | NfsPI |
typedef CastIterator<VIter, Nfs *> storage::NfsCo::NfsInter [protected] |
typedef CastIterator<CVIter, const Nfs *> storage::NfsCo::NfsCInter [protected] |
typedef CheckFnc<const Nfs> storage::NfsCo::CheckFncNfs [protected] |
typedef CheckerIterator< CheckFncNfs, NfsPI<CheckFncNfs>::type, NfsInter, Nfs > storage::NfsCo::NfsPIterator [protected] |
typedef CheckerIterator< CheckFncNfs, NfsCPI<CheckFncNfs>::type, NfsCInter, const Nfs > storage::NfsCo::NfsCPIterator [protected] |
typedef DerefIterator<NfsPIterator,Nfs> storage::NfsCo::NfsIter [protected] |
typedef DerefIterator<NfsCPIterator,const Nfs> storage::NfsCo::ConstNfsIter [protected] |
typedef IterPair<NfsIter> storage::NfsCo::NfsPair [protected] |
typedef IterPair<ConstNfsIter> storage::NfsCo::ConstNfsPair [protected] |
| NfsCo::NfsCo | ( | Storage *const | s, | |
| ProcMounts & | mounts | |||
| ) |
| NfsCo::NfsCo | ( | const NfsCo & | rhs | ) |
| NfsCo::~NfsCo | ( | ) | [virtual] |
References y2debug.
| static storage::CType storage::NfsCo::staticType | ( | ) | [inline, static] |
| int NfsCo::addNfs | ( | const string & | nfsDev, | |
| unsigned long long | sizeK, | |||
| const string & | mp | |||
| ) |
References storage::Container::addToList(), storage::Volume::changeMount(), storage::Volume::setSize(), and y2mil.
Referenced by storage::Storage::addNfsDevice(), and storage::Storage::checkNfsDevice().
| bool NfsCo::isNfsDev | ( | const string & | dev | ) | [static] |
References y2mil.
| int NfsCo::removeVolume | ( | Volume * | v | ) | [virtual] |
| int NfsCo::doRemove | ( | Volume * | v | ) | [virtual] |
Reimplemented from storage::Container.
References storage::Container::getStorage(), storage::Volume::name(), storage::Container::name(), storage::NFS_REMOVE_INVALID_VOLUME, storage::NFS_REMOVE_VOLUME_LIST_ERASE, storage::Volume::prepareRemove(), storage::Container::removeFromList(), storage::Nfs::removeText(), storage::Storage::showInfoCb(), storage::Container::silent, and y2milestone.
| bool NfsCo::equalContent | ( | const Container & | rhs | ) | const [virtual] |
Reimplemented from storage::Container.
References storage::IterPair< Iter >::begin(), storage::IterPair< Iter >::end(), storage::Container::equalContent(), and nfsPair().
| void NfsCo::logDifference | ( | const Container & | d | ) | const [virtual] |
Reimplemented from storage::Container.
References storage::IterPair< Iter >::begin(), storage::IterPair< Iter >::end(), storage::Container::getDiffString(), nfsPair(), and y2mil.
References nfsBegin(), and nfsEnd().
Referenced by equalContent(), findNfs(), logDifference(), and NfsCo().
| ConstNfsPair storage::NfsCo::nfsPair | ( | bool(*)(const Nfs &) | Check = NULL |
) | const [inline, protected] |
References nfsBegin(), and nfsEnd().
| ConstNfsIter storage::NfsCo::nfsBegin | ( | bool(*)(const Nfs &) | Check = NULL |
) | const [inline, protected] |
References storage::Container::begin(), and storage::Container::end().
| ConstNfsIter storage::NfsCo::nfsEnd | ( | bool(*)(const Nfs &) | Check = NULL |
) | const [inline, protected] |
References storage::Container::begin(), and storage::Container::end().
| bool NfsCo::findNfs | ( | const string & | dev, | |
| NfsIter & | i | |||
| ) | [protected] |
References storage::IterPair< Iter >::begin(), storage::IterPair< Iter >::end(), and nfsPair().
Referenced by findNfs(), getNfsData(), and removeVolume().
| bool NfsCo::findNfs | ( | const string & | dev | ) | [protected] |
References findNfs().
| void NfsCo::getNfsData | ( | ProcMounts & | mounts | ) | [protected] |
References storage::Container::addToList(), findNfs(), storage::Storage::getDfSize(), storage::ProcMounts::getEntries(), storage::EtcFstab::getEntries(), storage::Storage::getFstab(), storage::Container::getStorage(), storage::lengthof(), storage::mergeString(), storage::Volume::setFstabOption(), storage::Volume::setIgnoreFstab(), storage::Volume::setMount(), storage::Volume::setSize(), and y2mil.
Referenced by NfsCo().
| void NfsCo::init | ( | ) | [protected] |
Referenced by NfsCo().
| virtual void storage::NfsCo::print | ( | std::ostream & | s | ) | const [inline, protected, virtual] |
Reimplemented from storage::Container.
| virtual Container* storage::NfsCo::getCopy | ( | ) | const [inline, protected, virtual] |
| void NfsCo::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 NfsCo & | d | |||
| ) | [friend] |
1.5.5