storage::Volume Class Reference

#include <Volume.h>

Inheritance diagram for storage::Volume:

storage::Device storage::Btrfs storage::Dm storage::Loop storage::Md storage::MdPart storage::Nfs storage::Partition storage::Tmpfs

List of all members.

Public Member Functions

 Volume (const Container &c, unsigned Pnr, unsigned long long SizeK)
 Volume (const Container &c, const string &name, const string &device)
 Volume (const Container &c, const string &name, const string &device, SystemInfo &systeminfo)
 Volume (const Container &c, const xmlNode *node)
 Volume (const Container &c, const Volume &v)
virtual ~Volume ()
void saveData (xmlNode *node) const
const string & mountDevice () const
const string & loopDevice () const
const string & dmcryptDevice () const
const ContainergetContainer () const
StoragegetStorage () const
storage::CType cType () const
void setReadonly (bool val=true)
bool ignoreFstab () const
void setIgnoreFstab (bool val=true)
bool ignoreFs () const
void setIgnoreFs (bool val=true)
void setFstabAdded (bool val=true)
bool fstabAdded () const
void getFsInfo (const Volume *source)
virtual int setFormat (bool format=true, storage::FsType fs=storage::REISERFS)
void formattingDone ()
bool getFormat () const
int changeFstabOptions (const string &options)
int changeMountBy (storage::MountByType mby)
virtual int changeMount (const string &m)
bool loop () const
bool dmcrypt () const
bool loopActive () const
bool dmcryptActive () const
bool needCrsetup (bool urgent=true) const
const string & getUuid () const
const string & getLabel () const
int setLabel (const string &val)
int eraseLabel ()
int eraseUuid ()
bool needLabel () const
storage::EncryptType getEncryption () const
void initEncryption (storage::EncryptType val=storage::ENC_LUKS)
virtual int setEncryption (bool val, storage::EncryptType typ=storage::ENC_LUKS)
const string & getCryptPwd () const
int setCryptPwd (const string &val)
void clearCryptPwd ()
bool needCryptPwd () const
const string & getMount () const
bool hasOrigMount () const
bool needRemount () const
bool needShrink () const
bool needExtend () const
long long extendSize () const
storage::FsType getFs () const
storage::FsType detectedFs () const
void setFs (storage::FsType val)
void initUuid (const string &id)
void initLabel (const string &lbl)
storage::MountByType getMountBy () const
const string & getFstabOption () const
void setFstabOption (const string &val)
unsigned fstabFreq () const
unsigned fstabPassno () const
void setMount (const string &val)
void updateFstabOptions ()
bool needFstabUpdate () const
const string & getMkfsOption () const
int setMkfsOption (const string &val)
const string & getTunefsOption () const
int setTunefsOption (const string &val)
const string & getDescText () const
int setDescText (const string &val)
unsigned nr () const
unsigned long long origSizeK () const
bool isNumeric () const
void setSize (unsigned long long SizeK)
virtual void setResizedSize (unsigned long long SizeK)
void setUsedByUuid (UsedByType type, const string &uuid)
void setDmcryptDev (const string &dm, bool active)
void setDmcryptDevEnc (const string &dm, storage::EncryptType typ, bool active)
virtual void forgetResize ()
virtual bool canUseDevice () const
bool operator== (const Volume &rhs) const
bool operator!= (const Volume &rhs) const
bool operator< (const Volume &rhs) const
bool operator<= (const Volume &rhs) const
bool operator>= (const Volume &rhs) const
bool operator> (const Volume &rhs) const
bool equalContent (const Volume &rhs) const
void logDifference (std::ostream &log, const Volume &rhs) const
int prepareRemove ()
int unaccessVol ()
int umount (const string &mp="")
int crUnsetup (bool force=false)
int mount (const string &mp="", bool ro=false)
int canResize (unsigned long long newSizeK) const
int doMount ()
int doFormat ()
int doCrsetup ()
int doSetLabel ()
int doFstabUpdate (bool force=false)
int resizeFs ()
void fstabUpdateDone ()
bool isMounted () const
virtual Text removeText (bool doing) const
virtual Text createText (bool doing) const
virtual Text resizeText (bool doing) const
virtual Text formatText (bool doing) const
virtual void getCommitActions (list< commitAction > &l) const
virtual Text mountText (bool doing) const
Text labelText (bool doing) const
Text losetupText (bool doing) const
Text crsetupText (bool doing) const
Text fstabUpdateText () const
bool optNoauto () const
bool inCryptotab () const
bool inCrypttab () const
bool pvEncryption () const
virtual void print (std::ostream &s) const
int getFreeLoop ()
int getFreeLoop (SystemCmd &loopData)
int getFreeLoop (SystemCmd &loopData, const std::list< unsigned > &ids)
void getInfo (storage::VolumeInfo &info) const
void mergeFstabInfo (storage::VolumeInfo &tinfo, const FstabEntry &fste) const
void updateFsData (bool setUsedByLvm=false)
void triggerUdevUpdate () const
const string & fsTypeString () const

