#include <NfsCo.h>

Public Member Functions | |
| NfsCo (Storage *const s) | |
| NfsCo (Storage *const s, const EtcFstab &fstab, SystemInfo &systeminfo) | |
| NfsCo (const NfsCo &c) | |
| virtual | ~NfsCo () |
| int | addNfs (const string &nfsDev, unsigned long long sizeK, const string &opts, const string &mp, bool nfs4) |
| int | removeVolume (Volume *v) |
| int | doRemove (Volume *) |
| bool | equalContent (const Container &rhs) const |
| virtual void | logDifferenceWithVolumes (std::ostream &log, const Container &rhs) const |
Static Public Member Functions | |
| static storage::CType | staticType () |
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 |
| bool | findNfs (const string &dev, NfsIter &i) |
| bool | findNfs (const string &dev) |
| void | getNfsData (const EtcFstab &fstab, SystemInfo &systeminfo) |
| virtual void | print (std::ostream &s) const |
| virtual Container * | getCopy () const |
Static Protected Member Functions | |
| static list< string > | filterOpts (const list< string > &opts) |
Private Member Functions | |
| NfsCo & | operator= (const NfsCo &) |
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] |
| storage::NfsCo::NfsCo | ( | Storage *const | s, | |
| const EtcFstab & | fstab, | |||
| SystemInfo & | systeminfo | |||
| ) |
References getNfsData(), and y2deb.
| storage::NfsCo::NfsCo | ( | const NfsCo & | c | ) |
| storage::NfsCo::~NfsCo | ( | ) | [virtual] |
References storage::Device::dev, and y2deb.
| static storage::CType storage::NfsCo::staticType | ( | ) | [inline, static] |
| int storage::NfsCo::addNfs | ( | const string & | nfsDev, | |
| unsigned long long | sizeK, | |||
| const string & | opts, | |||
| const string & | mp, | |||
| bool | nfs4 | |||
| ) |
| int storage::NfsCo::removeVolume | ( | Volume * | v | ) | [virtual] |
| int storage::NfsCo::doRemove | ( | Volume * | v | ) | [virtual] |
Reimplemented from storage::Container.
References storage::Container::getStorage(), storage::Device::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::Device::silent, and y2mil.
| bool storage::NfsCo::equalContent | ( | const Container & | rhs | ) | const [virtual] |
Reimplemented from storage::Container.
References storage::IterPair< Iter >::begin(), storage::IterPair< Iter >::end(), storage::equalContent(), and nfsPair().
| void storage::NfsCo::logDifferenceWithVolumes | ( | std::ostream & | log, | |
| const Container & | rhs | |||
| ) | const [virtual] |
References nfsBegin(), and nfsEnd().
Referenced by equalContent(), findNfs(), logDifferenceWithVolumes(), 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 storage::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 storage::NfsCo::findNfs | ( | const string & | dev | ) | [protected] |
References findNfs().
| list< string > storage::NfsCo::filterOpts | ( | const list< string > & | opts | ) | [static, protected] |
| void storage::NfsCo::getNfsData | ( | const EtcFstab & | fstab, | |
| SystemInfo & | systeminfo | |||
| ) | [protected] |
References storage::Container::addToList(), storage::Device::altNames(), storage::Nfs::canonicalName(), storage::contains(), filterOpts(), findNfs(), storage::ProcMounts::getEntries(), storage::EtcFstab::getEntries(), storage::SystemInfo::getProcMounts(), storage::getStatVfs(), storage::Device::setAltNames(), storage::Volume::setFstabOption(), storage::Volume::setIgnoreFstab(), storage::Volume::setMount(), storage::Volume::setSize(), and storage::StatVfs::sizeK.
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] |
friend class Storage [friend] |
Reimplemented from storage::Container.
| std::ostream& operator<< | ( | std::ostream & | s, | |
| const NfsCo & | d | |||
| ) | [friend] |
1.5.6