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

References storage::Device::dev, and y2deb.

storage::Btrfs::~Btrfs (  )  [virtual]

References storage::Device::dev, and y2deb.

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


Member Function Documentation

void storage::Btrfs::clearSubvol (  )  [inline]

References subvol.

void storage::Btrfs::addSubvol ( const string &  path  ) 

References storage::contains(), subvol, y2mil, and y2war.

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, dev_rem, devices, and y2mil.

void storage::Btrfs::getSubvolumes ( list< Subvolume > &  sv  )  const [inline]

References subvol.

bool storage::Btrfs::existSubvolume ( const string &  name  ) 

int storage::Btrfs::createSubvolume ( const string &  name  ) 

int storage::Btrfs::deleteSubvolume ( const string &  name  ) 

int storage::Btrfs::extendVolume ( const string &  dev  ) 

int storage::Btrfs::extendVolume ( const list< string > &  devs  ) 

int storage::Btrfs::shrinkVolume ( const string &  dev  ) 

int storage::Btrfs::shrinkVolume ( const list< string > &  devs  ) 

void storage::Btrfs::getCommitActions ( list< commitAction > &  l  )  const [virtual]

int storage::Btrfs::doDeleteSubvol (  ) 

int storage::Btrfs::doCreateSubvol (  ) 

int storage::Btrfs::doReduce (  ) 

int storage::Btrfs::doExtend (  ) 

Text storage::Btrfs::createSubvolText ( bool  doing,
const string &  name 
) const

Text storage::Btrfs::deleteSubvolText ( bool  doing,
const string &  name 
) const

Text storage::Btrfs::extendText ( bool  doing,
const string &  device 
) const

Text storage::Btrfs::reduceText ( bool  doing,
const string &  device 
) const

Text storage::Btrfs::removeText ( bool  doing  )  const [virtual]

Text storage::Btrfs::formatText ( bool  doing  )  const [virtual]

int storage::Btrfs::setFormat ( bool  format,
storage::FsType  fs 
) [virtual]

string storage::Btrfs::udevPath (  )  const [virtual]

Reimplemented from storage::Device.

References findRealVolume(), and storage::Device::udevPath().

list< string > storage::Btrfs::udevId (  )  const [virtual]

Reimplemented from storage::Device.

References findRealVolume(), and storage::Device::udevId().

string storage::Btrfs::sysfsPath (  )  const [virtual]

Reimplemented from storage::Device.

References findRealVolume(), and storage::Device::sysfsPath().

void storage::Btrfs::countSubvolAddDel ( unsigned &  add,
unsigned &  rem 
) const

References subvol, and y2mil.

Referenced by getCommitActions(), needCreateSubvol(), and needDeleteSubvol().

list< string > storage::Btrfs::getSubvolAddDel ( bool  add  )  const

References subvol, and y2mil.

Referenced by getCommitActions().

void storage::Btrfs::saveData ( xmlNode *  node  )  const

virtual void storage::Btrfs::print ( std::ostream &  s  )  const [inline, virtual]

Reimplemented from storage::Volume.

void storage::Btrfs::getInfo ( storage::BtrfsInfo info  )  const

bool storage::Btrfs::equalContent ( const Btrfs rhs  )  const

void storage::Btrfs::logDifference ( std::ostream &  log,
const Btrfs rhs 
) const

void storage::Btrfs::unuseDev (  )  const

int storage::Btrfs::clearSignature (  ) 

void storage::Btrfs::changeDeviceName ( const string &  old,
const string &  nw 
)

static bool storage::Btrfs::notDeleted ( const Btrfs l  )  [inline, static]

bool storage::Btrfs::needCreateSubvol ( const Btrfs v  )  [static]

bool storage::Btrfs::needDeleteSubvol ( const Btrfs v  )  [static]

bool storage::Btrfs::needReduce ( const Btrfs v  )  [static]

bool storage::Btrfs::needExtend ( const Btrfs v  )  [static]

References dev_add.

BtrfsCo * storage::Btrfs::co (  )  [protected]

References storage::Volume::cont.

Referenced by setFormat().

string storage::Btrfs::subvolNames ( bool  added  )  const [protected]

References subvol, and y2mil.

Volume const * storage::Btrfs::findRealVolume (  )  const [protected]

Btrfs& storage::Btrfs::operator= ( const Btrfs v  )  [private]


Friends And Related Function Documentation

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


Member Data Documentation

list<string> storage::Btrfs::devices [protected]

list<string> storage::Btrfs::dev_add [protected]

list<string> storage::Btrfs::dev_rem [protected]

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

Reimplemented from storage::Volume.

Referenced by getInfo().


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

Generated on Mon Feb 6 10:42:57 2012 for yast2-storage by  doxygen 1.5.6