Static Public Member Functions

static bool loopInUse (const Storage *sto, const string &loopdev)
static bool notDeleted (const Volume &d)
static bool isDeleted (const Volume &d)
static bool loopStringNum (const string &name, unsigned &num)
static bool isTmpCryptMp (const string &mp)

Protected Member Functions

void init ()
void setNameDev ()
int checkDevice () const
int checkDevice (const string &device) const
MountByType defaultMountBy () const
bool allowedMountBy (MountByType mby) const
bool findBlkid (const Blkid &blkid, Blkid::Entry &entry)
void getFsData (const Blkid &blkid, bool setUsedByLvm=false)
void getLoopData (SystemCmd &loopData)
void getMountData (const ProcMounts &mounts, bool swap_only=false)
void getFstabData (EtcFstab &fstabData)
void updateUuid (const string &new_uuid)
void replaceAltName (const string &prefix, const string &newn)
string getMountByString () const
string getFstabDevice () const
string getFstabDentry () const
list< string > getFstabOpts () const
bool getLoopFile (string &fname) const
void setExtError (const SystemCmd &cmd, bool serr=true)
string getDmcryptName () const
bool needLosetup (bool urgent) const
bool needCryptsetup () const
int doLosetup ()
int doCryptsetup ()
int loUnsetup (bool force=false)
int cryptUnsetup (bool force=false)
bool pwdLengthOk (storage::EncryptType typ, const string &val, bool format) const
bool noFreqPassno () const
int prepareTmpMount (string &m, bool &needUmount, bool useMounted=true, const string &options="")
int umountTmpMount (const string &m, int ret)
int doFormatBtrfs ()
string getLosetupCmd (storage::EncryptType, const string &pwdfile) const
string getCryptsetupCmd (storage::EncryptType e, const string &dmdev, const string &mp, const string &pwdfile, bool format, bool empty_pwd=false) const
storage::EncryptType detectEncryption ()
string getFilesysSysfsPath () const

Protected Attributes

const Container *const cont
bool numeric
bool format
bool fstab_added
storage::FsType fs
storage::FsType detected_fs
storage::MountByType mount_by
storage::MountByType orig_mount_by
string uuid
string orig_uuid
string label
string orig_label
string mp
string orig_mp
string fstab_opt
string orig_fstab_opt
string mkfs_opt
string tunefs_opt
bool is_loop
bool is_mounted
bool ignore_fstab
bool ignore_fs
bool loop_active
bool dmcrypt_active
bool ronly
storage::EncryptType encryption
storage::EncryptType orig_encryption
string loop_dev
string dmcrypt_dev
string fstab_loop_dev
string crypt_pwd
string orig_crypt_pwd
unsigned num
unsigned long long orig_size_k
string dtxt
storage::VolumeInfo info

Static Protected Attributes

static const string tmp_mount [3] = { "swap", "/tmp", "/var/tmp" }
static const string ignore_opt [1] = { "defaults" }
static const string ignore_beg [4] = { "loop", "encryption=", "phash=", "itercountk=" }

