storage::Loop Class Reference

#include <Loop.h>

Inheritance diagram for storage::Loop:

storage::Volume List of all members.

Public Member Functions

 Loop (const LoopCo &d, const string &LoopDev, const string &LoopFile, bool dmcrypt, const string &dm_dev, ProcPart &ppart, SystemCmd &losetup)
 Loop (const LoopCo &d, const string &file, bool reuseExisting, unsigned long long sizeK, bool dmcr)
 Loop (const LoopCo &d, const Loop &d)
virtual ~Loop ()
const string & loopFile () const
void setLoopFile (const string &file)
bool getReuse ()
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)
string removeText (bool doing) const
string createText (bool doing) const
string formatText (bool doing) const
void getInfo (storage::LoopInfo &info) const
bool equalContent (const Loop &rhs) const
void logDifference (const Loop &d) const

Static Public Member Functions

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

Protected Member Functions

void init ()
void checkReuse ()
Loopoperator= (const Loop &)

Static Protected Member Functions

static void getLoopMajor ()

Protected Attributes

string lfile
bool reuseFile
bool delFile
storage::LoopInfo info

Static Protected Attributes

static unsigned loop_major = 0

Friends

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

Constructor & Destructor Documentation

Loop::Loop const LoopCo d,
const string &  LoopDev,
const string &  LoopFile,
bool  dmcrypt,
const string &  dm_dev,
ProcPart ppart,
SystemCmd losetup
 

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

Loop::Loop const LoopCo d,
const Loop d
 

Loop::~Loop  )  [virtual]
 


Member Function Documentation

void Loop::checkReuse  )  [protected]
 

bool Loop::createFile  ) 
 

string Loop::createText bool  doing  )  const [virtual]
 

Reimplemented from storage::Volume.

bool Loop::equalContent const Loop rhs  )  const
 

string Loop::formatText bool  doing  )  const [virtual]
 

Reimplemented from storage::Volume.

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

void Loop::getLoopMajor  )  [static, protected]
 

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

void Loop::init  )  [protected]
 

Reimplemented from storage::Volume.

string Loop::lfileRealPath  )  const
 

void Loop::logDifference const Loop d  )  const
 

string Loop::loopDeviceName unsigned  num  )  [static]
 

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

unsigned Loop::major  )  [static]
 

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

Loop & Loop::operator= const Loop  )  [protected]
 

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

Reimplemented from storage::Volume.

bool Loop::removeFile  ) 
 

string Loop::removeText bool  doing  )  const [virtual]
 

Reimplemented from storage::Volume.

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

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

Reimplemented from storage::Volume.

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

Reimplemented from storage::Volume.

void Loop::setLoopFile const string &  file  ) 
 

void Loop::setReuse bool  reuseExisting  ) 
 


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.

string storage::Loop::lfile [protected]
 

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

bool storage::Loop::reuseFile [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Apr 30 14:58:41 2008 for yast2-storage by  doxygen 1.4.6