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

References storage::Volume::nm, and y2debug.

Loop::~Loop (  )  [virtual]

References storage::Volume::dev, and y2debug.


Member Function Documentation

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

void Loop::setLoopFile ( const string &  file  ) 

References checkReuse(), and lfile.

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

References reuseFile.

void Loop::setReuse ( bool  reuseExisting  ) 

References checkReuse(), and reuseFile.

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

References delFile.

bool Loop::removeFile (  ) 

References delFile, and lfileRealPath().

bool Loop::createFile (  ) 

string Loop::lfileRealPath (  )  const

void 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 Loop::setEncryption ( bool  val,
storage::EncryptType  typ = storage::ENC_LUKS 
) [virtual]

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

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

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

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

bool Loop::equalContent ( const Loop rhs  )  const

void Loop::logDifference ( const Loop d  )  const

unsigned Loop::major (  )  [static]

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

References storage::decString().

Referenced by storage::Dm::getDevice().

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

void Loop::init (  )  [protected]

Reimplemented from storage::Volume.

References delFile, and reuseFile.

Referenced by Loop().

void Loop::checkReuse (  )  [protected]

void Loop::getLoopMajor (  )  [static, protected]

References storage::getMajorDevices(), loop_major, and y2milestone.

Referenced by major().

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


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 Loop::loop_major = 0 [static, protected]

Referenced by getLoopMajor(), and major().

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 Sun Jun 8 10:48:04 2008 for yast2-storage by  doxygen 1.5.5