Private Member Functions

 Volume (const Volume &)
Volumeoperator= (const Volume &)

Friends

class Storage
std::ostream & operator<< (std::ostream &s, const Volume &v)


Constructor & Destructor Documentation

storage::Volume::Volume ( const Container c,
unsigned  Pnr,
unsigned long long  SizeK 
)

storage::Volume::Volume ( const Container c,
const string &  name,
const string &  device 
)

storage::Volume::Volume ( const Container c,
const string &  name,
const string &  device,
SystemInfo systeminfo 
)

storage::Volume::Volume ( const Container c,
const xmlNode *  node 
)

storage::Volume::Volume ( const Container c,
const Volume v 
)

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

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

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

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


Member Function Documentation

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

const string & storage::Volume::mountDevice (  )  const

const string& storage::Volume::loopDevice (  )  const [inline]

References loop_dev.

Referenced by storage::hasLoopDevice().

const string& storage::Volume::dmcryptDevice (  )  const [inline]

const Container* storage::Volume::getContainer (  )  const [inline]

Storage * storage::Volume::getStorage (  )  const

CType storage::Volume::cType (  )  const

void storage::Volume::setReadonly ( bool  val = true  )  [inline]

References ronly.

Referenced by storage::LvmVg::addLv(), and storage::Md::Md().

bool storage::Volume::ignoreFstab (  )  const [inline]

References ignore_fstab.

void storage::Volume::setIgnoreFstab ( bool  val = true  )  [inline]

bool storage::Volume::ignoreFs (  )  const [inline]

References ignore_fs.

void storage::Volume::setIgnoreFs ( bool  val = true  )  [inline]

References ignore_fs.

Referenced by storage::Storage::resizePartition().

void storage::Volume::setFstabAdded ( bool  val = true  )  [inline]

References fstab_added.

bool storage::Volume::fstabAdded (  )  const [inline]

References fstab_added.

Referenced by storage::fstabAdded().

void storage::Volume::getFsInfo ( const Volume source  ) 

int storage::Volume::setFormat ( bool  format = true,
storage::FsType  fs = storage::REISERFS 
) [virtual]

void storage::Volume::formattingDone (  )  [inline]

References detected_fs, format, and fs.

bool storage::Volume::getFormat (  )  const [inline]

int storage::Volume::changeFstabOptions ( const string &  options  ) 

int storage::Volume::changeMountBy ( storage::MountByType  mby  ) 

int storage::Volume::changeMount ( const string &  m  )  [virtual]

bool storage::Volume::loop (  )  const [inline]

References is_loop.

Referenced by getFstabOpts(), and loopStringNum().

bool storage::Volume::dmcrypt (  )  const [inline]

bool storage::Volume::loopActive (  )  const [inline]

References is_loop, and loop_active.

bool storage::Volume::dmcryptActive (  )  const [inline]

References dmcrypt(), and dmcrypt_active.

bool storage::Volume::needCrsetup ( bool  urgent = true  )  const

const string& storage::Volume::getUuid (  )  const [inline]

const string& storage::Volume::getLabel (  )  const [inline]

int storage::Volume::setLabel ( const string &  val  ) 

int storage::Volume::eraseLabel (  )  [inline]

References label, and orig_label.

Referenced by detectEncryption(), setFormat(), and setUsedByUuid().

int storage::Volume::eraseUuid (  )  [inline]

References orig_uuid, and uuid.

Referenced by detectEncryption(), and setUsedByUuid().

bool storage::Volume::needLabel (  )  const [inline]

storage::EncryptType storage::Volume::getEncryption (  )  const [inline]

void storage::Volume::initEncryption ( storage::EncryptType  val = storage::ENC_LUKS  )  [inline]

References encryption, and orig_encryption.

Referenced by storage::Loop::Loop(), and updateFsData().

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

const string& storage::Volume::getCryptPwd (  )  const [inline]

References crypt_pwd.

int storage::Volume::setCryptPwd ( const string &  val  ) 

