|
yast2-storage
|
#include <BtrfsCo.h>
Classes | |
| struct | BtrfsCPI |
| struct | BtrfsPI |
Public Member Functions | |
| BtrfsCo (Storage *const s) | |
| BtrfsCo (Storage *const s, SystemInfo &systeminfo) | |
| BtrfsCo (const BtrfsCo &c) | |
| virtual | ~BtrfsCo () |
| void | addFromVolume (const Volume &v, string &uuid) |
| void | eraseVolume (Volume *v) |
| bool | existSubvolume (const string &device, const string &name) |
| int | createSubvolume (const string &device, const string &name) |
| int | removeSubvolume (const string &device, const string &name) |
| int | extendVolume (const string &device, const string &dev) |
| int | extendVolume (const string &device, const list< string > &devs) |
| int | shrinkVolume (const string &device, const string &dev) |
| int | shrinkVolume (const string &device, const list< string > &devs) |
| bool | deviceToUuid (const string &device, string &uuid) |
| int | doRemove (Volume *v) |
| void | changeDeviceName (const string &old, const string &nw) |
| int | commitChanges (CommitStage stage, Volume *vol) |
| void | getToCommit (storage::CommitStage stage, list< const Container * > &col, list< const Volume * > &vo) const |
| int | resizeVolume (Volume *v, Container *r_co, Volume *r_v, unsigned long long newSize) |
| int | removeVolume (Volume *v) |
| int | removeVolume (Volume *v, bool quiet) |
| int | removeUuid (const string &uuid) |
| bool | equalContent (const Container &rhs) const |
| void | saveData (xmlNode *node) const |
| string | fakeUuid () |
| virtual void | logDifferenceWithVolumes (std::ostream &log, const Container &rhs) const |
| virtual void | logData (const string &Dir) const |
Static Public Member Functions | |
| static storage::CType | staticType () |
Protected Types | |
| typedef CastIterator< VIter, Btrfs * > | BtrfsInter |
| typedef CastIterator< CVIter, const Btrfs * > | BtrfsCInter |
| typedef CheckFnc< const Btrfs > | CheckFncBtrfs |
| typedef CheckerIterator < CheckFncBtrfs, BtrfsPI < CheckFncBtrfs >::type, BtrfsInter, Btrfs > | BtrfsPIterator |
| typedef CheckerIterator < CheckFncBtrfs, BtrfsCPI < CheckFncBtrfs >::type, BtrfsCInter, const Btrfs > | BtrfsCPIterator |
| typedef DerefIterator < BtrfsPIterator, Btrfs > | BtrfsIter |
| typedef DerefIterator < BtrfsCPIterator, const Btrfs > | ConstBtrfsIter |
| typedef IterPair< BtrfsIter > | BtrfsPair |
| typedef IterPair< ConstBtrfsIter > | ConstBtrfsPair |
Protected Member Functions | |
| BtrfsPair | btrfsPair (bool(*Check)(const Btrfs &)=NULL) |
| BtrfsIter | btrfsBegin (bool(*Check)(const Btrfs &)=NULL) |
| BtrfsIter | btrfsEnd (bool(*Check)(const Btrfs &)=NULL) |
| ConstBtrfsPair | btrfsPair (bool(*Check)(const Btrfs &)=NULL) const |
| ConstBtrfsIter | btrfsBegin (bool(*Check)(const Btrfs &)=NULL) const |
| ConstBtrfsIter | btrfsEnd (bool(*Check)(const Btrfs &)=NULL) const |
| void | getBtrfsData (SystemInfo &systeminfo) |
| bool | findBtrfs (const string &uuid, BtrfsIter &i) |
| void | addBtrfs (Btrfs *m) |
| virtual void | print (std::ostream &s) const |
| virtual Container * | getCopy () const |
Private Member Functions | |
| BtrfsCo & | operator= (const BtrfsCo &) |
Friends | |
| class | Storage |
| std::ostream & | operator<< (std::ostream &, const BtrfsCo &) |
typedef CastIterator<CVIter, const Btrfs *> storage::BtrfsCo::BtrfsCInter [protected] |
typedef CheckerIterator< CheckFncBtrfs, BtrfsCPI<CheckFncBtrfs>::type, BtrfsCInter, const Btrfs > storage::BtrfsCo::BtrfsCPIterator [protected] |
typedef CastIterator<VIter, Btrfs *> storage::BtrfsCo::BtrfsInter [protected] |
typedef DerefIterator<BtrfsPIterator,Btrfs> storage::BtrfsCo::BtrfsIter [protected] |
typedef IterPair<BtrfsIter> storage::BtrfsCo::BtrfsPair [protected] |
typedef CheckerIterator< CheckFncBtrfs, BtrfsPI<CheckFncBtrfs>::type, BtrfsInter, Btrfs > storage::BtrfsCo::BtrfsPIterator [protected] |
typedef CheckFnc<const Btrfs> storage::BtrfsCo::CheckFncBtrfs [protected] |
typedef DerefIterator<BtrfsCPIterator,const Btrfs> storage::BtrfsCo::ConstBtrfsIter [protected] |
typedef IterPair<ConstBtrfsIter> storage::BtrfsCo::ConstBtrfsPair [protected] |
| storage::BtrfsCo::BtrfsCo | ( | Storage *const | s, |
| SystemInfo & | systeminfo | ||
| ) |
| storage::BtrfsCo::BtrfsCo | ( | const BtrfsCo & | c | ) |
References storage::Container::vols.
| storage::BtrfsCo::~BtrfsCo | ( | ) | [virtual] |
References storage::SystemInfo::getCmdBtrfsShow(), storage::CmdBtrfsShow::getUuids(), and y2mil.
| void storage::BtrfsCo::addBtrfs | ( | Btrfs * | m | ) | [protected] |
| void storage::BtrfsCo::addFromVolume | ( | const Volume & | v, |
| string & | uuid | ||
| ) |
Referenced by storage::Storage::changeFormatVolume().
References storage::Container::begin(), and storage::Container::end().
Referenced by btrfsPair().
| ConstBtrfsIter storage::BtrfsCo::btrfsBegin | ( | bool(*)(const Btrfs &) | Check = NULL | ) | const [inline, protected] |
References storage::Container::begin(), and storage::Container::end().
References storage::Container::begin(), and storage::Container::end().
Referenced by btrfsPair().
| ConstBtrfsIter storage::BtrfsCo::btrfsEnd | ( | bool(*)(const Btrfs &) | Check = NULL | ) | const [inline, protected] |
References storage::Container::begin(), and storage::Container::end().
References btrfsBegin(), and btrfsEnd().
Referenced by storage::Storage::detectBtrfs(), and equalContent().
| ConstBtrfsPair storage::BtrfsCo::btrfsPair | ( | bool(*)(const Btrfs &) | Check = NULL | ) | const [inline, protected] |
References btrfsBegin(), and btrfsEnd().
| void storage::BtrfsCo::changeDeviceName | ( | const string & | old, |
| const string & | nw | ||
| ) | [virtual] |
Reimplemented from storage::Container.
| int storage::BtrfsCo::commitChanges | ( | CommitStage | stage, |
| Volume * | vol | ||
| ) | [virtual] |
Reimplemented from storage::Container.
References storage::BTRFS_COMMIT_INVALID_VOLUME, storage::Btrfs::doReduce(), and storage::Btrfs::needReduce().
| int storage::BtrfsCo::createSubvolume | ( | const string & | device, |
| const string & | name | ||
| ) |
Referenced by storage::Storage::createSubvolume().
| bool storage::BtrfsCo::deviceToUuid | ( | const string & | device, |
| string & | uuid | ||
| ) |
References storage::Device::getUsedBy(), and storage::UB_BTRFS.
| int storage::BtrfsCo::doRemove | ( | Volume * | v | ) | [virtual] |
Reimplemented from storage::Container.
References storage::BTRFS_REMOVE_NO_BTRFS, storage::Btrfs::clearSignature(), storage::Container::getStorage(), storage::Device::isSilent(), storage::Volume::prepareRemove(), storage::Container::removeFromList(), storage::Btrfs::removeText(), and storage::Storage::showInfoCb().
| bool storage::BtrfsCo::equalContent | ( | const Container & | rhs | ) | const [virtual] |
Reimplemented from storage::Container.
References storage::IterPair< Iter >::begin(), btrfsPair(), and storage::IterPair< Iter >::end().
| void storage::BtrfsCo::eraseVolume | ( | Volume * | v | ) |
Referenced by storage::Storage::changeFormatVolume().
| bool storage::BtrfsCo::existSubvolume | ( | const string & | device, |
| const string & | name | ||
| ) |
Referenced by storage::Storage::existSubvolume().
| int storage::BtrfsCo::extendVolume | ( | const string & | device, |
| const string & | dev | ||
| ) |
Referenced by storage::Storage::extendBtrfsVolume().
| int storage::BtrfsCo::extendVolume | ( | const string & | device, |
| const list< string > & | devs | ||
| ) |
| string storage::BtrfsCo::fakeUuid | ( | ) |
| bool storage::BtrfsCo::findBtrfs | ( | const string & | uuid, |
| BtrfsIter & | i | ||
| ) | [protected] |
| void storage::BtrfsCo::getBtrfsData | ( | SystemInfo & | systeminfo | ) | [protected] |
References storage::Device::altNames(), storage::BTRFS, storage::Device::device(), storage::CmdBtrfsShow::Entry::devices, storage::Storage::findDevice(), storage::Storage::findVolume(), storage::Volume::fsTypeString(), storage::SystemInfo::getCmdBtrfsShow(), storage::CmdBtrfsShow::getEntry(), storage::Volume::getFormat(), storage::Volume::getFs(), storage::Volume::getMount(), storage::Container::getStorage(), storage::Device::getUsedBy(), storage::Device::setAltNames(), storage::Device::sizeK(), storage::UB_BTRFS, storage::Container::vols, y2mil, and y2war.
| virtual Container* storage::BtrfsCo::getCopy | ( | ) | const [inline, protected, virtual] |
Implements storage::Container.
References BtrfsCo().
| void storage::BtrfsCo::getToCommit | ( | storage::CommitStage | stage, |
| list< const Container * > & | col, | ||
| list< const Volume * > & | vo | ||
| ) | const [virtual] |
Reimplemented from storage::Container.
| void storage::BtrfsCo::logData | ( | const string & | Dir | ) | const [virtual] |
Reimplemented from storage::Container.
| void storage::BtrfsCo::logDifferenceWithVolumes | ( | std::ostream & | log, |
| const Container & | rhs | ||
| ) | const [virtual] |
Implements storage::Container.
| virtual void storage::BtrfsCo::print | ( | std::ostream & | s | ) | const [inline, protected, virtual] |
Reimplemented from storage::Container.
| int storage::BtrfsCo::removeSubvolume | ( | const string & | device, |
| const string & | name | ||
| ) |
Referenced by storage::Storage::removeSubvolume().
| int storage::BtrfsCo::removeUuid | ( | const string & | uuid | ) |
Referenced by storage::Storage::removeUsing().
| int storage::BtrfsCo::removeVolume | ( | Volume * | v | ) | [virtual] |
Reimplemented from storage::Container.
| int storage::BtrfsCo::removeVolume | ( | Volume * | v, |
| bool | quiet | ||
| ) |
| int storage::BtrfsCo::resizeVolume | ( | Volume * | v, |
| Container * | r_co, | ||
| Volume * | r_v, | ||
| unsigned long long | newSize | ||
| ) |
References storage::BTRFS_MULTIDEV_SHRINK_UNSUPPORTED, storage::Btrfs::getDevices(), storage::Device::sizeK(), and y2mil.
Referenced by storage::Storage::resizeVolume().
| void storage::BtrfsCo::saveData | ( | xmlNode * | node | ) | const |
Reimplemented from storage::Container.
| int storage::BtrfsCo::shrinkVolume | ( | const string & | device, |
| const list< string > & | devs | ||
| ) |
| int storage::BtrfsCo::shrinkVolume | ( | const string & | device, |
| const string & | dev | ||
| ) |
Referenced by storage::Storage::shrinkBtrfsVolume().
| static storage::CType storage::BtrfsCo::staticType | ( | ) | [inline, static] |
Reimplemented from storage::Container.
References storage::BTRFSC.
| std::ostream& operator<< | ( | std::ostream & | s, |
| const BtrfsCo & | d | ||
| ) | [friend] |
friend class Storage [friend] |
Reimplemented from storage::Container.
1.7.3