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

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

void storage::Loop::checkReuse ( ) [protected]
bool storage::Loop::createFile ( )
Text storage::Loop::createText ( bool  doing) const [virtual]
bool storage::Loop::equalContent ( const Loop rhs) const
Text storage::Loop::formatText ( bool  doing) const [virtual]
void storage::Loop::getInfo ( storage::LoopInfo info) const
bool storage::Loop::getReuse ( ) const [inline]

References reuseFile.

string storage::Loop::lfileRealPath ( ) const
void storage::Loop::logDifference ( std::ostream &  log,
const Loop rhs 
) const
string storage::Loop::loopDeviceName ( unsigned  num) [static]
const string& storage::Loop::loopFile ( ) const [inline]
unsigned storage::Loop::loopMajor ( ) [static]
static bool storage::Loop::notDeleted ( const Loop l) [inline, static]
Loop& storage::Loop::operator= ( const Loop ) [private]
virtual void storage::Loop::print ( std::ostream &  s) const [inline, virtual]

Reimplemented from storage::Volume.

bool storage::Loop::removeFile ( )

References delFile, and lfileRealPath().

Text storage::Loop::removeText ( bool  doing) const [virtual]
void storage::Loop::setDelFile ( bool  val = true) [inline]

References delFile.

void storage::Loop::setDmcryptDev ( const string &  dm_dev,
bool  active = true 
)
int storage::Loop::setEncryption ( bool  val,
storage::EncryptType  typ = storage::ENC_LUKS 
) [virtual]
void storage::Loop::setLoopFile ( const string &  file)

References checkReuse(), and lfile.

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

References checkReuse(), and reuseFile.


Friends And Related Function Documentation

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

Member Data Documentation

bool storage::Loop::delFile [protected]
storage::LoopInfo storage::Loop::info [mutable, protected]

Reimplemented from storage::Volume.

Referenced by getInfo().

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

Referenced by loopMajor().

bool storage::Loop::reuseFile [protected]

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