void storage::Volume::clearCryptPwd (  )  [inline]

References crypt_pwd, and orig_crypt_pwd.

Referenced by setEncryption().

bool storage::Volume::needCryptPwd (  )  const

const string& storage::Volume::getMount (  )  const [inline]

bool storage::Volume::hasOrigMount (  )  const [inline]

bool storage::Volume::needRemount (  )  const

bool storage::Volume::needShrink (  )  const [inline]

bool storage::Volume::needExtend (  )  const [inline]

long long storage::Volume::extendSize (  )  const [inline]

References orig_size_k, and storage::Device::size_k.

Referenced by storage::lvResized().

storage::FsType storage::Volume::getFs (  )  const [inline]

storage::FsType storage::Volume::detectedFs (  )  const [inline]

References detected_fs.

void storage::Volume::setFs ( storage::FsType  val  )  [inline]

void storage::Volume::initUuid ( const string &  id  )  [inline]

References orig_uuid, and uuid.

Referenced by storage::BtrfsCo::addFromVolume(), and getFsInfo().

void storage::Volume::initLabel ( const string &  lbl  )  [inline]

References label, and orig_label.

Referenced by getFsInfo().

storage::MountByType storage::Volume::getMountBy (  )  const [inline]

References mount_by.

Referenced by storage::Btrfs::Btrfs().

const string& storage::Volume::getFstabOption (  )  const [inline]

References fstab_opt.

Referenced by storage::Storage::mountTmp().

void storage::Volume::setFstabOption ( const string &  val  )  [inline]

unsigned storage::Volume::fstabFreq (  )  const

References storage::ENC_NONE, encryption, and noFreqPassno().

Referenced by doFstabUpdate().

unsigned storage::Volume::fstabPassno (  )  const

References storage::ENC_NONE, encryption, mp, and noFreqPassno().

Referenced by doFstabUpdate().

void storage::Volume::setMount ( const string &  val  )  [inline]

void storage::Volume::updateFstabOptions (  ) 

bool storage::Volume::needFstabUpdate (  )  const

const string& storage::Volume::getMkfsOption (  )  const [inline]

References mkfs_opt.

int storage::Volume::setMkfsOption ( const string &  val  )  [inline]

References mkfs_opt.

const string& storage::Volume::getTunefsOption (  )  const [inline]

References tunefs_opt.

int storage::Volume::setTunefsOption ( const string &  val  )  [inline]

References tunefs_opt.

const string& storage::Volume::getDescText (  )  const [inline]

References dtxt.

Referenced by storage::Storage::getCommitInfos().

int storage::Volume::setDescText ( const string &  val  )  [inline]

References dtxt.

unsigned storage::Volume::nr (  )  const [inline]

unsigned long long storage::Volume::origSizeK (  )  const [inline]

bool storage::Volume::isNumeric (  )  const [inline]

References numeric.

void storage::Volume::setSize ( unsigned long long  SizeK  )  [inline]

virtual void storage::Volume::setResizedSize ( unsigned long long  SizeK  )  [inline, virtual]

void storage::Volume::setUsedByUuid ( UsedByType  type,
const string &  uuid 
)

void storage::Volume::setDmcryptDev ( const string &  dm,
bool  active 
)

void storage::Volume::setDmcryptDevEnc ( const string &  dm,
storage::EncryptType  typ,
bool  active 
)

virtual void storage::Volume::forgetResize (  )  [inline, virtual]

bool storage::Volume::canUseDevice (  )  const [virtual]

bool storage::Volume::operator== ( const Volume rhs  )  const

bool storage::Volume::operator!= ( const Volume rhs  )  const [inline]

bool storage::Volume::operator< ( const Volume rhs  )  const

bool storage::Volume::operator<= ( const Volume rhs  )  const [inline]

bool storage::Volume::operator>= ( const Volume rhs  )  const [inline]

bool storage::Volume::operator> ( const Volume rhs  )  const [inline]

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

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

int storage::Volume::prepareRemove (  ) 

int storage::Volume::unaccessVol (  ) 

References doFstabUpdate(), isMounted(), orig_mp, and umount().

Referenced by prepareRemove().

int storage::Volume::umount ( const string &  mp = ""  ) 

int storage::Volume::crUnsetup ( bool  force = false  ) 

References cryptUnsetup(), and loUnsetup().

Referenced by detectEncryption(), and prepareRemove().

int storage::Volume::mount ( const string &  mp = "",
bool  ro = false 
)

int storage::Volume::canResize ( unsigned long long  newSizeK  )  const

int storage::Volume::doMount (  ) 

int storage::Volume::doFormat (  ) 

int storage::Volume::doCrsetup (  ) 

int storage::Volume::doSetLabel (  ) 

int storage::Volume::doFstabUpdate ( bool  force = false  ) 

References storage::EtcFstab::addEntry(), storage::EtcFstab::addText(), storage::Device::alt_names, crypt_pwd, storage::FstabEntry::cryptotab, cType(), storage::Device::deleted(), storage::FstabChange::dentry, detected_fs, storage::Device::dev, storage::FstabChange::device, dmcrypt(), storage::ENC_NONE, storage::FstabChange::encr, encryption, storage::SystemCmd::execute(), storage::EtcFstab::findDevice(), storage::EtcFstab::findMount(), storage::EtcFstab::flush(), format, storage::FstabChange::freq, storage::FstabChange::fs, fs, fstab_added, fstab_loop_dev, fstab_opt, fstabFreq(), fstabPassno(), getFreeLoop(), storage::Storage::getFstab(), getFstabDentry(), getFstabDevice(), getFstabOpts(), getLoopFile(), getStorage(), storage::haveQuota(), ignore_fstab, inCryptotab(), storage::Storage::instsys(), isMounted(), isTmpCryptMp(), label, storage::LOOP, storage::FstabChange::loop_dev, mount(), storage::FstabChange::mount, storage::FstabEntry::mount, mount_by, MOUNTBIN, storage::MOUNTBY_LABEL, storage::MOUNTBY_UUID, mp, storage::FstabChange::opts, orig_encryption, orig_fstab_opt, orig_label, orig_mount_by, orig_mp, storage::FstabChange::passno, pvEncryption(), storage::quote(), storage::EtcFstab::removeEntry(), storage::EtcFstab::removeText(), storage::SystemCmd::retcode(), storage::Storage::showInfoCb(), storage::Device::silent, storage::FstabChange::tmpcrypt, storage::TMPFSC, storage::toString(), storage::Device::udevId(), umount(), storage::EtcFstab::updateEntry(), storage::EtcFstab::updateText(), storage::VOLUME_REMOUNT_FAILED, storage::VOLUME_UMOUNT_NOT_MOUNTED, and y2mil.

Referenced by storage::Container::commitChanges(), doCrsetup(), doFormat(), doMount(), doSetLabel(), and unaccessVol().

int storage::Volume::resizeFs (  ) 

void storage::Volume::fstabUpdateDone (  ) 

bool storage::Volume::isMounted (  )  const [inline]

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

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

Text storage::Volume::resizeText ( bool  doing  )  const [virtual]

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

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

Text storage::Volume::mountText ( bool  doing  )  const [virtual]

Text storage::Volume::labelText ( bool  doing  )  const

Text storage::Volume::losetupText ( bool  doing  )  const

Text storage::Volume::crsetupText ( bool  doing  )  const

Text storage::Volume::fstabUpdateText (  )  const

bool storage::Volume::optNoauto (  )  const

bool storage::Volume::inCryptotab (  )  const [inline]

bool storage::Volume::inCrypttab (  )  const [inline]

bool storage::Volume::pvEncryption (  )  const

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

int storage::Volume::getFreeLoop (  ) 

int storage::Volume::getFreeLoop ( SystemCmd loopData  ) 

References getFreeLoop(), loop_dev, and y2mil.

int storage::Volume::getFreeLoop ( SystemCmd loopData,
const std::list< unsigned > &  ids 
)

void storage::Volume::getInfo ( storage::VolumeInfo info  )  const

References storage::Device::create, storage::VolumeInfo::create, storage::VolumeInfo::crypt_device, crypt_pwd, storage::VolumeInfo::crypt_pwd, detected_fs, storage::VolumeInfo::detected_fs, storage::Device::dev, storage::VolumeInfo::device, dmcrypt(), dmcrypt_dev, dtxt, storage::VolumeInfo::dtxt, encryption, storage::VolumeInfo::encryption, format, storage::VolumeInfo::format, fs, storage::VolumeInfo::fs, fstab_opt, storage::VolumeInfo::fstab_options, ignore_fs, storage::VolumeInfo::ignore_fs, ignore_fstab, storage::VolumeInfo::ignore_fstab, info, is_mounted, storage::VolumeInfo::is_mounted, label, storage::VolumeInfo::label, storage::VolumeInfo::loop, loop_dev, storage::VolumeInfo::major, storage::VolumeInfo::minor, storage::Device::mjr, mkfs_opt, storage::VolumeInfo::mkfs_options, storage::Device::mnr, storage::VolumeInfo::mount, mount_by, storage::VolumeInfo::mount_by, mp, storage::VolumeInfo::name, storage::Device::nm, orig_size_k, storage::VolumeInfo::origSizeK, storage::VolumeInfo::resize, storage::Device::size_k, storage::VolumeInfo::sizeK, tunefs_opt, storage::VolumeInfo::tunefs_options, storage::UB_NONE, storage::Device::uby, storage::Device::udevId(), storage::VolumeInfo::udevId, storage::Device::udevPath(), storage::VolumeInfo::udevPath, storage::VolumeInfo::usedBy, storage::VolumeInfo::usedByDevice, storage::VolumeInfo::usedByType, uuid, and storage::VolumeInfo::uuid.

Referenced by storage::Tmpfs::getInfo(), storage::Partition::getInfo(), storage::Nfs::getInfo(), storage::MdPart::getInfo(), storage::Md::getInfo(), storage::LvmLv::getInfo(), storage::Loop::getInfo(), storage::DmPart::getInfo(), storage::Dm::getInfo(), and storage::Btrfs::getInfo().

void storage::Volume::mergeFstabInfo ( storage::VolumeInfo tinfo,
const FstabEntry fste 
) const

void storage::Volume::updateFsData ( bool  setUsedByLvm = false  ) 

void storage::Volume::triggerUdevUpdate (  )  const

bool storage::Volume::loopInUse ( const Storage sto,
const string &  loopdev 
) [static]

static bool storage::Volume::notDeleted ( const Volume d  )  [inline, static]

static bool storage::Volume::isDeleted ( const Volume d  )  [inline, static]

bool storage::Volume::loopStringNum ( const string &  name,
unsigned &  num 
) [static]

const string& storage::Volume::fsTypeString (  )  const [inline]

bool storage::Volume::isTmpCryptMp ( const string &  mp  )  [static]

void storage::Volume::init (  )  [protected]

void storage::Volume::setNameDev (  )  [protected]

int storage::Volume::checkDevice (  )  const [protected]

References storage::Device::dev.

Referenced by doFormat(), and doMount().

int storage::Volume::checkDevice ( const string &  device  )  const [protected]

MountByType storage::Volume::defaultMountBy (  )  const [protected]

bool storage::Volume::allowedMountBy ( MountByType  mby  )  const [protected]

bool storage::Volume::findBlkid ( const Blkid blkid,
Blkid::Entry entry 
) [protected]

void storage::Volume::getFsData ( const Blkid blkid,
bool  setUsedByLvm = false 
) [protected]

void storage::Volume::getLoopData ( SystemCmd loopData  )  [protected]

void storage::Volume::getMountData ( const ProcMounts mounts,
bool  swap_only = false 
) [protected]

void storage::Volume::getFstabData ( EtcFstab fstabData  )  [protected]

