yast2-storage
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Friends

storage::Btrfs Class Reference

#include <Btrfs.h>

Inheritance diagram for storage::Btrfs:
storage::Volume storage::Device

List of all members.

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

BtrfsCoco ()
string subvolNames (bool added) const
Volume const * findRealVolume () const

Protected Attributes

list< string > devices
list< string > dev_add
list< string > dev_rem
list< Subvolumesubvol
storage::BtrfsInfo info

Private Member Functions

Btrfsoperator= (const Btrfs &v)
 Btrfs (const Btrfs &)

Friends

std::ostream & operator<< (std::ostream &s, const Btrfs &l)

Constructor & Destructor Documentation

storage::Btrfs::Btrfs ( const BtrfsCo d,
const Volume v,
unsigned long long  sz,
const list< string > &  devices 
)
storage::Btrfs::Btrfs ( const BtrfsCo d,
const Volume v 
)
storage::Btrfs::Btrfs ( const BtrfsCo d,
const xmlNode *  node 
)
storage::Btrfs::Btrfs ( const BtrfsCo c,
const Btrfs v 
)
storage::Btrfs::~Btrfs ( ) [virtual]

References storage::Volume::cont.

storage::Btrfs::Btrfs ( const Btrfs ) [private]

Member Function Documentation

void storage::Btrfs::addSubvol ( const string &  path)
void storage::Btrfs::changeDeviceName ( const string &  old,
const string &  nw 
)
int storage::Btrfs::clearSignature ( )
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)
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 ( )
bool storage::Btrfs::equalContent ( const Btrfs rhs) const
bool storage::Btrfs::existSubvolume ( const string &  name)
Text storage::Btrfs::extendText ( bool  doing,
const string &  device 
) const
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]
void storage::Btrfs::getCommitActions ( list< commitAction > &  l) const [virtual]
list< string > storage::Btrfs::getDevices ( bool  add_del = false) const
void storage::Btrfs::getDevices ( list< string > &  devs,
bool  add_del = false 
) const

References dev_add, and dev_rem.

void storage::Btrfs::getInfo ( storage::BtrfsInfo info) const
list< string > storage::Btrfs::getSubvolAddDel ( bool  add) const
void storage::Btrfs::getSubvolumes ( list< Subvolume > &  sv) const [inline]

References subvol.

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]
Btrfs& storage::Btrfs::operator= ( const Btrfs v) [private]
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
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

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const Btrfs l 
) [friend]

Member Data Documentation

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().

Reimplemented from storage::Volume.

list<Subvolume> storage::Btrfs::subvol [protected]

Referenced by clearSubvol(), and getSubvolumes().


The documentation for this class was generated from the following files: