|
yast2-storage
|
#include <Btrfs.h>
Public Member Functions | |
| Btrfs (const BtrfsCo &d, const Volume &v, unsigned long long sz, const list< string > &devices) | |
| Btrfs (const BtrfsCo &d, const Volume &v) | |
| Btrfs (const BtrfsCo &d, const xmlNode *node) | |
| Btrfs (const BtrfsCo &c, const Btrfs &v) | |
| virtual | ~Btrfs () |
| void | clearSubvol () |
| void | addSubvol (const string &path) |
| void | detectSubvol () |
| list< string > | getDevices (bool add_del=false) const |
| void | getDevices (list< string > &devs, bool add_del=false) const |
| void | getSubvolumes (list< Subvolume > &sv) const |
| bool | existSubvolume (const string &name) |
| int | createSubvolume (const string &name) |
| int | deleteSubvolume (const string &name) |
| int | extendVolume (const string &dev) |
| int | extendVolume (const list< string > &devs) |
| int | shrinkVolume (const string &dev) |
| int | shrinkVolume (const list< string > &devs) |
| void | getCommitActions (list< commitAction > &l) const |
| int | doDeleteSubvol () |
| int | doCreateSubvol () |
| int | doReduce () |
| int | doExtend () |
| Text | createSubvolText (bool doing, const string &name) const |
| Text | deleteSubvolText (bool doing, const string &name) const |
| Text | extendText (bool doing, const string &device) const |
| Text | reduceText (bool doing, const string &device) const |
| Text | removeText (bool doing) const |
| Text | formatText (bool doing) const |
| int | setFormat (bool format, storage::FsType fs) |
| virtual string | udevPath () const |
| virtual list< string > | udevId () const |
| virtual string | sysfsPath () const |
| void | countSubvolAddDel (unsigned &add, unsigned &rem) const |
| list< string > | getSubvolAddDel (bool) const |
| void | saveData (xmlNode *node) const |
| virtual void | print (std::ostream &s) const |
| void | getInfo (storage::BtrfsInfo &info) const |
| bool | equalContent (const Btrfs &rhs) const |
| void | logDifference (std::ostream &log, const Btrfs &rhs) const |
| void | unuseDev () const |
| int | clearSignature () |
| void | changeDeviceName (const string &old, const string &nw) |
Static Public Member Functions | |
| static bool | notDeleted (const Btrfs &l) |
| static bool | needCreateSubvol (const Btrfs &v) |
| static bool | needDeleteSubvol (const Btrfs &v) |
| static bool | needReduce (const Btrfs &v) |
| static bool | needExtend (const Btrfs &v) |
Protected Member Functions | |
| BtrfsCo * | co () |
| string | subvolNames (bool added) const |
| Volume const * | findRealVolume () const |
Protected Attributes | |
| list< string > | devices |
| list< string > | dev_add |
| list< string > | dev_rem |
| list< Subvolume > | subvol |
| storage::BtrfsInfo | info |
Private Member Functions | |
| Btrfs & | operator= (const Btrfs &v) |
| Btrfs (const Btrfs &) | |
Friends | |
| std::ostream & | operator<< (std::ostream &s, const Btrfs &l) |
| storage::Btrfs::Btrfs | ( | const BtrfsCo & | d, |
| const Volume & | v, | ||
| unsigned long long | sz, | ||
| const list< string > & | devices | ||
| ) |
| storage::Btrfs::Btrfs | ( | const BtrfsCo & | d, |
| const xmlNode * | node | ||
| ) |
References devices, and storage::getChildValue().
| storage::Btrfs::~Btrfs | ( | ) | [virtual] |
References storage::Volume::cont.
| storage::Btrfs::Btrfs | ( | const Btrfs & | ) | [private] |
| void storage::Btrfs::addSubvol | ( | const string & | path | ) |
| void storage::Btrfs::changeDeviceName | ( | const string & | old, |
| const string & | nw | ||
| ) |
| int storage::Btrfs::clearSignature | ( | ) |
References devices, storage::Volume::getContainer(), storage::Container::getStorage(), and storage::Storage::zeroDevice().
Referenced by storage::BtrfsCo::doRemove().
| void storage::Btrfs::clearSubvol | ( | ) | [inline] |
References subvol.
| BtrfsCo * storage::Btrfs::co | ( | ) | [protected] |
| void storage::Btrfs::countSubvolAddDel | ( | unsigned & | add, |
| unsigned & | rem | ||
| ) | const |
| Text storage::Btrfs::createSubvolText | ( | bool | doing, |
| const string & | name | ||
| ) | const |
References storage::_(), and storage::sformat().
| int storage::Btrfs::createSubvolume | ( | const string & | name | ) |
References storage::Subvolume::setCreated().
| Text storage::Btrfs::deleteSubvolText | ( | bool | doing, |
| const string & | name | ||
| ) | const |
References storage::_(), and storage::sformat().
| int storage::Btrfs::deleteSubvolume | ( | const string & | name | ) |
| void storage::Btrfs::detectSubvol | ( | ) |
| int storage::Btrfs::doCreateSubvol | ( | ) |
| int storage::Btrfs::doDeleteSubvol | ( | ) |
| int storage::Btrfs::doExtend | ( | ) |
| int storage::Btrfs::doReduce | ( | ) |
Referenced by storage::BtrfsCo::commitChanges().
| bool storage::Btrfs::equalContent | ( | const Btrfs & | rhs | ) | const |
| bool storage::Btrfs::existSubvolume | ( | const string & | name | ) |
References storage::Volume::getFormat().
| Text storage::Btrfs::extendText | ( | bool | doing, |
| const string & | device | ||
| ) | const |
References storage::_(), storage::Device::name(), and storage::sformat().
| int storage::Btrfs::extendVolume | ( | const string & | dev | ) |
| int storage::Btrfs::extendVolume | ( | const list< string > & | devs | ) |
| Volume const * storage::Btrfs::findRealVolume | ( | ) | const [protected] |
Referenced by formatText().
| Text storage::Btrfs::formatText | ( | bool | doing | ) | const [virtual] |
Reimplemented from storage::Volume.
References findRealVolume(), storage::Volume::formatText(), and y2mil.
| void storage::Btrfs::getCommitActions | ( | list< commitAction > & | l | ) | const [virtual] |
Reimplemented from storage::Volume.
References storage::Device::created(), storage::Storage::findVolume(), storage::Volume::getStorage(), storage::Storage::isUsedBySingleBtrfs(), and y2mil.
| list< string > storage::Btrfs::getDevices | ( | bool | add_del = false | ) | const |
| void storage::Btrfs::getDevices | ( | list< string > & | devs, |
| bool | add_del = false |
||
| ) | const |
| void storage::Btrfs::getInfo | ( | storage::BtrfsInfo & | info | ) | const |
| list< string > storage::Btrfs::getSubvolAddDel | ( | bool | add | ) | const |
| void storage::Btrfs::logDifference | ( | std::ostream & | log, |
| const Btrfs & | rhs | ||
| ) | const |
| bool storage::Btrfs::needCreateSubvol | ( | const Btrfs & | v | ) | [static] |
| bool storage::Btrfs::needDeleteSubvol | ( | const Btrfs & | v | ) | [static] |
| bool storage::Btrfs::needExtend | ( | const Btrfs & | v | ) | [static] |
| bool storage::Btrfs::needReduce | ( | const Btrfs & | v | ) | [static] |
References dev_add.
Referenced by storage::BtrfsCo::commitChanges().
| static bool storage::Btrfs::notDeleted | ( | const Btrfs & | l | ) | [inline, static] |
References storage::Device::deleted().
Referenced by storage::Storage::getBtrfsInfo(), and storage::Storage::isUsedBySingleBtrfs().
| virtual void storage::Btrfs::print | ( | std::ostream & | s | ) | const [inline, virtual] |
Reimplemented from storage::Volume.
| Text storage::Btrfs::reduceText | ( | bool | doing, |
| const string & | device | ||
| ) | const |
References storage::_(), storage::Device::name(), and storage::sformat().
| Text storage::Btrfs::removeText | ( | bool | doing | ) | const [virtual] |
Reimplemented from storage::Volume.
References storage::_(), and storage::sformat().
Referenced by storage::BtrfsCo::doRemove().
| void storage::Btrfs::saveData | ( | xmlNode * | node | ) | const |
Reimplemented from storage::Volume.
| int storage::Btrfs::setFormat | ( | bool | format, |
| storage::FsType | fs | ||
| ) | [virtual] |
Reimplemented from storage::Volume.
| int storage::Btrfs::shrinkVolume | ( | const string & | dev | ) |
| int storage::Btrfs::shrinkVolume | ( | const list< string > & | devs | ) |
| string storage::Btrfs::subvolNames | ( | bool | added | ) | const [protected] |
| string storage::Btrfs::sysfsPath | ( | ) | const [virtual] |
Reimplemented from storage::Device.
| list< string > storage::Btrfs::udevId | ( | ) | const [virtual] |
Reimplemented from storage::Device.
| string storage::Btrfs::udevPath | ( | ) | const [virtual] |
Reimplemented from storage::Device.
| void storage::Btrfs::unuseDev | ( | ) | const |
| std::ostream& operator<< | ( | std::ostream & | s, |
| const Btrfs & | l | ||
| ) | [friend] |
list<string> storage::Btrfs::dev_add [protected] |
Referenced by getDevices(), and needReduce().
list<string> storage::Btrfs::dev_rem [protected] |
Referenced by getDevices().
list<string> storage::Btrfs::devices [protected] |
Referenced by Btrfs(), and clearSignature().
storage::BtrfsInfo storage::Btrfs::info [mutable, protected] |
Reimplemented from storage::Volume.
list<Subvolume> storage::Btrfs::subvol [protected] |
Referenced by clearSubvol(), and getSubvolumes().
1.7.3