void storage::Volume::updateUuid ( const string &  new_uuid  )  [protected]

References storage::Device::alt_names, and uuid.

Referenced by doFormat(), and getFsData().

void storage::Volume::replaceAltName ( const string &  prefix,
const string &  newn 
) [protected]

string storage::Volume::getMountByString (  )  const [protected]

string storage::Volume::getFstabDevice (  )  const [protected]

string storage::Volume::getFstabDentry (  )  const [protected]

list< string > storage::Volume::getFstabOpts (  )  const [protected]

bool storage::Volume::getLoopFile ( string &  fname  )  const [protected]

void storage::Volume::setExtError ( const SystemCmd cmd,
bool  serr = true 
) [protected]

string storage::Volume::getDmcryptName (  )  const [protected]

bool storage::Volume::needLosetup ( bool  urgent  )  const [protected]

bool storage::Volume::needCryptsetup (  )  const [protected]

int storage::Volume::doLosetup (  )  [protected]

int storage::Volume::doCryptsetup (  )  [protected]

int storage::Volume::loUnsetup ( bool  force = false  )  [protected]

int storage::Volume::cryptUnsetup ( bool  force = false  )  [protected]

bool storage::Volume::pwdLengthOk ( storage::EncryptType  typ,
const string &  val,
bool  format 
) const [protected]

bool storage::Volume::noFreqPassno (  )  const [protected]

int storage::Volume::prepareTmpMount ( string &  m,
bool &  needUmount,
bool  useMounted = true,
const string &  options = "" 
) [protected]

int storage::Volume::umountTmpMount ( const string &  m,
int  ret 
) [protected]

int storage::Volume::doFormatBtrfs (  )  [protected]

string storage::Volume::getLosetupCmd ( storage::EncryptType  ,
const string &  pwdfile 
) const [protected]

string storage::Volume::getCryptsetupCmd ( storage::EncryptType  e,
const string &  dmdev,
const string &  mp,
const string &  pwdfile,
bool  format,
bool  empty_pwd = false 
) const [protected]

EncryptType storage::Volume::detectEncryption (  )  [protected]

string storage::Volume::getFilesysSysfsPath (  )  const [protected]

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


Friends And Related Function Documentation

friend class Storage [friend]

std::ostream& operator<< ( std::ostream &  s,
const Volume v 
) [friend]


Member Data Documentation

const Container* const storage::Volume::cont [protected]

bool storage::Volume::numeric [protected]

bool storage::Volume::format [protected]

bool storage::Volume::fstab_added [protected]

string storage::Volume::uuid [protected]

string storage::Volume::orig_uuid [protected]

string storage::Volume::label [protected]

string storage::Volume::orig_label [protected]

string storage::Volume::mp [protected]

string storage::Volume::orig_mp [protected]

string storage::Volume::fstab_opt [protected]

string storage::Volume::orig_fstab_opt [protected]

string storage::Volume::mkfs_opt [protected]

string storage::Volume::tunefs_opt [protected]

bool storage::Volume::is_loop [protected]

bool storage::Volume::is_mounted [protected]

bool storage::Volume::ignore_fs [protected]

bool storage::Volume::loop_active [protected]

bool storage::Volume::ronly [protected]

string storage::Volume::loop_dev [protected]

string storage::Volume::dmcrypt_dev [protected]

string storage::Volume::fstab_loop_dev [protected]

string storage::Volume::crypt_pwd [protected]

string storage::Volume::orig_crypt_pwd [protected]

unsigned storage::Volume::num [protected]

unsigned long long storage::Volume::orig_size_k [protected]

string storage::Volume::dtxt [protected]

const string storage::Volume::tmp_mount = { "swap", "/tmp", "/var/tmp" } [static, protected]

Referenced by isTmpCryptMp().

const string storage::Volume::ignore_opt = { "defaults" } [static, protected]

Referenced by mount().

const string storage::Volume::ignore_beg = { "loop", "encryption=", "phash=", "itercountk=" } [static, protected]

Referenced by mount().


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

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