#include <Volume.h>

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 Container * | getContainer () const |
| Storage * | getStorage () 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 &) | |
| Volume & | operator= (const Volume &) |
Friends | |
| class | Storage |
| std::ostream & | operator<< (std::ostream &s, const Volume &v) |
| storage::Volume::Volume | ( | const Container & | c, | |
| unsigned | Pnr, | |||
| unsigned long long | SizeK | |||
| ) |
References cont, storage::Device::dev, storage::Device::device(), init(), num, orig_size_k, storage::Device::size_k, and y2deb.
| storage::Volume::Volume | ( | const Container & | c, | |
| const string & | name, | |||
| const string & | device | |||
| ) |
References cont, defaultMountBy(), storage::Device::dev, storage::Device::device(), mount_by, storage::Device::nm, orig_mount_by, and y2deb.
| storage::Volume::Volume | ( | const Container & | c, | |
| const string & | name, | |||
| const string & | device, | |||
| SystemInfo & | systeminfo | |||
| ) |
References cont, defaultMountBy(), storage::Device::dev, storage::Device::device(), getStorage(), mount_by, storage::Device::nm, orig_mount_by, and y2deb.
| storage::Volume::Volume | ( | const Container & | c, | |
| const xmlNode * | node | |||
| ) |
References crypt_pwd, detected_fs, storage::Device::dev, storage::ENC_UNKNOWN, encryption, fs, fstab_opt, storage::FSUNKNOWN, storage::getChildValue(), getStorage(), label, mount_by, storage::MOUNTBY_DEVICE, mp, num, numeric, orig_crypt_pwd, orig_encryption, orig_fstab_opt, orig_label, orig_mount_by, orig_mp, orig_size_k, orig_uuid, storage::Device::size_k, storage::toValueWithFallback(), uuid, and y2deb.
References storage::Device::dev, and y2deb.
| storage::Volume::~Volume | ( | ) | [virtual] |
References storage::Device::dev, and y2deb.
| storage::Volume::Volume | ( | const Volume & | ) | [private] |
| void storage::Volume::saveData | ( | xmlNode * | node | ) | const |
Reimplemented from storage::Device.
Reimplemented in storage::Btrfs, storage::Dm, storage::LvmLv, storage::Partition, and storage::Tmpfs.
References crypt_pwd, storage::ENC_NONE, encryption, fs, fstab_opt, storage::FSUNKNOWN, label, mount_by, storage::MOUNTBY_DEVICE, mp, num, numeric, storage::Device::saveData(), storage::setChildValue(), storage::toString(), and uuid.
Referenced by storage::Tmpfs::saveData(), storage::Partition::saveData(), storage::Dm::saveData(), and storage::Btrfs::saveData().
| const string & storage::Volume::mountDevice | ( | ) | const |
References storage::Device::dev, dmcrypt(), dmcrypt_dev, is_loop, and loop_dev.
Referenced by storage::FreeInfo::detectContentInfo(), doFormat(), doFormatBtrfs(), doMount(), doSetLabel(), findBlkid(), getFsData(), getMountData(), mount(), resizeFs(), umount(), umountTmpMount(), and updateFsData().
| const string& storage::Volume::loopDevice | ( | ) | const [inline] |
| const string& storage::Volume::dmcryptDevice | ( | ) | const [inline] |
| const Container* storage::Volume::getContainer | ( | ) | const [inline] |
| Storage * storage::Volume::getStorage | ( | ) | const |
References cont, and storage::Container::getStorage().
Referenced by storage::Md::addDevice(), canResize(), storage::Btrfs::changeDeviceName(), changeMountBy(), storage::Partition::changeNumber(), checkDevice(), storage::Md::computeSize(), createText(), defaultMountBy(), detectEncryption(), storage::Dm::Dm(), storage::Btrfs::doCreateSubvol(), doCryptsetup(), storage::Btrfs::doDeleteSubvol(), storage::Btrfs::doExtend(), doFormat(), doFormatBtrfs(), doFstabUpdate(), doLosetup(), doMount(), storage::Btrfs::doReduce(), doSetLabel(), storage::Btrfs::extendVolume(), storage::Btrfs::findRealVolume(), fstabUpdateText(), getCommitActions(), storage::Btrfs::getCommitActions(), getFreeLoop(), getFstabData(), init(), storage::Dm::init(), storage::Loop::lfileRealPath(), storage::Md::Md(), storage::MdPart::MdPart(), mount(), mountText(), storage::Tmpfs::mountText(), needFstabUpdate(), prepareRemove(), prepareTmpMount(), storage::Md::removeDevice(), storage::Dm::removeTable(), resizeFs(), setFormat(), storage::Btrfs::setFormat(), setLabel(), storage::Md::setParity(), storage::Btrfs::shrinkVolume(), umountTmpMount(), and Volume().
| CType storage::Volume::cType | ( | ) | const |
References cont, and storage::Container::type().
Referenced by allowedMountBy(), defaultMountBy(), detectEncryption(), doCryptsetup(), doFormatBtrfs(), doFstabUpdate(), getCommitActions(), getDmcryptName(), getFstabData(), getFstabDentry(), getFstabDevice(), getFstabOpts(), getLoopData(), getLoopFile(), init(), needLosetup(), storage::Storage::removeDmTableTo(), setEncryption(), storage::sort_vol_create(), and storage::sort_vol_delete().
| void storage::Volume::setReadonly | ( | bool | val = true |
) | [inline] |
| bool storage::Volume::ignoreFstab | ( | ) | const [inline] |
References ignore_fstab.
| void storage::Volume::setIgnoreFstab | ( | bool | val = true |
) | [inline] |
References ignore_fstab.
Referenced by getFstabData(), storage::NfsCo::getNfsData(), and storage::TmpfsCo::getTmpfsData().
| bool storage::Volume::ignoreFs | ( | ) | const [inline] |
References ignore_fs.
| void storage::Volume::setIgnoreFs | ( | bool | val = true |
) | [inline] |
| void storage::Volume::setFstabAdded | ( | bool | val = true |
) | [inline] |
References fstab_added.
| bool storage::Volume::fstabAdded | ( | ) | const [inline] |
| void storage::Volume::getFsInfo | ( | const Volume * | source | ) |
References getFormat(), getFs(), getLabel(), getUuid(), initLabel(), initUuid(), setFormat(), and setFs().
Referenced by storage::MdPartCo::addNewDev(), storage::DmPartCo::addNewDev(), storage::MdPartCo::resizePartition(), storage::DmPartCo::resizePartition(), storage::MdPartCo::resizeVolume(), and storage::DmPartCo::resizeVolume().
| int storage::Volume::setFormat | ( | bool | format = true, |
|
| storage::FsType | fs = storage::REISERFS | |||
| ) | [virtual] |
Reimplemented in storage::Btrfs, and storage::Partition.
References detected_fs, storage::Device::dev, eraseLabel(), format, fs, storage::Storage::getFsCapabilities(), getStorage(), storage::Device::isUsedBy(), label, storage::FsCapabilities::labelLength, storage::FsCapabilities::minimalFsSizeK, mkfs_opt, storage::NFS, storage::NFS4, orig_label, orig_uuid, storage::Device::size_k, storage::FsCapabilities::supportsLabel, storage::TMPFS, storage::toString(), tunefs_opt, uuid, storage::VOLUME_ALREADY_IN_USE, storage::VOLUME_FORMAT_FS_TOO_SMALL, storage::VOLUME_FORMAT_IMPOSSIBLE, and y2mil.
Referenced by storage::Storage::createFileLoop(), getFsInfo(), storage::Partition::setFormat(), and storage::Btrfs::setFormat().
| 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 | ) |
References allowedMountBy(), storage::Device::dev, storage::ENC_NONE, encryption, fs, getStorage(), storage::Device::isUsedBy(), mount_by, storage::MOUNTBY_LABEL, storage::MOUNTBY_UUID, needFstabUpdate(), storage::FsCapabilities::supportsLabel, storage::FsCapabilities::supportsUuid, storage::toString(), storage::VOLUME_ALREADY_IN_USE, storage::VOLUME_MOUNTBY_NOT_ENCRYPTED, storage::VOLUME_MOUNTBY_UNSUPPORTED_BY_FS, storage::VOLUME_MOUNTBY_UNSUPPORTED_BY_VOLUME, and y2mil.
Referenced by storage::Btrfs::Btrfs().
| int storage::Volume::changeMount | ( | const string & | m | ) | [virtual] |
Reimplemented in storage::Partition.
References defaultMountBy(), storage::Device::dev, fstab_opt, storage::Device::isUsedBy(), mount_by, mp, orig_fstab_opt, orig_mount_by, storage::VOLUME_ALREADY_IN_USE, storage::VOLUME_MOUNT_POINT_INVALID, and y2mil.
Referenced by storage::NfsCo::addNfs(), storage::Partition::changeMount(), and storage::Storage::createFileLoop().
| bool storage::Volume::loop | ( | ) | const [inline] |
| bool storage::Volume::dmcrypt | ( | ) | const [inline] |
References storage::ENC_NONE, storage::ENC_UNKNOWN, and encryption.
Referenced by dmcryptActive(), doCryptsetup(), doFstabUpdate(), doLosetup(), storage::LvmVg::extendVg(), getFstabDentry(), getFstabDevice(), getFstabOpts(), getInfo(), getLoopData(), mountDevice(), needCryptPwd(), needCryptsetup(), needLosetup(), and storage::Loop::setEncryption().
| 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 |
References needCryptsetup(), and needLosetup().
Referenced by storage::Container::commitChanges(), getCommitActions(), and storage::Container::stageIncrease().
| const string& storage::Volume::getUuid | ( | ) | const [inline] |
References uuid.
Referenced by storage::Btrfs::extendVolume(), getFsInfo(), and storage::Storage::setBtrfsUsedBy().
| const string& storage::Volume::getLabel | ( | ) | const [inline] |
References label.
Referenced by storage::FreeInfo::detectContentInfo(), storage::Disk::doCreate(), and getFsInfo().
| 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] |
| bool storage::Volume::needLabel | ( | ) | const [inline] |
References label, and orig_label.
Referenced by storage::Container::commitChanges(), storage::Disk::doCreate(), and storage::Container::stageFormat().
| storage::EncryptType storage::Volume::getEncryption | ( | ) | const [inline] |
References encryption.
Referenced by storage::Container::commitChanges(), doFormatBtrfs(), and updateFsData().
| 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] |
Reimplemented in storage::Loop.
References clearCryptPwd(), storage::Device::create, crypt_pwd, cType(), detectEncryption(), dmcrypt_active, dmcrypt_dev, storage::ENC_NONE, storage::ENC_UNKNOWN, encryption, format, getDmcryptName(), is_loop, isTmpCryptMp(), storage::Device::isUsedBy(), storage::LOOP, loop_active, mp, storage::NFSC, orig_crypt_pwd, pwdLengthOk(), storage::toString(), updateFstabOptions(), storage::VOLUME_ALREADY_IN_USE, storage::VOLUME_CRYPT_NFS_IMPOSSIBLE, storage::VOLUME_CRYPT_NO_PWD, storage::VOLUME_CRYPT_NOT_DETECTED, storage::VOLUME_CRYPT_PWD_TOO_SHORT, and y2mil.
Referenced by storage::Storage::createFileLoop(), and storage::Loop::setEncryption().
| const string& storage::Volume::getCryptPwd | ( | ) | const [inline] |
References crypt_pwd.
| int storage::Volume::setCryptPwd | ( | const string & | val | ) |
References crypt_pwd, detectEncryption(), storage::ENC_UNKNOWN, encryption, format, isTmpCryptMp(), mp, orig_crypt_pwd, pwdLengthOk(), storage::VOLUME_CRYPT_PWD_TOO_SHORT, and y2mil.
Referenced by storage::Storage::createFileLoop(), and storage::Storage::verifyCryptFilePassword().
| void storage::Volume::clearCryptPwd | ( | ) | [inline] |
| bool storage::Volume::needCryptPwd | ( | ) | const |
References crypt_pwd, dmcrypt(), dmcrypt_active, is_loop, loop_active, and y2mil.
| const string& storage::Volume::getMount | ( | ) | const [inline] |
References mp.
Referenced by canUseDevice(), storage::BtrfsCo::getBtrfsData(), storage::commitAction::operator<(), prepareTmpMount(), storage::sort_vol_delete(), and storage::sort_vol_mount().
| bool storage::Volume::hasOrigMount | ( | ) | const [inline] |
References orig_mp.
Referenced by storage::commitAction::operator<(), and storage::sort_vol_mount().
| bool storage::Volume::needRemount | ( | ) | const |
References is_loop, isMounted(), loop_active, mp, optNoauto(), and orig_mp.
Referenced by storage::Container::commitChanges(), and storage::Container::stageMount().
| bool storage::Volume::needShrink | ( | ) | const [inline] |
References storage::Device::del, orig_size_k, and storage::Device::size_k.
Referenced by storage::Container::commitChanges(), storage::Disk::doResize(), getCommitActions(), resizeFs(), resizeText(), storage::Partition::resizeText(), storage::LvmLv::resizeText(), storage::Dmraid::resizeText(), storage::Dmmultipath::resizeText(), storage::sort_vol_delete(), and storage::Container::stageDecrease().
| bool storage::Volume::needExtend | ( | ) | const [inline] |
| long long storage::Volume::extendSize | ( | ) | const [inline] |
| 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] |
References detected_fs, and fs.
Referenced by storage::Btrfs::Btrfs(), getFsInfo(), storage::LoopCo::getLoopData(), storage::Nfs::Nfs(), and storage::Tmpfs::Tmpfs().
| void storage::Volume::initUuid | ( | const string & | id | ) | [inline] |
| void storage::Volume::initLabel | ( | const string & | lbl | ) | [inline] |
| storage::MountByType storage::Volume::getMountBy | ( | ) | const [inline] |
| const string& storage::Volume::getFstabOption | ( | ) | const [inline] |
| void storage::Volume::setFstabOption | ( | const string & | val | ) | [inline] |
References fstab_opt, and orig_fstab_opt.
Referenced by storage::NfsCo::addNfs(), storage::TmpfsCo::addTmpfs(), and storage::NfsCo::getNfsData().
| unsigned storage::Volume::fstabFreq | ( | ) | const |
| unsigned storage::Volume::fstabPassno | ( | ) | const |
| void storage::Volume::setMount | ( | const string & | val | ) | [inline] |
Referenced by storage::NfsCo::getNfsData(), setUsedByUuid(), and storage::Tmpfs::Tmpfs().
| void storage::Volume::updateFstabOptions | ( | ) |
References fstab_opt, and getFstabOpts().
Referenced by changeFstabOptions(), doCryptsetup(), doLosetup(), and setEncryption().
| bool storage::Volume::needFstabUpdate | ( | ) | const |
References encryption, fstab_opt, getStorage(), ignore_fstab, mount_by, mp, orig_encryption, orig_fstab_opt, orig_mount_by, and orig_mp.
Referenced by changeMountBy(), storage::Container::commitChanges(), getCommitActions(), and storage::Container::stageMount().
| 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] |
| int storage::Volume::setDescText | ( | const string & | val | ) | [inline] |
References dtxt.
| unsigned storage::Volume::nr | ( | ) | const [inline] |
References num.
Referenced by storage::DmCo::addDm(), storage::MdCo::addMd(), storage::MdPartCo::addNewDev(), storage::DmPartCo::addNewDev(), storage::Disk::checkPartitionsValid(), storage::Dasd::checkPartitionsValid(), storage::Disk::doCreate(), storage::Disk::doResize(), storage::Disk::freeCylindersAroundPartition(), storage::Disk::getPartedSectors(), storage::Disk::getPartedValues(), storage::Dmraid::removeText(), storage::Dmmultipath::removeText(), storage::MdPartCo::removeVolume(), storage::MdCo::removeVolume(), storage::DmPartCo::removeVolume(), storage::Disk::removeVolume(), storage::MdPartCo::resizeVolume(), storage::DmPartCo::resizeVolume(), storage::MdPartCo::updateDelDev(), storage::DmPartCo::updateDelDev(), storage::MdPart::updateName(), storage::DmPart::updateName(), storage::MdPartCo::validPartition(), storage::DmPartCo::validPartition(), and storage::volume_ptr_sort_nr().
| unsigned long long storage::Volume::origSizeK | ( | ) | const [inline] |
References orig_size_k.
Referenced by storage::LvmVg::doResize(), storage::MdPart::updateSize(), and storage::DmPart::updateSize().
| bool storage::Volume::isNumeric | ( | ) | const [inline] |
References numeric.
| void storage::Volume::setSize | ( | unsigned long long | SizeK | ) | [inline] |
References orig_size_k, and storage::Device::size_k.
Referenced by storage::NfsCo::addNfs(), storage::Disk::addPartition(), storage::Btrfs::Btrfs(), storage::LvmLv::calcSize(), storage::Dm::calcSize(), storage::Loop::checkReuse(), storage::Md::computeSize(), storage::Dasd::detectPartitions(), storage::DmPart::DmPart(), doCryptsetup(), storage::Btrfs::extendVolume(), storage::DmCo::getDmData(), storage::NfsCo::getNfsData(), storage::Disk::getPartedValues(), storage::TmpfsCo::getTmpfsData(), storage::MdPartCo::handleWholeDevice(), storage::DmPartCo::handleWholeDevice(), storage::Loop::Loop(), storage::Md::Md(), storage::MdPart::MdPart(), storage::Storage::resizePartition(), storage::Storage::resizeVolume(), storage::Btrfs::shrinkVolume(), storage::Md::updateData(), storage::Storage::updatePartitionArea(), storage::MdPart::updateSize(), and storage::DmPart::updateSize().
| virtual void storage::Volume::setResizedSize | ( | unsigned long long | SizeK | ) | [inline, virtual] |
Reimplemented in storage::Partition.
References storage::Device::size_k.
Referenced by storage::LvmVg::resizeVolume(), and storage::Partition::setResizedSize().
| void storage::Volume::setUsedByUuid | ( | UsedByType | type, | |
| const string & | uuid | |||
| ) |
References detected_fs, storage::Device::device(), eraseLabel(), eraseUuid(), format, fs, setMount(), storage::Device::setUsedBy(), and y2mil.
| void storage::Volume::setDmcryptDev | ( | const string & | dm, | |
| bool | active | |||
| ) |
Reimplemented in storage::Loop.
References storage::Device::dev, dmcrypt_active, dmcrypt_dev, and y2mil.
Referenced by storage::Loop::setDmcryptDev().
| void storage::Volume::setDmcryptDevEnc | ( | const string & | dm, | |
| storage::EncryptType | typ, | |||
| bool | active | |||
| ) |
References storage::Device::dev, dmcrypt_active, dmcrypt_dev, encryption, orig_encryption, storage::toString(), and y2mil.
| virtual void storage::Volume::forgetResize | ( | ) | [inline, virtual] |
Reimplemented in storage::Partition.
References orig_size_k, and storage::Device::size_k.
Referenced by storage::Partition::forgetResize().
| bool storage::Volume::canUseDevice | ( | ) | const [virtual] |
Reimplemented in storage::Partition.
References getMount(), and storage::Device::isUsedBy().
Referenced by storage::Partition::canUseDevice(), and storage::MdCo::checkUse().
| bool storage::Volume::operator== | ( | const Volume & | rhs | ) | const |
References cont, storage::Device::del, storage::Device::nm, num, and numeric.
| bool storage::Volume::operator!= | ( | const Volume & | rhs | ) | const [inline] |
| bool storage::Volume::operator< | ( | const Volume & | rhs | ) | const |
References cont, storage::Device::del, storage::Device::nm, num, and numeric.
| 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 |
References storage::Device::create, storage::Device::del, storage::Device::dev, dtxt, encryption, format, fs, fstab_added, fstab_loop_dev, fstab_opt, is_loop, is_mounted, label, loop_active, loop_dev, storage::Device::mjr, mkfs_opt, storage::Device::mnr, mount_by, mp, storage::Device::nm, num, numeric, ronly, storage::Device::silent, storage::Device::size_k, tunefs_opt, storage::Device::uby, and uuid.
Referenced by storage::Tmpfs::equalContent(), storage::Partition::equalContent(), storage::Nfs::equalContent(), storage::Md::equalContent(), storage::Loop::equalContent(), storage::Dm::equalContent(), and storage::Btrfs::equalContent().
| void storage::Volume::logDifference | ( | std::ostream & | log, | |
| const Volume & | rhs | |||
| ) | const |
References crypt_pwd, detected_fs, dtxt, encryption, format, fs, fstab_loop_dev, fstab_opt, is_loop, is_mounted, label, storage::logDiff(), storage::logDiffEnum(), storage::Device::logDifference(), loop_active, loop_dev, mkfs_opt, mount_by, mp, num, orig_encryption, orig_fstab_opt, orig_label, orig_mount_by, orig_mp, orig_size_k, ronly, storage::Device::size_k, tunefs_opt, storage::Device::uby, and uuid.
Referenced by storage::Tmpfs::logDifference(), storage::Partition::logDifference(), storage::Nfs::logDifference(), storage::MdPart::logDifference(), storage::Md::logDifference(), storage::Loop::logDifference(), storage::Dm::logDifference(), and storage::Btrfs::logDifference().
| int storage::Volume::prepareRemove | ( | ) |
References crUnsetup(), storage::Device::dev, dmcrypt_active, storage::Storage::eraseCachedFreeInfo(), getStorage(), loop_active, storage::Storage::removeDmTableTo(), unaccessVol(), and y2mil.
Referenced by storage::TmpfsCo::doRemove(), storage::NfsCo::doRemove(), storage::MdPartCo::doRemove(), storage::LvmVg::doRemove(), storage::DmPartCo::doRemove(), and storage::Disk::doRemove().
| int storage::Volume::unaccessVol | ( | ) |
| int storage::Volume::umount | ( | const string & | mp = "" |
) |
References storage::ProcMounts::allMounts(), detected_fs, storage::Device::dev, dmcrypt_active, dmcrypt_dev, storage::SystemCmd::execute(), fs, storage::ProcMounts::getMount(), is_mounted, loop_active, loop_dev, mountDevice(), orig_mp, storage::quote(), storage::SWAP, SWAPOFFBIN, storage::TMPFS, UMOUNTBIN, storage::VOLUME_UMOUNT_FAILED, storage::VOLUME_UMOUNT_NOT_MOUNTED, and y2mil.
Referenced by doCryptsetup(), doFormat(), doFstabUpdate(), doLosetup(), doMount(), storage::LvmVg::doResize(), storage::Disk::doResize(), doSetLabel(), resizeFs(), and unaccessVol().
| int storage::Volume::crUnsetup | ( | bool | force = false |
) |
| int storage::Volume::mount | ( | const string & | mp = "", |
|
| bool | ro = false | |||
| ) |
References storage::Device::alt_names, storage::BTRFS, storage::Device::dev, storage::SystemCmd::execute(), fs, fstab_opt, storage::FSUNKNOWN, storage::ProcMounts::getMount(), getStorage(), ignore_beg, ignore_opt, is_mounted, storage::lengthof(), MODPROBEBIN, MOUNTBIN, mountDevice(), mp, storage::NTFS, storage::quote(), setExtError(), storage::splitString(), storage::SWAP, SWAPONBIN, storage::toString(), storage::VFAT, storage::VOLUME_MOUNT_FAILED, and y2mil.
Referenced by doFormat(), doFstabUpdate(), doMount(), storage::LvmVg::doResize(), storage::Disk::doResize(), doSetLabel(), and resizeFs().
| int storage::Volume::canResize | ( | unsigned long long | newSizeK | ) | const |
References canResize(), format, fs, storage::FSNONE, getStorage(), ignore_fs, storage::FsCapabilities::isExtendable, storage::FsCapabilities::isReduceable, storage::Device::isUsedBy(), storage::Device::size_k, storage::VOLUME_ALREADY_IN_USE, storage::VOLUME_RESIZE_UNSUPPORTED_BY_FS, and y2mil.
Referenced by canResize(), storage::Disk::resizePartition(), and storage::LvmVg::resizeVolume().
| int storage::Volume::doMount | ( | ) |
References checkDevice(), storage::createPath(), storage::Device::dev, doFstabUpdate(), fs, storage::getStatMode(), getStorage(), isMounted(), isTmpCryptMp(), storage::Device::isUsedBy(), mount(), mountDevice(), mountText(), mp, storage::NFS, storage::NFS4, orig_mp, storage::Storage::prependRoot(), storage::Storage::removeDmTableTo(), storage::Storage::rootMounted(), storage::setStatMode(), storage::Storage::showInfoCb(), storage::Device::silent, storage::Storage::testmode(), storage::TMPFS, umount(), storage::VOLUME_ALREADY_IN_USE, and y2mil.
Referenced by storage::Container::commitChanges().
| int storage::Volume::doFormat | ( | ) |
References storage::BTRFS, checkDevice(), storage::decString(), detected_fs, storage::Device::dev, doFormatBtrfs(), doFstabUpdate(), doSetLabel(), storage::ENC_NONE, encryption, storage::SystemCmd::execute(), storage::EXT2, storage::EXT3, storage::EXT4, findBlkid(), format, formatText(), fs, storage::Blkid::Entry::fs_uuid, fstab_opt, storage::Storage::getCallbackProgressBarTheOne(), getStorage(), storage::handle_O_Features(), storage::HFS, storage::HFSPLUS, storage::Blkid::Entry::is_fs, isMounted(), storage::Device::isUsedBy(), storage::JFS, label, mkfs_opt, mount(), mountDevice(), mp, orig_mp, storage::quote(), storage::REISERFS, storage::Storage::removeDmTableTo(), storage::SystemCmd::retcode(), setExtError(), storage::SystemCmd::setOutputProcessor(), storage::Storage::setUsedByBtrfs(), storage::Storage::showInfoCb(), storage::Device::silent, storage::SWAP, triggerUdevUpdate(), tunefs_opt, umount(), updateFsData(), updateUuid(), uuid, storage::VFAT, storage::VOLUME_ALREADY_IN_USE, storage::VOLUME_FORMAT_FAILED, storage::VOLUME_FORMAT_FS_UNDETECTED, storage::VOLUME_FORMAT_NOT_IMPLEMENTED, storage::VOLUME_FORMAT_UNKNOWN_FS, storage::VOLUME_TUNE2FS_FAILED, storage::VOLUME_TUNEREISERFS_FAILED, storage::XFS, y2mil, and storage::Storage::zeroDevice().
Referenced by storage::Container::commitChanges().
| int storage::Volume::doCrsetup | ( | ) |
References crypt_pwd, doCryptsetup(), doFstabUpdate(), doLosetup(), storage::ENC_NONE, encryption, format, isTmpCryptMp(), loUnsetup(), mp, needCryptsetup(), needLosetup(), orig_crypt_pwd, updateFsData(), and y2mil.
Referenced by storage::Container::commitChanges().
| int storage::Volume::doSetLabel | ( | ) |
References storage::BTRFS, BTRFSBIN, storage::Device::dev, doFstabUpdate(), storage::EXT2, storage::EXT3, storage::EXT4, fs, getStorage(), is_mounted, storage::Device::isUsedBy(), storage::JFS, label, labelText(), storage::FsCapabilities::labelWhileMounted, mount(), mountDevice(), mp, orig_label, orig_mp, storage::quote(), storage::REISERFS, storage::SystemCmd::retcode(), storage::Storage::showInfoCb(), storage::Device::silent, storage::FsCapabilities::supportsLabel, storage::SWAP, triggerUdevUpdate(), umount(), uuid, storage::VOLUME_ALREADY_IN_USE, storage::VOLUME_LABEL_TOO_LONG, storage::VOLUME_LABEL_WHILE_MOUNTED, storage::VOLUME_MKLABEL_FAILED, storage::VOLUME_MKLABEL_FS_UNABLE, storage::XFS, and y2mil.
Referenced by storage::Container::commitChanges(), and doFormat().
| 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 | ( | ) |
References CRYPTSETUPBIN, storage::decString(), dmcrypt_dev, storage::ENC_NONE, encryption, storage::SystemCmd::execute(), storage::EXT2, storage::EXT3, storage::EXT4, format, fs, getStorage(), ignore_fs, isMounted(), label, mount(), mountDevice(), needShrink(), storage::NTFS, orig_mp, storage::quote(), storage::REISERFS, storage::SystemCmd::retcode(), storage::SystemCmd::setCombine(), setExtError(), storage::Device::size_k, storage::SWAP, storage::Storage::tmpDir(), umount(), uuid, storage::VOLUME_RESIZE_FAILED, storage::VOLUME_RESIZE_UNSUPPORTED_BY_FS, storage::XFS, and y2mil.
Referenced by storage::LvmVg::doResize(), and storage::Disk::doResize().
| void storage::Volume::fstabUpdateDone | ( | ) |
References encryption, fstab_opt, mount_by, orig_encryption, orig_fstab_opt, orig_mount_by, and y2mil.
Referenced by storage::Container::commitChanges().
| bool storage::Volume::isMounted | ( | ) | const [inline] |
References is_mounted.
Referenced by doFormat(), doFstabUpdate(), doMount(), storage::LvmVg::doResize(), storage::Disk::doResize(), needRemount(), prepareTmpMount(), resizeFs(), storage::sort_vol_delete(), and unaccessVol().
| Text storage::Volume::removeText | ( | bool | doing | ) | const [virtual] |
Reimplemented in storage::Btrfs, storage::Dm, storage::Dmmultipath, storage::Dmraid, storage::Loop, storage::LvmLv, storage::Md, storage::Nfs, storage::Partition, and storage::Tmpfs.
References storage::_(), storage::Device::dev, and storage::sformat().
Referenced by getCommitActions().
| Text storage::Volume::createText | ( | bool | doing | ) | const [virtual] |
Reimplemented in storage::Dmmultipath, storage::Dmraid, storage::Loop, storage::LvmLv, storage::Md, and storage::Partition.
References storage::_(), storage::Storage::bootMount(), storage::Device::dev, storage::ENC_NONE, encryption, fsTypeString(), getStorage(), mp, storage::sformat(), and storage::Device::sizeString().
Referenced by storage::Partition::createText(), and getCommitActions().
| Text storage::Volume::resizeText | ( | bool | doing | ) | const [virtual] |
Reimplemented in storage::Dmmultipath, storage::Dmraid, storage::LvmLv, and storage::Partition.
References storage::_(), storage::Device::dev, needShrink(), storage::sformat(), and storage::Device::sizeString().
Referenced by getCommitActions().
| Text storage::Volume::formatText | ( | bool | doing | ) | const [virtual] |
Reimplemented in storage::Btrfs, storage::Dm, storage::Dmmultipath, storage::Dmraid, storage::Loop, storage::LvmLv, storage::Md, and storage::Partition.
References storage::_(), storage::Device::dev, storage::ENC_NONE, encryption, fsTypeString(), mp, storage::sformat(), and storage::Device::sizeString().
Referenced by doFormat(), storage::Btrfs::formatText(), and getCommitActions().
| void storage::Volume::getCommitActions | ( | list< commitAction > & | l | ) | const [virtual] |
Reimplemented in storage::Btrfs, storage::DmPart, storage::MdPart, and storage::Partition.
References storage::Device::created(), createText(), crsetupText(), cType(), storage::DECREASE, storage::Device::deleted(), storage::FORMAT, format, formatText(), fstabUpdateText(), getStorage(), storage::Device::getUsedBy(), storage::INCREASE, storage::Storage::instsys(), label, labelText(), storage::MOUNT, mountText(), mp, needCrsetup(), needExtend(), needFstabUpdate(), needShrink(), orig_label, orig_mp, removeText(), resizeText(), and y2mil.
Referenced by storage::Partition::getCommitActions(), storage::MdPart::getCommitActions(), storage::DmPart::getCommitActions(), and storage::Btrfs::getCommitActions().
| Text storage::Volume::mountText | ( | bool | doing | ) | const [virtual] |
Reimplemented in storage::Tmpfs.
References storage::_(), storage::Device::dev, getStorage(), inCryptotab(), inCrypttab(), storage::Storage::instsys(), mp, orig_mp, and storage::sformat().
Referenced by doMount(), and getCommitActions().
| Text storage::Volume::labelText | ( | bool | doing | ) | const |
References storage::_(), storage::Device::dev, label, and storage::sformat().
Referenced by doSetLabel(), and getCommitActions().
| Text storage::Volume::losetupText | ( | bool | doing | ) | const |
| Text storage::Volume::crsetupText | ( | bool | doing | ) | const |
References storage::_(), storage::Device::dev, and storage::sformat().
Referenced by doCryptsetup(), and getCommitActions().
| Text storage::Volume::fstabUpdateText | ( | ) | const |
References storage::Storage::getFstab(), getStorage(), inCryptotab(), mp, orig_mp, storage::EtcFstab::removeText(), and storage::EtcFstab::updateText().
Referenced by getCommitActions().
| bool storage::Volume::optNoauto | ( | ) | const |
References fstab_opt, and storage::splitString().
Referenced by inCryptotab(), needRemount(), and noFreqPassno().
| bool storage::Volume::inCryptotab | ( | ) | const [inline] |
References storage::ENC_LUKS, storage::ENC_NONE, encryption, and optNoauto().
Referenced by doFstabUpdate(), fstabUpdateText(), getFstabDentry(), mountText(), and storage::Tmpfs::mountText().
| bool storage::Volume::inCrypttab | ( | ) | const [inline] |
References storage::ENC_LUKS, and encryption.
Referenced by mountText(), and storage::Tmpfs::mountText().
| bool storage::Volume::pvEncryption | ( | ) | const |
References storage::ENC_LUKS, encryption, storage::Device::isUsedBy(), and storage::UB_LVM.
Referenced by doFstabUpdate().
| virtual void storage::Volume::print | ( | std::ostream & | s | ) | const [inline, virtual] |
Reimplemented in storage::Btrfs, storage::Dm, storage::Dmmultipath, storage::DmPart, storage::Dmraid, storage::Loop, storage::LvmLv, storage::Md, storage::MdPart, storage::Nfs, storage::Partition, and storage::Tmpfs.
| int storage::Volume::getFreeLoop | ( | ) |
References loop_dev, LOSETUPBIN, and y2mil.
Referenced by detectEncryption(), doFstabUpdate(), doLosetup(), getFreeLoop(), and storage::Loop::Loop().
| int storage::Volume::getFreeLoop | ( | SystemCmd & | loopData | ) |
References getFreeLoop(), loop_dev, and y2mil.
| int storage::Volume::getFreeLoop | ( | SystemCmd & | loopData, | |
| const std::list< unsigned > & | ids | |||
| ) |
References storage::IterPair< Iter >::begin(), storage::decString(), storage::IterPair< Iter >::end(), fstab_loop_dev, getStorage(), storage::hasLoopDevice(), storage::Storage::instsys(), loop_dev, loopStringNum(), num, storage::SystemCmd::select(), storage::Storage::volPair(), storage::VOLUME_LOSETUP_NO_LOOP, and y2mil.
| 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 |
) |
References storage::ENC_LUKS, storage::ENC_NONE, findBlkid(), storage::FSUNKNOWN, getEncryption(), getFs(), getFsData(), initEncryption(), storage::Blkid::Entry::is_luks, mountDevice(), and orig_encryption.
Referenced by detectEncryption(), storage::Disk::doCreate(), doCrsetup(), and doFormat().
| void storage::Volume::triggerUdevUpdate | ( | ) | const |
References storage::classic(), getFilesysSysfsPath(), storage::Storage::waitForDevice(), and y2mil.
Referenced by doFormat(), and doSetLabel().
| bool storage::Volume::loopInUse | ( | const Storage * | sto, | |
| const string & | loopdev | |||
| ) | [static] |
References storage::IterPair< Iter >::begin(), storage::IterPair< Iter >::end(), storage::hasLoopDevice(), and storage::Storage::volPair().
Referenced by storage::LoopCo::getLoopData().
| 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] |
References loop(), storage::Regex::match(), and storage::undevDevice().
Referenced by getFreeLoop(), and storage::Loop::Loop().
| const string& storage::Volume::fsTypeString | ( | ) | const [inline] |
References fs, and storage::toString().
Referenced by createText(), storage::Md::createText(), storage::LvmLv::createText(), storage::Loop::createText(), storage::Dmraid::createText(), storage::Dmmultipath::createText(), formatText(), storage::Partition::formatText(), storage::Md::formatText(), storage::LvmLv::formatText(), storage::Loop::formatText(), storage::Dmraid::formatText(), storage::Dmmultipath::formatText(), storage::Dm::formatText(), and storage::BtrfsCo::getBtrfsData().
| bool storage::Volume::isTmpCryptMp | ( | const string & | mp | ) | [static] |
References storage::lengthof(), tmp_mount, and y2mil.
Referenced by doCrsetup(), doCryptsetup(), doFstabUpdate(), doMount(), getCryptsetupCmd(), needCryptsetup(), setCryptPwd(), and setEncryption().
| void storage::Volume::init | ( | ) | [protected] |
Reimplemented in storage::Dm.
References cType(), defaultMountBy(), detected_fs, dmcrypt_active, storage::ENC_NONE, encryption, format, fs, fstab_added, storage::FSUNKNOWN, storage::Device::getMajorMinor(), getStorage(), ignore_fs, ignore_fstab, is_loop, is_mounted, loop_active, mount_by, storage::NFSC, storage::Device::nm, numeric, orig_encryption, orig_mount_by, ronly, and setNameDev().
Referenced by Volume().
| void storage::Volume::setNameDev | ( | ) | [protected] |
References storage::classic(), cont, storage::Device::dev, storage::Device::device(), storage::Device::nm, num, numeric, and storage::Disk::partNaming().
Referenced by init(), and storage::Loop::Loop().
| int storage::Volume::checkDevice | ( | ) | const [protected] |
| int storage::Volume::checkDevice | ( | const string & | device | ) | const [protected] |
| MountByType storage::Volume::defaultMountBy | ( | ) | const [protected] |
References allowedMountBy(), cType(), storage::Device::dev, storage::Storage::getDefaultMountBy(), getStorage(), storage::MOUNTBY_DEVICE, storage::toString(), and y2mil.
Referenced by storage::MdPart::addAltUdevId(), storage::DmPart::addAltUdevId(), storage::Partition::addUdevData(), changeMount(), init(), and Volume().
| bool storage::Volume::allowedMountBy | ( | MountByType | mby | ) | const [protected] |
References storage::BTRFSC, cType(), storage::Device::dev, storage::DISK, storage::DMMULTIPATH, storage::DMRAID, storage::ENC_NONE, encryption, storage::MD, storage::MDPART, storage::MOUNTBY_DEVICE, storage::MOUNTBY_ID, storage::MOUNTBY_LABEL, storage::MOUNTBY_PATH, storage::MOUNTBY_UUID, storage::NFSC, storage::toString(), storage::Device::udevId(), storage::Device::udevPath(), and y2mil.
Referenced by changeMountBy(), and defaultMountBy().
| bool storage::Volume::findBlkid | ( | const Blkid & | blkid, | |
| Blkid::Entry & | entry | |||
| ) | [protected] |
References storage::Device::alt_names, storage::Blkid::getEntry(), is_loop, and mountDevice().
Referenced by doFormat(), getFsData(), and updateFsData().
| void storage::Volume::getFsData | ( | const Blkid & | blkid, | |
| bool | setUsedByLvm = false | |||
| ) | [protected] |
References storage::Device::alt_names, detected_fs, storage::Device::device(), findBlkid(), fs, storage::Blkid::Entry::fs_label, storage::Blkid::Entry::fs_type, storage::Blkid::Entry::fs_uuid, storage::HFS, storage::Blkid::Entry::is_fs, storage::Blkid::Entry::is_lvm, label, mountDevice(), orig_label, storage::Device::setUsedBy(), storage::UB_LVM, storage::udevEncode(), updateUuid(), and y2mil.
Referenced by updateFsData().
| void storage::Volume::getLoopData | ( | SystemCmd & | loopData | ) | [protected] |
References storage::Device::alt_names, storage::classic(), cType(), storage::Device::device(), dmcrypt(), storage::ENC_NONE, storage::ENC_TWOFISH, storage::ENC_TWOFISH256_OLD, storage::ENC_TWOFISH_OLD, storage::ENC_UNKNOWN, encryption, fstab_loop_dev, storage::SystemCmd::getLine(), is_loop, storage::LOOP, loop_active, loop_dev, storage::Loop::loopFile(), orig_encryption, storage::SystemCmd::select(), storage::splitString(), storage::toString(), and y2mil.
Referenced by storage::Loop::Loop().
| void storage::Volume::getMountData | ( | const ProcMounts & | mounts, | |
| bool | swap_only = false | |||
| ) | [protected] |
References storage::Device::alt_names, storage::Device::device(), fs, storage::ProcMounts::getMount(), is_mounted, mountDevice(), mp, orig_mp, storage::TMPFS, and y2mil.
| void storage::Volume::getFstabData | ( | EtcFstab & | fstabData | ) | [protected] |
References storage::Device::alt_names, storage::classic(), cType(), storage::Device::device(), storage::FstabEntry::encr, encryption, storage::EtcFstab::findDevice(), storage::EtcFstab::findIdPath(), storage::EtcFstab::findMount(), storage::EtcFstab::findUuidLabel(), fstab_loop_dev, fstab_opt, getStorage(), storage::Storage::instsys(), is_loop, label, storage::FstabEntry::loop, storage::LOOP, storage::FstabEntry::loop_dev, loop_dev, storage::Loop::loopFile(), storage::FstabEntry::mount, storage::FstabEntry::mount_by, mount_by, storage::MOUNTBY_DEVICE, mp, storage::FstabEntry::noauto, storage::FstabEntry::opts, orig_encryption, orig_fstab_opt, orig_mount_by, orig_mp, storage::EtcFstab::setDevice(), setIgnoreFstab(), storage::toString(), storage::Device::udevId(), storage::Device::udevPath(), uuid, and y2mil.
| void storage::Volume::updateUuid | ( | const string & | new_uuid | ) | [protected] |
| void storage::Volume::replaceAltName | ( | const string & | prefix, | |
| const string & | newn | |||
| ) | [protected] |
References storage::Device::alt_names, storage::Device::dev, storage::find_if(), and y2mil.
Referenced by doCryptsetup(), storage::Loop::setDmcryptDev(), storage::Dm::updateMajorMinor(), and storage::DmPart::updateMinor().
| string storage::Volume::getMountByString | ( | ) | const [protected] |
References storage::Device::dev, label, mount_by, storage::MOUNTBY_DEVICE, storage::MOUNTBY_ID, storage::MOUNTBY_LABEL, storage::MOUNTBY_PATH, storage::MOUNTBY_UUID, storage::Device::udevId(), storage::Device::udevPath(), uuid, and y2err.
Referenced by getFstabDentry().
| string storage::Volume::getFstabDevice | ( | ) | const [protected] |
References cType(), storage::Device::dev, dmcrypt(), storage::LOOP, storage::Loop::loopFile(), storage::TMPFSC, and y2mil.
Referenced by doFstabUpdate().
| string storage::Volume::getFstabDentry | ( | ) | const [protected] |
References cType(), storage::Device::dev, dmcrypt(), dmcrypt_dev, getMountByString(), inCryptotab(), storage::LOOP, storage::Loop::loopFile(), storage::TMPFSC, and y2mil.
Referenced by doFstabUpdate().
| list< string > storage::Volume::getFstabOpts | ( | ) | const [protected] |
References cType(), dmcrypt(), storage::ENC_NONE, encryption, storage::find_if(), fstab_loop_dev, fstab_opt, is_loop, storage::LOOP, loop(), storage::splitString(), and storage::toString().
Referenced by doFstabUpdate(), and updateFstabOptions().
| bool storage::Volume::getLoopFile | ( | string & | fname | ) | const [protected] |
References cType(), storage::LOOP, and storage::Loop::loopFile().
Referenced by detectEncryption(), and doFstabUpdate().
| void storage::Volume::setExtError | ( | const SystemCmd & | cmd, | |
| bool | serr = true | |||
| ) | [protected] |
References cont, and storage::Container::setExtError().
Referenced by doFormat(), doFormatBtrfs(), mount(), and resizeFs().
| string storage::Volume::getDmcryptName | ( | ) | const [protected] |
References cType(), storage::Device::dev, storage::LOOP, storage::Loop::loopFile(), and storage::Device::nm.
Referenced by detectEncryption(), doCryptsetup(), storage::Loop::Loop(), setEncryption(), and storage::Loop::setEncryption().
| bool storage::Volume::needLosetup | ( | bool | urgent | ) | const [protected] |
References crypt_pwd, cType(), dmcrypt(), storage::ENC_NONE, encryption, is_loop, storage::LOOP, loop_active, loop_dev, and orig_crypt_pwd.
Referenced by doCrsetup(), and needCrsetup().
| bool storage::Volume::needCryptsetup | ( | ) | const [protected] |
References crypt_pwd, dmcrypt(), dmcrypt_active, storage::ENC_LUKS, storage::ENC_NONE, encryption, format, isTmpCryptMp(), storage::Device::isUsedBy(), mp, orig_crypt_pwd, orig_encryption, and storage::UB_LVM.
Referenced by doCrsetup(), and needCrsetup().
| int storage::Volume::doLosetup | ( | ) | [protected] |
References storage::classic(), crypt_pwd, storage::Device::dev, dmcrypt(), encryption, storage::find_if(), fstab_loop_dev, fstab_opt, getFreeLoop(), getLosetupCmd(), getStorage(), is_loop, is_mounted, loop_active, loop_dev, LOSETUPBIN, losetupText(), mp, orig_crypt_pwd, orig_mp, storage::quote(), storage::Storage::removeDmTableTo(), storage::SystemCmd::retcode(), storage::Storage::showInfoCb(), storage::Device::silent, storage::splitString(), storage::Storage::tmpDir(), umount(), updateFstabOptions(), storage::VOLUME_LOSETUP_FAILED, storage::Storage::waitForDevice(), and y2mil.
Referenced by doCrsetup().
| int storage::Volume::doCryptsetup | ( | ) | [protected] |
References storage::classic(), crsetupText(), crypt_pwd, cryptUnsetup(), cType(), storage::Device::dev, dmcrypt(), dmcrypt_active, dmcrypt_dev, storage::Dm::dmDeviceName(), storage::ENC_LUKS, storage::ENC_NONE, encryption, storage::SystemCmd::execute(), format, getCryptsetupCmd(), getDmcryptName(), storage::getMajorMinor(), storage::Device::getMajorMinor(), storage::ProcParts::getSize(), getStorage(), is_mounted, isTmpCryptMp(), storage::LOOP, storage::Device::mnr, mp, orig_crypt_pwd, orig_mp, storage::quote(), storage::Storage::removeDmTableTo(), replaceAltName(), storage::SystemCmd::retcode(), setSize(), storage::Storage::showInfoCb(), storage::Device::silent, storage::Storage::tmpDir(), umount(), updateFstabOptions(), storage::VOLUME_CRYPT_NO_PWD, storage::VOLUME_CRYPTFORMAT_FAILED, storage::VOLUME_CRYPTSETUP_FAILED, storage::Storage::waitForDevice(), and y2mil.
Referenced by doCrsetup().
| int storage::Volume::loUnsetup | ( | bool | force = false |
) | [protected] |
References is_loop, loop_active, loop_dev, LOSETUPBIN, storage::quote(), storage::SystemCmd::retcode(), and storage::VOLUME_LOUNSETUP_FAILED.
Referenced by crUnsetup(), and doCrsetup().
| int storage::Volume::cryptUnsetup | ( | bool | force = false |
) | [protected] |
References CRYPTSETUPBIN, dmcrypt_active, dmcrypt_dev, storage::quote(), storage::SystemCmd::retcode(), storage::VOLUME_CRYPTUNSETUP_FAILED, and y2mil.
Referenced by crUnsetup(), and doCryptsetup().
| bool storage::Volume::pwdLengthOk | ( | storage::EncryptType | typ, | |
| const string & | val, | |||
| bool | format | |||
| ) | const [protected] |
References storage::ENC_TWOFISH, storage::ENC_TWOFISH256_OLD, and storage::ENC_TWOFISH_OLD.
Referenced by setCryptPwd(), and setEncryption().
| bool storage::Volume::noFreqPassno | ( | ) | const [protected] |
References fs, storage::FSUNKNOWN, is_loop, storage::NFS, storage::NFS4, storage::NTFS, optNoauto(), storage::SWAP, storage::TMPFS, and storage::VFAT.
Referenced by fstabFreq(), and fstabPassno().
| 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] |
References getStorage(), mountDevice(), and storage::VOLUME_CANNOT_TMP_UMOUNT.
Referenced by storage::Btrfs::doCreateSubvol(), storage::Btrfs::doDeleteSubvol(), storage::Btrfs::doExtend(), doFormatBtrfs(), and storage::Btrfs::doReduce().
| int storage::Volume::doFormatBtrfs | ( | ) | [protected] |
References BTRFSBIN, storage::BTRFSC, cType(), storage::decString(), storage::Device::device(), storage::ENC_NONE, storage::SystemCmd::execute(), storage::Storage::getDefaultSubvolName(), storage::Btrfs::getDevices(), getEncryption(), storage::SystemCmd::getLine(), getStorage(), mountDevice(), prepareTmpMount(), storage::quote(), storage::SystemCmd::retcode(), storage::SystemCmd::select(), setExtError(), storage::splitString(), umountTmpMount(), storage::VOLUME_BTRFS_ADD_FAILED, storage::VOLUME_BTRFS_SUBVOL_DETDEFAULT, storage::VOLUME_BTRFS_SUBVOL_INIT_FAILED, storage::VOLUME_FORMAT_FAILED, and y2mil.
Referenced by doFormat().
| string storage::Volume::getLosetupCmd | ( | storage::EncryptType | , | |
| const string & | pwdfile | |||
| ) | const [protected] |
References storage::Loop::lfileRealPath(), loop_dev, LOSETUPBIN, storage::quote(), and y2mil.
Referenced by doLosetup().
| string storage::Volume::getCryptsetupCmd | ( | storage::EncryptType | e, | |
| const string & | dmdev, | |||
| const string & | mp, | |||
| const string & | pwdfile, | |||
| bool | format, | |||
| bool | empty_pwd = false | |||
| ) | const [protected] |
References CRYPTSETUPBIN, storage::Device::dev, storage::ENC_LUKS, storage::ENC_NONE, storage::ENC_TWOFISH, storage::ENC_TWOFISH256_OLD, storage::ENC_TWOFISH_OLD, storage::ENC_UNKNOWN, is_loop, isTmpCryptMp(), loop_dev, storage::quote(), storage::toString(), and y2mil.
Referenced by detectEncryption(), and doCryptsetup().
| EncryptType storage::Volume::detectEncryption | ( | ) | [protected] |
References storage::classic(), crUnsetup(), crypt_pwd, cType(), detected_fs, storage::Device::dev, dmcrypt_dev, storage::ENC_LUKS, storage::ENC_TWOFISH, storage::ENC_TWOFISH256_OLD, storage::ENC_TWOFISH_OLD, storage::ENC_UNKNOWN, encryption, eraseLabel(), eraseUuid(), storage::SystemCmd::execute(), storage::SystemCmd::executeRestricted(), storage::EXT2, storage::EXT3, storage::EXT4, fs, storage::FSUNKNOWN, getCryptsetupCmd(), getDmcryptName(), getFreeLoop(), getLoopFile(), storage::getMajorMinor(), getStorage(), is_loop, storage::JFS, storage::lengthof(), storage::LOOP, loop_dev, LOSETUPBIN, MODPROBEBIN, MOUNTBIN, orig_crypt_pwd, orig_encryption, storage::quote(), storage::REISERFS, storage::Storage::removeDmTableTo(), storage::SystemCmd::retcode(), storage::Storage::tmpDir(), storage::toString(), UMOUNTBIN, updateFsData(), storage::Storage::waitForDevice(), storage::XFS, and y2mil.
Referenced by setCryptPwd(), setEncryption(), and storage::Storage::verifyCryptFilePassword().
| string storage::Volume::getFilesysSysfsPath | ( | ) | const [protected] |
References is_loop, loop_dev, SYSFSDIR, storage::Device::sysfsPath(), and y2mil.
Referenced by triggerUdevUpdate().
friend class Storage [friend] |
| std::ostream& operator<< | ( | std::ostream & | s, | |
| const Volume & | v | |||
| ) | [friend] |
const Container* const storage::Volume::cont [protected] |
Referenced by storage::MdPart::co(), storage::DmPart::co(), storage::Btrfs::co(), cType(), storage::Partition::disk(), storage::Dmmultipath::Dmmultipath(), storage::DmPart::DmPart(), storage::Dmraid::Dmraid(), storage::Partition::getCommitActions(), storage::MdPart::getCommitActions(), storage::DmPart::getCommitActions(), storage::Btrfs::getCommitActions(), getContainer(), storage::LvmLv::getState(), getStorage(), storage::Partition::getUsing(), storage::MdPart::getUsing(), storage::LvmLv::getUsing(), storage::DmPart::getUsing(), storage::LvmLv::LvmLv(), storage::Md::Md(), storage::MdPart::MdPart(), operator<(), storage::Partition::operator<(), operator==(), storage::Partition::operator==(), storage::Partition::Partition(), storage::Dm::pec(), setExtError(), setNameDev(), storage::LvmLv::vg(), and Volume().
bool storage::Volume::numeric [protected] |
Referenced by storage::DmPart::DmPart(), equalContent(), init(), isNumeric(), storage::Loop::Loop(), storage::LvmLv::LvmLv(), storage::Md::Md(), storage::MdPart::MdPart(), operator<(), operator==(), storage::Partition::Partition(), saveData(), storage::Loop::setEncryption(), setNameDev(), and Volume().
bool storage::Volume::format [protected] |
Referenced by canResize(), doCrsetup(), doCryptsetup(), doFormat(), doFstabUpdate(), equalContent(), storage::Btrfs::extendVolume(), formattingDone(), getCommitActions(), getFormat(), getInfo(), init(), logDifference(), needCryptsetup(), storage::operator<<(), resizeFs(), setCryptPwd(), setEncryption(), setFormat(), setUsedByUuid(), and storage::Btrfs::shrinkVolume().
bool storage::Volume::fstab_added [protected] |
Referenced by doFstabUpdate(), equalContent(), fstabAdded(), init(), and setFstabAdded().
storage::FsType storage::Volume::fs [protected] |
Referenced by storage::Btrfs::Btrfs(), canResize(), changeMountBy(), detectEncryption(), doFormat(), doFstabUpdate(), doMount(), doSetLabel(), equalContent(), formattingDone(), fsTypeString(), getFs(), getFsData(), getInfo(), getMountData(), init(), logDifference(), storage::LvmLv::LvmLv(), mount(), noFreqPassno(), storage::operator<<(), resizeFs(), saveData(), setFormat(), setFs(), setLabel(), setUsedByUuid(), umount(), and Volume().
storage::FsType storage::Volume::detected_fs [protected] |
storage::MountByType storage::Volume::mount_by [protected] |
Referenced by storage::MdPart::addAltUdevId(), storage::DmPart::addAltUdevId(), storage::Partition::addUdevData(), changeMount(), changeMountBy(), doFstabUpdate(), equalContent(), fstabUpdateDone(), getFstabData(), getInfo(), getMountBy(), getMountByString(), init(), logDifference(), needFstabUpdate(), storage::operator<<(), saveData(), and Volume().
storage::MountByType storage::Volume::orig_mount_by [protected] |
string storage::Volume::uuid [protected] |
string storage::Volume::orig_uuid [protected] |
Referenced by eraseUuid(), initUuid(), setFormat(), storage::Btrfs::setFormat(), and Volume().
string storage::Volume::label [protected] |
Referenced by doFormat(), doFstabUpdate(), doSetLabel(), equalContent(), eraseLabel(), getCommitActions(), getFsData(), getFstabData(), getInfo(), getLabel(), getMountByString(), initLabel(), labelText(), logDifference(), needLabel(), storage::operator<<(), resizeFs(), saveData(), setFormat(), setLabel(), and Volume().
string storage::Volume::orig_label [protected] |
Referenced by doFstabUpdate(), doSetLabel(), eraseLabel(), getCommitActions(), getFsData(), initLabel(), logDifference(), needLabel(), storage::operator<<(), setFormat(), and Volume().
string storage::Volume::mp [protected] |
Referenced by changeMount(), createText(), storage::Md::createText(), storage::LvmLv::createText(), storage::Loop::createText(), storage::Dmraid::createText(), storage::Dmmultipath::createText(), doCrsetup(), doCryptsetup(), doFormat(), doFstabUpdate(), doLosetup(), doMount(), doSetLabel(), equalContent(), formatText(), storage::Partition::formatText(), storage::Md::formatText(), storage::LvmLv::formatText(), storage::Loop::formatText(), storage::Dmraid::formatText(), storage::Dmmultipath::formatText(), storage::Dm::formatText(), storage::Btrfs::formatText(), fstabPassno(), fstabUpdateText(), getCommitActions(), getFstabData(), getInfo(), getMount(), getMountData(), logDifference(), mount(), mountText(), storage::Tmpfs::mountText(), needCryptsetup(), needFstabUpdate(), needRemount(), storage::operator<<(), saveData(), setCryptPwd(), setEncryption(), setMount(), storage::Tmpfs::Tmpfs(), Volume(), and storage::Tmpfs::~Tmpfs().
string storage::Volume::orig_mp [protected] |
Referenced by doCryptsetup(), doFormat(), doFstabUpdate(), doLosetup(), doMount(), doSetLabel(), fstabUpdateText(), getCommitActions(), getFstabData(), getMountData(), hasOrigMount(), logDifference(), mountText(), storage::Tmpfs::mountText(), needFstabUpdate(), needRemount(), storage::operator<<(), storage::Tmpfs::removeText(), resizeFs(), setMount(), umount(), unaccessVol(), and Volume().
string storage::Volume::fstab_opt [protected] |
Referenced by changeFstabOptions(), changeMount(), doFormat(), doFstabUpdate(), doLosetup(), equalContent(), fstabUpdateDone(), getFstabData(), getFstabOption(), getFstabOpts(), getInfo(), logDifference(), mount(), needFstabUpdate(), storage::operator<<(), optNoauto(), saveData(), setFstabOption(), updateFstabOptions(), and Volume().
string storage::Volume::orig_fstab_opt [protected] |
Referenced by changeMount(), doFstabUpdate(), fstabUpdateDone(), getFstabData(), logDifference(), needFstabUpdate(), storage::operator<<(), setFstabOption(), and Volume().
string storage::Volume::mkfs_opt [protected] |
Referenced by doFormat(), equalContent(), getInfo(), getMkfsOption(), logDifference(), storage::operator<<(), setFormat(), and setMkfsOption().
string storage::Volume::tunefs_opt [protected] |
Referenced by doFormat(), equalContent(), getInfo(), getTunefsOption(), logDifference(), storage::operator<<(), setFormat(), and setTunefsOption().
bool storage::Volume::is_loop [protected] |
Referenced by detectEncryption(), doLosetup(), equalContent(), findBlkid(), getCryptsetupCmd(), getFilesysSysfsPath(), getFstabData(), getFstabOpts(), getLoopData(), init(), logDifference(), loop(), storage::Loop::Loop(), loopActive(), loUnsetup(), mountDevice(), needCryptPwd(), needLosetup(), needRemount(), noFreqPassno(), storage::operator<<(), and setEncryption().
bool storage::Volume::is_mounted [protected] |
Referenced by doCryptsetup(), doLosetup(), doSetLabel(), equalContent(), getInfo(), getMountData(), init(), isMounted(), logDifference(), mount(), storage::operator<<(), storage::Tmpfs::Tmpfs(), and umount().
bool storage::Volume::ignore_fstab [protected] |
Referenced by doFstabUpdate(), getInfo(), ignoreFstab(), init(), needFstabUpdate(), storage::operator<<(), and setIgnoreFstab().
bool storage::Volume::ignore_fs [protected] |
Referenced by canResize(), getInfo(), ignoreFs(), init(), storage::operator<<(), resizeFs(), and setIgnoreFs().
bool storage::Volume::loop_active [protected] |
bool storage::Volume::dmcrypt_active [protected] |
bool storage::Volume::ronly [protected] |
Referenced by equalContent(), init(), logDifference(), storage::operator<<(), and setReadonly().
storage::EncryptType storage::Volume::encryption [protected] |
Referenced by allowedMountBy(), changeFstabOptions(), changeMountBy(), createText(), storage::Md::createText(), storage::LvmLv::createText(), storage::Loop::createText(), storage::Dmraid::createText(), storage::Dmmultipath::createText(), detectEncryption(), dmcrypt(), doCrsetup(), doCryptsetup(), doFormat(), doFstabUpdate(), doLosetup(), equalContent(), formatText(), storage::Partition::formatText(), storage::Md::formatText(), storage::LvmLv::formatText(), storage::Loop::formatText(), storage::Dmraid::formatText(), storage::Dmmultipath::formatText(), storage::Dm::formatText(), fstabFreq(), fstabPassno(), fstabUpdateDone(), getEncryption(), getFstabData(), getFstabOpts(), getInfo(), getLoopData(), inCryptotab(), inCrypttab(), init(), initEncryption(), logDifference(), needCryptsetup(), needFstabUpdate(), needLosetup(), storage::operator<<(), pvEncryption(), resizeFs(), saveData(), setCryptPwd(), setDmcryptDevEnc(), setEncryption(), storage::Loop::setEncryption(), and Volume().
storage::EncryptType storage::Volume::orig_encryption [protected] |
string storage::Volume::loop_dev [protected] |
Referenced by detectEncryption(), doLosetup(), equalContent(), getCryptsetupCmd(), getFilesysSysfsPath(), getFreeLoop(), getFstabData(), getInfo(), getLoopData(), getLosetupCmd(), logDifference(), storage::Loop::Loop(), loopDevice(), loUnsetup(), mountDevice(), needLosetup(), storage::operator<<(), storage::Loop::setEncryption(), and umount().
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] |
Referenced by clearCryptPwd(), detectEncryption(), doCrsetup(), doCryptsetup(), doLosetup(), needCryptsetup(), needLosetup(), storage::operator<<(), setCryptPwd(), setEncryption(), and Volume().
unsigned storage::Volume::num [protected] |
Referenced by storage::Partition::addUdevData(), storage::MdPart::addUdevData(), storage::DmPart::addUdevData(), storage::Partition::changeNumber(), storage::DmPart::DmPart(), equalContent(), getFreeLoop(), storage::Partition::getInfo(), storage::Md::getInfo(), storage::Loop::getInfo(), storage::Dm::getInfo(), logDifference(), storage::Loop::Loop(), storage::LvmLv::LvmLv(), storage::Md::Md(), storage::MdPart::MdPart(), nr(), operator<(), storage::operator<<(), operator==(), storage::Partition::operator==(), storage::Partition::Partition(), storage::Partition::removeText(), saveData(), setNameDev(), storage::Partition::udevId(), storage::MdPart::udevId(), storage::DmPart::udevId(), storage::Partition::udevPath(), storage::Dm::updateMajorMinor(), storage::MdPart::updateName(), storage::DmPart::updateName(), and Volume().
unsigned long long storage::Volume::orig_size_k [protected] |
string storage::Volume::dtxt [protected] |
Referenced by equalContent(), getDescText(), getInfo(), logDifference(), storage::operator<<(), and setDescText().
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().
storage::VolumeInfo storage::Volume::info [mutable, protected] |
Reimplemented in storage::Btrfs, storage::Dm, storage::DmPart, storage::Loop, storage::LvmLv, storage::Md, storage::MdPart, storage::Nfs, storage::Partition, and storage::Tmpfs.
Referenced by getInfo(), and mergeFstabInfo().
1.5.6