storage::Loop Class Reference

#include <Loop.h>

Inheritance diagram for storage::Loop:

storage::Volume storage::Device

List of all members.

Public Member Functions

 Loop (const LoopCo &d, const string &LoopDev, const string &LoopFile, bool dmcrypt, const string &dm_dev, SystemInfo &systeminfo, SystemCmd &losetup)
 Loop (const LoopCo &d, const string &file, bool reuseExisting, unsigned long long sizeK, bool dmcr)
 Loop (const LoopCo &c, const Loop &v)
virtual ~Loop ()
const string & loopFile () const
void setLoopFile (const string &file)
bool getReuse () const
void setReuse (bool reuseExisting)
void setDelFile (bool val=true)
bool removeFile ()
bool createFile ()
string lfileRealPath () const
void setDmcryptDev (const string &dm_dev, bool active=true)
virtual void print (std::ostream &s) const
virtual int setEncryption (bool val, storage::EncryptType typ=storage::ENC_LUKS)
Text removeText (bool doing) const
Text createText (bool doing) const
Text formatText (bool doing) const
void getInfo (storage::LoopInfo &info) const
bool equalContent (const Loop &rhs) const
void logDifference (std::ostream &log, const Loop &rhs) const

Static Public Member Functions

static unsigned loopMajor ()
static string loopDeviceName (unsigned num)
static bool notDeleted (const Loop &l)

Protected Member Functions

void checkReuse ()

Protected Attributes

string lfile
bool reuseFile
bool delFile
storage::LoopInfo info

Static Protected Attributes

static unsigned loop_major = 0

Private Member Functions

 Loop (const Loop &)
Loopoperator= (const Loop &)

Friends

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


Constructor & Destructor Documentation

storage::Loop::Loop ( const LoopCo d,
const string &  LoopDev,
const string &  LoopFile,
bool  dmcrypt,
const string &  dm_dev,
SystemInfo systeminfo,
SystemCmd losetup 
)

storage::Loop::Loop ( const LoopCo d,
const string &  file,
bool  reuseExisting,
unsigned long long  sizeK,
bool  dmcr 
)

storage::Loop::Loop ( const LoopCo c,
const Loop v 
)

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

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

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

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


Member Function Documentation

const string& storage::Loop::loopFile (  )  const [inline]

void storage::Loop::setLoopFile ( const string &  file  ) 

References checkReuse(), and lfile.

bool storage::Loop::getReuse (  )  const [inline]

References reuseFile.

void storage::Loop::setReuse ( bool  reuseExisting  ) 

References checkReuse(), and reuseFile.

void storage::Loop::setDelFile ( bool  val = true  )  [inline]

References delFile.

bool storage::Loop::removeFile (  ) 

References delFile, and lfileRealPath().

bool storage::Loop::createFile (  ) 

string storage::Loop::lfileRealPath (  )  const

void storage::Loop::setDmcryptDev ( const string &  dm_dev,
bool  active = true 
)

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

Reimplemented from storage::Volume.

int storage::Loop::setEncryption ( bool  val,
storage::EncryptType  typ = storage::ENC_LUKS 
) [virtual]

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

Text storage::Loop::createText ( bool  doing  )  const [virtual]

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

void storage::Loop::getInfo ( storage::LoopInfo info  )  const

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

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

unsigned storage::Loop::loopMajor (  )  [static]

string storage::Loop::loopDeviceName ( unsigned  num  )  [static]

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

void storage::Loop::checkReuse (  )  [protected]

Loop& storage::Loop::operator= ( const Loop  )  [private]


Friends And Related Function Documentation

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


Member Data Documentation

string storage::Loop::lfile [protected]

bool storage::Loop::reuseFile [protected]

bool storage::Loop::delFile [protected]

unsigned storage::Loop::loop_major = 0 [static, protected]

Referenced by loopMajor().

storage::LoopInfo storage::Loop::info [mutable, 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:58 2012 for yast2-storage by  doxygen 1.5.6