#include <Volume.h>

Public Member Functions | |
| Volume (const Container &d, unsigned Pnr, unsigned long long SizeK) | |
| Volume (const Container &d, const string &PName, unsigned long long SizeK) | |
| Volume (const Container &d) | |
| Volume (const Volume &) | |
| Volume & | operator= (const Volume &) |
| virtual | ~Volume () |
| const string & | device () const |
| const string & | mountDevice () const |
| const string & | loopDevice () const |
| const string & | dmcryptDevice () const |
| const Container * | getContainer () const |
| storage::CType | cType () const |
| bool | deleted () const |
| bool | created () const |
| bool | silent () const |
| virtual const std::list< string > | udevId () const |
| virtual const string & | udevPath () const |
| virtual string | sysfsPath () const |
| void | setDeleted (bool val=true) |
| void | setCreated (bool val=true) |
| void | setReadonly (bool val=true) |
| void | setSilent (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 | sameDevice (const string &device) const |
| bool | fstabAdded () const |
| const storage::usedBy & | getUsedBy () const |
| storage::UsedByType | getUsedByType () const |
| const string & | usedByName () const |
| void | setUsedBy (storage::UsedByType t, const string &name) |
| void | getFsInfo (const Volume *source) |
| virtual int | setFormat (bool format=true, storage::FsType fs=storage::REISERFS) |
| void | formattingDone () |
| bool | getFormat () const |
| void | rename (const string &newName) |
| 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 () const |
| const string & | getUuid () const |
| const string & | getLabel () const |
| int | setLabel (const string &val) |
| int | eraseLabel () |
| bool | needLabel () const |
| storage::EncryptType | getEncryption () const |
| void | setEncryption (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 () |
| const string & | getMount () const |
| bool | hasOrigMount () const |
| bool | needRemount () const |
| bool | needShrink () const |
| bool | needExtend () const |
| long long | extendSize () const |
| storage::FsType | getFs () const |
| void | setFs (storage::FsType val) |
| void | setUuid (const string &id) |
| void | initLabel (const string &lbl) |
| storage::MountByType | getMountBy () const |
| const string & | getFstabOption () const |
| void | setFstabOption (const string &val) |
| 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) |
| const std::list< string > & | altNames () const |
| unsigned | nr () const |
| unsigned long long | sizeK () const |
| unsigned long long | origSizeK () const |
| const string & | name () const |
| unsigned long | minorNr () const |
| unsigned long | majorNr () const |
| bool | isNumeric () const |
| void | setMajorMinor (unsigned long Major, unsigned long Minor) |
| void | setSize (unsigned long long SizeK) |
| virtual void | setResizedSize (unsigned long long SizeK) |
| 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 |
| string | logDifference (const Volume &c) const |
| int | prepareRemove () |
| 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 () |
| int | resizeFs () |
| void | fstabUpdateDone () |
| bool | isMounted () const |
| virtual string | removeText (bool doing=true) const |
| virtual string | createText (bool doing=true) const |
| virtual string | resizeText (bool doing=true) const |
| virtual string | formatText (bool doing=true) const |
| virtual void | getCommitActions (std::list< storage::commitAction * > &l) const |
| string | mountText (bool doing=true) const |
| string | labelText (bool doing=true) const |
| string | losetupText (bool doing=true) const |
| string | crsetupText (bool doing=true) const |
| string | fstabUpdateText () const |
| string | sizeString () const |
| string | bootMount () const |
| bool | optNoauto () const |
| bool | inCryptotab () const |
| bool | inCrypttab () 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 () |
| void | triggerUdevUpdate () |
| const string & | fsTypeString () const |
Static Public Member Functions | |
| static bool | loopInUse (Storage *sto, const string &loopdev) |
| static bool | notDeleted (const Volume &d) |
| static bool | isDeleted (const Volume &d) |
| static bool | getMajorMinor (const string &device, unsigned long &Major, unsigned long &Minor) |
| static bool | loopStringNum (const string &name, unsigned &num) |
| static storage::EncryptType | toEncType (const string &val) |
| static storage::FsType | toFsType (const string &val) |
| static storage::MountByType | toMountByType (const string &val) |
| static const string & | fsTypeString (const storage::FsType type) |
| static const string & | encTypeString (const storage::EncryptType type) |
| static const string & | mbyTypeString (const storage::MountByType type) |
| static bool | isTmpCryptMp (const string &mp) |
Static Public Attributes | |
| static SkipDeleted | SkipDel |
Protected Member Functions | |
| void | init () |
| void | setNameDev () |
| int | checkDevice () |
| int | checkDevice (const string &device) |
| storage::MountByType | defaultMountBy (const string &mp="") |
| bool | allowedMountBy (storage::MountByType mby, const string &mp="") |
| void | getFsData (SystemCmd &blkidData) |
| void | getLoopData (SystemCmd &loopData) |
| void | getMountData (const ProcMounts &mountData, bool swap_only=false) |
| void | getFstabData (EtcFstab &fstabData) |
| void | getStartData () |
| void | getTestmodeData (const string &data) |
| void | replaceAltName (const string &prefix, const string &newn) |
| string | getMountByString (storage::MountByType mby, const string &dev, const string &uuid, const string &label) const |
| string | getFstabDevice () |
| string | getFstabDentry () |
| void | getFstabOpts (std::list< string > &ol) |
| bool | getLoopFile (string &fname) const |
| void | setExtError (const SystemCmd &cmd, bool serr=true) |
| string | getDmcryptName () |
| bool | needLosetup () const |
| bool | needCryptsetup () const |
| int | doLosetup () |
| int | doCryptsetup () |
| int | loUnsetup (bool force=false) |
| int | cryptUnsetup (bool force=false) |
| std::ostream & | logVolume (std::ostream &file) const |
| 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 | create |
| bool | del |
| bool | format |
| bool | silnt |
| bool | fstab_added |
| storage::FsType | fs |
| storage::FsType | detected_fs |
| storage::MountByType | mount_by |
| storage::MountByType | orig_mount_by |
| string | 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 | nm |
| std::list< string > | alt_names |
| unsigned | num |
| unsigned long long | size_k |
| unsigned long long | orig_size_k |
| string | dev |
| string | dtxt |
| unsigned long | mnr |
| unsigned long | mjr |
| storage::usedBy | uby |
| storage::VolumeInfo | info |
Static Protected Attributes | |
| static string | fs_names [storage::FSNONE+1] |
| static string | mb_names [storage::MOUNTBY_PATH+1] = { "device", "uuid", "label", "id", "path" } |
| static string | enc_names [storage::ENC_UNKNOWN+1] |
| static string | tmp_mount [3] = { "swap", "/tmp", "/var/tmp" } |
| static string | empty_string |
| static std::list< string > | empty_slist |
Friends | |
| class | Storage |
| std::ostream & | operator<< (std::ostream &s, const Volume &v) |
Classes | |
| struct | SkipDeleted |
| Volume::Volume | ( | const Container & | d, | |
| unsigned | Pnr, | |||
| unsigned long long | SizeK | |||
| ) |
References cont, dev, init(), storage::Container::name(), num, numeric, orig_size_k, size_k, and y2debug.
| Volume::Volume | ( | const Container & | d, | |
| const string & | PName, | |||
| unsigned long long | SizeK | |||
| ) |
References cont, dev, init(), storage::Container::name(), nm, numeric, orig_size_k, size_k, and y2debug.
| Volume::Volume | ( | const Container & | d | ) |
References init(), numeric, orig_size_k, size_k, and y2debug.
References alt_names, create, crypt_pwd, del, detected_fs, dev, dtxt, encryption, format, fs, fstab_added, fstab_loop_dev, fstab_opt, is_loop, is_mounted, label, loop_active, loop_dev, mjr, mkfs_opt, mnr, mount_by, mp, nm, num, numeric, orig_encryption, orig_fstab_opt, orig_label, orig_mount_by, orig_mp, orig_size_k, ronly, silnt, size_k, tunefs_opt, uby, uuid, and y2debug.
| const string& storage::Volume::device | ( | ) | const [inline] |
References dev.
Referenced by storage::Dasd::checkFdasdOutput(), storage::Disk::checkPartedOutput(), storage::Md::createCmd(), storage::LoopCo::createLoop(), storage::LvmVg::createLv(), storage::EvmsCo::createVol(), storage::Dasd::detectPartitions(), storage::Disk::Disk(), storage::Disk::doCreate(), storage::LvmVg::doRemove(), storage::Disk::doResize(), storage::DmCo::getDmData(), getFsData(), getFstabData(), getLoopData(), storage::LoopCo::getLoopData(), getMountData(), storage::Disk::getPartedValues(), storage::Storage::getVolume(), isEvmsMd(), storage::Md::Md(), storage::Md::mdadmLine(), storage::Disk::nextFreePartition(), storage::Storage::removeDmTableTo(), storage::NfsCo::removeVolume(), and storage::Dm::setPeMap().
| const string & Volume::mountDevice | ( | ) | const |
References dev, dmcrypt(), dmcrypt_dev, is_loop, and loop_dev.
Referenced by doFormat(), doMount(), doSetLabel(), getFsData(), getMountData(), mount(), resizeFs(), umount(), and updateFsData().
| const string& storage::Volume::loopDevice | ( | ) | const [inline] |
| const string& storage::Volume::dmcryptDevice | ( | ) | const [inline] |
References dmcrypt_dev.
| const Container* storage::Volume::getContainer | ( | ) | const [inline] |
| CType Volume::cType | ( | ) | const |
References cont, and storage::Container::type().
Referenced by allowedMountBy(), changeMountBy(), defaultMountBy(), doFstabUpdate(), isDiskCreated(), isEvms(), storage::Storage::removeDmTableTo(), setEncryption(), sort_vol_create(), and sort_vol_delete().
| bool storage::Volume::deleted | ( | ) | const [inline] |
References del.
Referenced by storage::Disk::bootSpecial(), storage::Container::commitChanges(), doFstabUpdate(), existingLog(), existingNotLog(), isDeleted(), isDeleted(), lvDeleted(), storage::LvmVg::lvNotDeleted(), storage::EvmsCo::lvNotDeleted(), lvNotDeletedCreated(), notDeleted(), storage::Partition::notDeleted(), storage::Nfs::notDeleted(), storage::Md::notDeleted(), storage::Loop::notDeleted(), storage::Dmraid::notDeleted(), storage::DmPart::notDeleted(), storage::Dm::notDeleted(), storage::Disk::notDeleted(), notDeleted(), notDeletedLog(), notDeletedNotLog(), storage::Volume::SkipDeleted::operator()(), storage::DmPartCo::partNotDeleted(), storage::DmraidCo::raidNotDeleted(), storage::Container::stageDecrease(), storage::Partition::toChangeId(), toChangeId(), and storage::DmPartCo::updateDelDev().
| bool storage::Volume::created | ( | ) | const [inline] |
References create.
Referenced by storage::Partition::changeId(), storage::Partition::changeNumber(), storage::Container::commitChanges(), storage::Disk::doRemove(), existingLog(), existingNotLog(), isDiskCreated(), logicalCreated(), lvCreated(), lvNotCreated(), lvNotDeletedCreated(), notCreatedPrimary(), storage::Storage::removeDmMapsTo(), storage::Disk::resizePartition(), storage::LvmVg::resizeVolume(), storage::EvmsCo::resizeVolume(), and storage::Container::stageCreate().
| bool storage::Volume::silent | ( | ) | const [inline] |
References silnt.
Referenced by storage::EvmsCo::doCreate(), doCryptsetup(), doFormat(), doFstabUpdate(), doLosetup(), doMount(), storage::EvmsCo::doRemove(), and doSetLabel().
| virtual const std::list<string> storage::Volume::udevId | ( | ) | const [inline, virtual] |
Reimplemented in storage::Partition.
References empty_slist.
Referenced by storage::DmPart::addAltUdevId(), allowedMountBy(), defaultMountBy(), doFstabUpdate(), getFstabData(), and getMountByString().
| virtual const string& storage::Volume::udevPath | ( | ) | const [inline, virtual] |
Reimplemented in storage::Partition.
References empty_string.
Referenced by allowedMountBy(), defaultMountBy(), getFstabData(), and getMountByString().
| string Volume::sysfsPath | ( | ) | const [virtual] |
Reimplemented in storage::Dm, and storage::Partition.
References dev, storage::Storage::sysfsDir(), and y2mil.
Referenced by getFilesysSysfsPath().
| void storage::Volume::setDeleted | ( | bool | val = true |
) | [inline] |
| void storage::Volume::setCreated | ( | bool | val = true |
) | [inline] |
References create.
Referenced by storage::DmPartCo::addNewDev(), storage::LoopCo::createLoop(), storage::LvmVg::createLv(), storage::EvmsCo::createVol(), and storage::Disk::doCreate().
| void storage::Volume::setReadonly | ( | bool | val = true |
) | [inline] |
| void storage::Volume::setSilent | ( | bool | val = true |
) | [inline] |
| 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] |
| void storage::Volume::setFstabAdded | ( | bool | val = true |
) | [inline] |
References fstab_added.
| bool Volume::sameDevice | ( | const string & | device | ) | const |
References alt_names, dev, and storage::normalizeDevice().
Referenced by storage::PeContainer::findPe().
| bool storage::Volume::fstabAdded | ( | ) | const [inline] |
| const storage::usedBy& storage::Volume::getUsedBy | ( | ) | const [inline] |
References uby.
| storage::UsedByType storage::Volume::getUsedByType | ( | ) | const [inline] |
References storage::usedBy::type(), and uby.
Referenced by canUseDevice(), storage::Disk::doCreate(), doSetLabel(), setEncryption(), and setLabel().
| const string& storage::Volume::usedByName | ( | ) | const [inline] |
References storage::usedBy::name(), and uby.
| void storage::Volume::setUsedBy | ( | storage::UsedByType | t, | |
| const string & | name | |||
| ) | [inline] |
References storage::usedBy::set(), and uby.
| void Volume::getFsInfo | ( | const Volume * | source | ) |
References getFormat(), getFs(), getLabel(), getUuid(), initLabel(), setFormat(), setFs(), and setUuid().
Referenced by storage::DmPartCo::addNewDev(), storage::DmPartCo::resizePartition(), storage::DmPartCo::resizeVolume(), and storage::Evms::updateMd().
| int Volume::setFormat | ( | bool | format = true, |
|
| storage::FsType | fs = storage::REISERFS | |||
| ) | [virtual] |
Reimplemented in storage::Partition.
References cont, detected_fs, dev, eraseLabel(), format, fs, fs_names, storage::Storage::getFsCapabilities(), storage::Container::getStorage(), label, storage::FsCapabilities::labelLength, storage::FsCapabilities::minimalFsSizeK, mkfs_opt, storage::NFS, size_k, storage::FsCapabilities::supportsLabel, storage::usedBy::t, tunefs_opt, storage::UB_NONE, uby, storage::VOLUME_ALREADY_IN_USE, storage::VOLUME_FORMAT_FS_TOO_SMALL, storage::VOLUME_FORMAT_NFS_IMPOSSIBLE, and y2milestone.
Referenced by storage::Storage::createFileLoop(), getFsInfo(), and storage::Partition::setFormat().
| void storage::Volume::formattingDone | ( | ) | [inline] |
References detected_fs, format, and fs.
| bool storage::Volume::getFormat | ( | ) | const [inline] |
References format.
Referenced by storage::Container::commitChanges(), storage::Disk::doCreate(), getFsInfo(), and stageFormat().
| void Volume::rename | ( | const string & | newName | ) |
References alt_names, dev, nm, and y2milestone.
| int Volume::changeFstabOptions | ( | const string & | options | ) |
References dev, encryption, encTypeString(), fstab_opt, storage::usedBy::t, storage::UB_NONE, uby, updateFstabOptions(), storage::VOLUME_ALREADY_IN_USE, and y2milestone.
| int Volume::changeMountBy | ( | storage::MountByType | mby | ) |
References cont, cType(), dev, storage::DISK, storage::ENC_NONE, encryption, fs, storage::Storage::getFsCapabilities(), storage::Container::getStorage(), mbyTypeString(), mount_by, storage::MOUNTBY_ID, storage::MOUNTBY_LABEL, storage::MOUNTBY_PATH, storage::MOUNTBY_UUID, needFstabUpdate(), storage::FsCapabilities::supportsLabel, storage::FsCapabilities::supportsUuid, storage::usedBy::t, storage::UB_NONE, uby, storage::VOLUME_ALREADY_IN_USE, storage::VOLUME_MOUNTBY_NOT_ENCRYPTED, storage::VOLUME_MOUNTBY_UNSUPPORTED_BY_FS, storage::VOLUME_MOUNTBY_UNSUPPORTED_BY_VOLUME, y2mil, and y2milestone.
| int Volume::changeMount | ( | const string & | m | ) | [virtual] |
Reimplemented in storage::Partition.
References defaultMountBy(), dev, fstab_opt, mount_by, mp, orig_fstab_opt, orig_mount_by, storage::usedBy::t, storage::UB_NONE, uby, storage::VOLUME_ALREADY_IN_USE, storage::VOLUME_MOUNT_POINT_INVALID, and y2milestone.
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(), getFstabDentry(), getFstabDevice(), getLoopData(), mountDevice(), 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 Volume::needCrsetup | ( | ) | const |
References needCryptsetup(), and needLosetup().
Referenced by storage::Container::commitChanges(), and stageFormat().
| const string& storage::Volume::getUuid | ( | ) | const [inline] |
| const string& storage::Volume::getLabel | ( | ) | const [inline] |
| int Volume::setLabel | ( | const string & | val | ) |
| int storage::Volume::eraseLabel | ( | ) | [inline] |
| bool storage::Volume::needLabel | ( | ) | const [inline] |
References label, and orig_label.
Referenced by storage::Container::commitChanges(), and stageFormat().
| storage::EncryptType storage::Volume::getEncryption | ( | ) | const [inline] |
References encryption.
| void storage::Volume::setEncryption | ( | storage::EncryptType | val = storage::ENC_LUKS |
) | [inline] |
References encryption, and orig_encryption.
Referenced by storage::Storage::createFileLoop(), getStartData(), and storage::Loop::setEncryption().
| int Volume::setEncryption | ( | bool | val, | |
| storage::EncryptType | typ = storage::ENC_LUKS | |||
| ) | [virtual] |
Reimplemented in storage::Loop.
References cont, crypt_pwd, cType(), detectEncryption(), storage::ENC_NONE, storage::ENC_UNKNOWN, encryption, format, getUsedByType(), is_loop, isTmpCryptMp(), storage::LOOP, loop_active, mp, storage::NFSC, storage::Container::type(), storage::UB_NONE, updateFstabOptions(), storage::VOLUME_ALREADY_IN_USE, storage::VOLUME_CRYPT_NFS_IMPOSSIBLE, storage::VOLUME_CRYPT_NO_PWD, storage::VOLUME_CRYPT_NOT_DETECTED, and y2milestone.
| const string& storage::Volume::getCryptPwd | ( | ) | const [inline] |
References crypt_pwd.
| int Volume::setCryptPwd | ( | const string & | val | ) |
References crypt_pwd, detectEncryption(), storage::ENC_LUKS, storage::ENC_NONE, storage::ENC_TWOFISH, storage::ENC_TWOFISH256_OLD, storage::ENC_TWOFISH_OLD, storage::ENC_UNKNOWN, encryption, isTmpCryptMp(), mp, storage::VOLUME_CRYPT_PWD_TOO_SHORT, and y2milestone.
Referenced by storage::Storage::createFileLoop().
| void storage::Volume::clearCryptPwd | ( | ) | [inline] |
References crypt_pwd.
| const string& storage::Volume::getMount | ( | ) | const [inline] |
References mp.
Referenced by canUseDevice(), storage::commitAction::operator<(), sort_vol_delete(), sort_vol_mount(), and storage::Evms::updateMd().
| bool storage::Volume::hasOrigMount | ( | ) | const [inline] |
| bool Volume::needRemount | ( | ) | const |
References is_loop, isMounted(), loop_active, mp, optNoauto(), and orig_mp.
Referenced by storage::Container::commitChanges(), and stageMount().
| bool storage::Volume::needShrink | ( | ) | const [inline] |
References orig_size_k, and size_k.
Referenced by storage::Container::commitChanges(), storage::Disk::doResize(), resizeFs(), resizeText(), storage::Partition::resizeText(), storage::LvmLv::resizeText(), storage::Evms::resizeText(), storage::Dmraid::resizeText(), sort_vol_delete(), and storage::Container::stageDecrease().
| bool storage::Volume::needExtend | ( | ) | const [inline] |
References orig_size_k, and size_k.
Referenced by storage::Container::commitChanges(), storage::Disk::doResize(), and storage::Container::stageCreate().
| long long storage::Volume::extendSize | ( | ) | const [inline] |
| storage::FsType storage::Volume::getFs | ( | ) | const [inline] |
| void storage::Volume::setFs | ( | storage::FsType | val | ) | [inline] |
References detected_fs, and fs.
Referenced by getFsInfo(), storage::LoopCo::getLoopData(), and storage::Nfs::init().
| void storage::Volume::setUuid | ( | const string & | id | ) | [inline] |
| void storage::Volume::initLabel | ( | const string & | lbl | ) | [inline] |
| storage::MountByType storage::Volume::getMountBy | ( | ) | const [inline] |
References mount_by.
| const string& storage::Volume::getFstabOption | ( | ) | const [inline] |
References fstab_opt.
| void storage::Volume::setFstabOption | ( | const string & | val | ) | [inline] |
| void storage::Volume::setMount | ( | const string & | val | ) | [inline] |
| void Volume::updateFstabOptions | ( | ) |
References fstab_opt, getFstabOpts(), and storage::mergeString().
Referenced by changeFstabOptions(), doCryptsetup(), doLosetup(), and setEncryption().
| bool Volume::needFstabUpdate | ( | ) | const |
References cont, encryption, fstab_opt, storage::Container::getStorage(), ignore_fstab, storage::Storage::instsys(), mount_by, mp, orig_encryption, orig_fstab_opt, orig_mount_by, and orig_mp.
Referenced by changeMountBy(), storage::Container::commitChanges(), and 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.
| const std::list<string>& storage::Volume::altNames | ( | ) | const [inline] |
| unsigned storage::Volume::nr | ( | ) | const [inline] |
References num.
Referenced by storage::DmCo::addDm(), storage::MdCo::addMd(), storage::DmPartCo::addNewDev(), storage::MdCo::checkMd(), storage::Disk::doCreate(), storage::Disk::doResize(), storage::Disk::getPartedSectors(), storage::Disk::getPartedValues(), storage::Md::Md(), storage::Disk::nextFreePartition(), storage::Dmraid::removeText(), storage::MdCo::removeVolume(), storage::DmPartCo::removeVolume(), storage::Disk::removeVolume(), storage::DmPartCo::resizeVolume(), storage::DmPartCo::updateDelDev(), storage::MdCo::updateEntry(), storage::DmPart::updateName(), storage::DmPartCo::validPartition(), and volume_ptr_sort_nr().
| unsigned long long storage::Volume::sizeK | ( | ) | const [inline] |
References size_k.
Referenced by storage::MdCo::checkMd(), storage::Loop::checkReuse(), storage::Md::computeSize(), storage::Loop::createFile(), storage::DmPart::DmPart(), storage::Disk::doCreate(), doFormat(), storage::Disk::doResize(), storage::DmCo::getDmData(), storage::LoopCo::getLoopData(), storage::Disk::getPartedValues(), storage::Partition::removeText(), and storage::DmPart::updateSize().
| unsigned long long storage::Volume::origSizeK | ( | ) | const [inline] |
References orig_size_k.
Referenced by storage::LvmVg::doResize(), storage::EvmsCo::doResize(), and storage::DmPart::updateSize().
| const string& storage::Volume::name | ( | ) | const [inline] |
References nm.
Referenced by storage::Container::commitChanges(), storage::MdCo::doCreate(), storage::LvmVg::doCreate(), storage::LoopCo::doCreate(), storage::EvmsCo::doCreate(), storage::DmPartCo::doCreate(), storage::Disk::doCreate(), storage::NfsCo::doRemove(), storage::MdCo::doRemove(), storage::LvmVg::doRemove(), storage::LoopCo::doRemove(), storage::EvmsCo::doRemove(), storage::DmPartCo::doRemove(), storage::DmCo::doRemove(), storage::Disk::doRemove(), storage::LvmVg::doResize(), storage::EvmsCo::doResize(), storage::DmPartCo::doResize(), storage::Disk::doResize(), storage::DmPartCo::doSetType(), storage::Disk::doSetType(), storage::operator<<(), storage::MdCo::removeVolume(), storage::LvmVg::removeVolume(), storage::LoopCo::removeVolume(), storage::EvmsCo::removeVolume(), storage::DmCo::removeVolume(), storage::LvmVg::resizeVolume(), and storage::EvmsCo::resizeVolume().
| unsigned long storage::Volume::minorNr | ( | ) | const [inline] |
| unsigned long storage::Volume::majorNr | ( | ) | const [inline] |
References mjr.
Referenced by storage::Evms::Evms(), storage::Evms::init(), isMdMajor(), storage::Dm::updateMajorMinor(), and storage::Evms::updateMd().
| bool storage::Volume::isNumeric | ( | ) | const [inline] |
References numeric.
| void storage::Volume::setMajorMinor | ( | unsigned long | Major, | |
| unsigned long | Minor | |||
| ) | [inline] |
| void storage::Volume::setSize | ( | unsigned long long | SizeK | ) | [inline] |
References orig_size_k, and size_k.
Referenced by storage::NfsCo::addNfs(), storage::Dm::calcSize(), storage::Dasd::checkFdasdOutput(), storage::Disk::checkPartedOutput(), storage::Loop::checkReuse(), storage::Md::computeSize(), storage::Dasd::detectPartitions(), storage::Disk::Disk(), storage::DmPart::DmPart(), doCryptsetup(), storage::DmCo::getDmData(), storage::NfsCo::getNfsData(), storage::Disk::getPartedValues(), storage::DmPartCo::handleWholeDevice(), storage::Loop::Loop(), storage::Md::Md(), and storage::DmPart::updateSize().
| virtual void storage::Volume::setResizedSize | ( | unsigned long long | SizeK | ) | [inline, virtual] |
Reimplemented in storage::Partition.
References size_k.
Referenced by storage::LvmVg::resizeVolume(), storage::EvmsCo::resizeVolume(), and storage::Partition::setResizedSize().
| void Volume::setDmcryptDev | ( | const string & | dm, | |
| bool | active | |||
| ) |
Reimplemented in storage::Loop.
References dev, dmcrypt_active, dmcrypt_dev, and y2mil.
Referenced by storage::Loop::setDmcryptDev().
| void Volume::setDmcryptDevEnc | ( | const string & | dm, | |
| storage::EncryptType | typ, | |||
| bool | active | |||
| ) |
References dev, dmcrypt_active, dmcrypt_dev, encryption, orig_encryption, and y2mil.
| virtual void storage::Volume::forgetResize | ( | ) | [inline, virtual] |
Reimplemented in storage::Partition.
References orig_size_k, and size_k.
Referenced by storage::Partition::forgetResize().
| bool Volume::canUseDevice | ( | ) | const [virtual] |
Reimplemented in storage::Partition.
References getMount(), getUsedByType(), and storage::UB_NONE.
Referenced by storage::Partition::canUseDevice(), and storage::MdCo::checkUse().
| 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::operator> | ( | const Volume & | rhs | ) | const [inline] |
| bool Volume::equalContent | ( | const Volume & | rhs | ) | const |
References create, del, dev, dtxt, encryption, format, fs, fstab_added, fstab_loop_dev, fstab_opt, is_loop, is_mounted, label, loop_active, loop_dev, mjr, mkfs_opt, mnr, mount_by, mp, nm, num, numeric, ronly, silnt, size_k, tunefs_opt, uby, and uuid.
Referenced by storage::Partition::equalContent(), storage::Nfs::equalContent(), storage::Md::equalContent(), storage::Loop::equalContent(), and storage::Dm::equalContent().
| string Volume::logDifference | ( | const Volume & | c | ) | const |
References create, crypt_pwd, storage::decString(), del, detected_fs, dev, dtxt, enc_names, encryption, format, fs, fs_names, fstab_loop_dev, fstab_opt, is_loop, is_mounted, label, loop_active, loop_dev, mb_names, mjr, mkfs_opt, mnr, mount_by, mp, nm, num, numeric, orig_encryption, orig_fstab_opt, orig_label, orig_mount_by, orig_mp, orig_size_k, ronly, size_k, tunefs_opt, uby, and uuid.
Referenced by storage::Partition::logDifference(), storage::Nfs::logDifference(), storage::Md::logDifference(), storage::Loop::logDifference(), and storage::Dm::stringDifference().
| int Volume::prepareRemove | ( | ) |
References cont, crUnsetup(), dev, dmcrypt_active, doFstabUpdate(), storage::Storage::eraseFreeInfo(), storage::Container::getStorage(), isMounted(), loop_active, orig_mp, storage::Storage::removeDmTableTo(), umount(), and y2milestone.
Referenced by storage::NfsCo::doRemove(), storage::LvmVg::doRemove(), storage::EvmsCo::doRemove(), storage::DmPartCo::doRemove(), and storage::Disk::doRemove().
| int Volume::umount | ( | const string & | mp = "" |
) |
References detected_fs, dev, dmcrypt_active, dmcrypt_dev, storage::SystemCmd::execute(), is_mounted, loop_active, loop_dev, mountDevice(), orig_mp, storage::SWAP, storage::VOLUME_UMOUNT_FAILED, and y2milestone.
Referenced by doCryptsetup(), doFormat(), doFstabUpdate(), doLosetup(), doMount(), storage::LvmVg::doResize(), storage::EvmsCo::doResize(), storage::Disk::doResize(), doSetLabel(), prepareRemove(), and resizeFs().
| int Volume::crUnsetup | ( | bool | force = false |
) |
| int Volume::mount | ( | const string & | mp = "", |
|
| bool | ro = false | |||
| ) |
References alt_names, cont, dev, storage::SystemCmd::execute(), fs, fs_names, fstab_opt, storage::FSUNKNOWN, storage::Container::getStorage(), storage::Storage::instsys(), is_mounted, storage::lengthof(), storage::mergeString(), mountDevice(), mp, storage::NTFS, setExtError(), storage::splitString(), storage::SWAP, storage::VFAT, storage::VOLUME_MOUNT_FAILED, y2mil, and y2milestone.
Referenced by doFormat(), doFstabUpdate(), doMount(), storage::LvmVg::doResize(), storage::EvmsCo::doResize(), storage::Disk::doResize(), doSetLabel(), and resizeFs().
| int Volume::canResize | ( | unsigned long long | newSizeK | ) | const |
References cont, format, fs, storage::FSNONE, storage::Storage::getFsCapabilities(), storage::Container::getStorage(), ignore_fs, storage::FsCapabilities::isExtendable, storage::FsCapabilities::isReduceable, size_k, storage::usedBy::t, storage::UB_NONE, uby, storage::VOLUME_ALREADY_IN_USE, storage::VOLUME_RESIZE_UNSUPPORTED_BY_FS, and y2milestone.
Referenced by storage::Disk::resizePartition(), storage::LvmVg::resizeVolume(), and storage::EvmsCo::resizeVolume().
| int Volume::doMount | ( | ) |
References checkDevice(), cont, storage::createPath(), dev, doFstabUpdate(), fs, storage::Container::getStorage(), storage::Storage::instsys(), isMounted(), mount(), mountDevice(), mountText(), mp, storage::NFS, storage::NTFS, orig_mp, storage::Storage::removeDmTableTo(), storage::Storage::root(), storage::Storage::rootMounted(), storage::Storage::showInfoCb(), silent(), storage::usedBy::t, storage::Storage::test(), storage::UB_NONE, uby, umount(), storage::VOLUME_ALREADY_IN_USE, and y2milestone.
Referenced by storage::Container::commitChanges().
| int Volume::doFormat | ( | ) |
References storage::Storage::arch(), checkDevice(), cont, storage::decString(), detected_fs, dev, doFstabUpdate(), doSetLabel(), storage::ENC_NONE, encryption, storage::SystemCmd::execute(), storage::EXT2, storage::EXT3, format, formatText(), fs, fstab_opt, storage::Storage::getCallbackProgressBarTheOne(), storage::Container::getStorage(), storage::HFS, storage::HFSPLUS, isMounted(), storage::JFS, label, mkfs_opt, mount(), mountDevice(), mp, orig_mp, storage::REISERFS, storage::Storage::removeDmTableTo(), storage::SystemCmd::retcode(), setExtError(), storage::SystemCmd::setOutputProcessor(), storage::Storage::showInfoCb(), silent(), size_k, sizeK(), storage::splitString(), storage::SWAP, storage::usedBy::t, storage::Storage::test(), triggerUdevUpdate(), tunefs_opt, storage::UB_NONE, uby, umount(), updateFsData(), uuid, storage::VFAT, storage::VOLUME_ALREADY_IN_USE, storage::VOLUME_FORMAT_DD_FAILED, storage::VOLUME_FORMAT_FAILED, storage::VOLUME_FORMAT_FS_UNDETECTED, storage::VOLUME_FORMAT_NOT_IMPLEMENTED, storage::VOLUME_FORMAT_UNKNOWN_FS, storage::VOLUME_TUNE2FS_FAILED, storage::XFS, y2mil, and y2milestone.
Referenced by storage::Container::commitChanges().
| int Volume::doCrsetup | ( | ) |
References doCryptsetup(), doLosetup(), loUnsetup(), needCryptsetup(), needLosetup(), updateFsData(), and y2milestone.
Referenced by storage::Container::commitChanges().
| int Volume::doSetLabel | ( | ) |
References cont, dev, doFstabUpdate(), storage::EXT2, storage::EXT3, fs, storage::Storage::getFsCapabilities(), storage::Container::getStorage(), getUsedByType(), is_mounted, storage::JFS, label, labelText(), storage::FsCapabilities::labelWhileMounted, mount(), mountDevice(), mp, orig_label, orig_mp, storage::REISERFS, storage::SystemCmd::retcode(), storage::Storage::root(), storage::Storage::showInfoCb(), silent(), storage::FsCapabilities::supportsLabel, storage::SWAP, triggerUdevUpdate(), storage::UB_NONE, umount(), 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 y2milestone.
Referenced by storage::Container::commitChanges(), and doFormat().
| int Volume::doFstabUpdate | ( | ) |
References storage::EtcFstab::addEntry(), storage::EtcFstab::addText(), alt_names, cont, crypt_pwd, storage::FstabEntry::crypto, cType(), deleted(), storage::FstabChange::dentry, detected_fs, 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, fs_names, fstab_added, fstab_loop_dev, fstab_opt, storage::FSUNKNOWN, getFreeLoop(), storage::Storage::getFstab(), getFstabDentry(), getFstabDevice(), getFstabOpts(), getLoopFile(), storage::Container::getStorage(), haveQuota(), ignore_fstab, inCryptotab(), storage::Storage::instsys(), is_loop, storage::Storage::isRootMounted(), isTmpCryptMp(), label, storage::LOOP, storage::FstabChange::loop_dev, mount(), storage::FstabChange::mount, storage::FstabEntry::mount, mount_by, storage::MOUNTBY_LABEL, storage::MOUNTBY_UUID, mp, storage::NFS, storage::NTFS, optNoauto(), storage::FstabChange::opts, orig_encryption, orig_fstab_opt, orig_label, orig_mount_by, orig_mp, storage::FstabChange::passno, storage::Storage::prependRoot(), storage::EtcFstab::removeEntry(), storage::EtcFstab::removeText(), storage::SystemCmd::retcode(), storage::Storage::showInfoCb(), silent(), storage::SWAP, storage::FstabChange::tmpcrypt, storage::Container::type(), udevId(), umount(), storage::EtcFstab::updateEntry(), storage::EtcFstab::updateText(), storage::VFAT, storage::VOLUME_REMOUNT_FAILED, y2mil, and y2milestone.
Referenced by storage::Container::commitChanges(), doFormat(), doMount(), doSetLabel(), and prepareRemove().
| int Volume::resizeFs | ( | ) |
References cont, storage::decString(), dmcrypt_dev, storage::ENC_NONE, encryption, storage::SystemCmd::execute(), storage::EXT2, storage::EXT3, format, fs, storage::Container::getStorage(), ignore_fs, isMounted(), mount(), mountDevice(), needShrink(), storage::NTFS, orig_mp, storage::REISERFS, storage::SystemCmd::retcode(), storage::SystemCmd::setCombine(), setExtError(), size_k, storage::SWAP, storage::Storage::tmpDir(), umount(), storage::VOLUME_RESIZE_FAILED, storage::VOLUME_RESIZE_UNSUPPORTED_BY_FS, storage::XFS, and y2milestone.
Referenced by storage::LvmVg::doResize(), storage::EvmsCo::doResize(), and storage::Disk::doResize().
| void Volume::fstabUpdateDone | ( | ) |
References encryption, fstab_opt, mount_by, orig_encryption, orig_fstab_opt, orig_mount_by, and y2milestone.
Referenced by storage::Container::commitChanges().
| bool storage::Volume::isMounted | ( | ) | const [inline] |
References is_mounted.
Referenced by doFormat(), doMount(), storage::LvmVg::doResize(), storage::EvmsCo::doResize(), storage::Disk::doResize(), needRemount(), prepareRemove(), resizeFs(), sort_vol_delete(), and storage::Evms::updateMd().
| string Volume::removeText | ( | bool | doing = true |
) | const [virtual] |
Reimplemented in storage::Dm, storage::Dmraid, storage::Evms, storage::Loop, storage::LvmLv, storage::Md, storage::Nfs, and storage::Partition.
References storage::_(), dev, and storage::sformat().
| string Volume::createText | ( | bool | doing = true |
) | const [virtual] |
Reimplemented in storage::Dmraid, storage::Evms, storage::Loop, storage::LvmLv, storage::Md, and storage::Partition.
References storage::_(), dev, and storage::sformat().
| string Volume::resizeText | ( | bool | doing = true |
) | const [virtual] |
Reimplemented in storage::Dmraid, storage::Evms, storage::LvmLv, and storage::Partition.
References storage::_(), dev, needShrink(), storage::sformat(), and sizeString().
| string Volume::formatText | ( | bool | doing = true |
) | const [virtual] |
Reimplemented in storage::Dm, storage::Dmraid, storage::Evms, storage::Loop, storage::LvmLv, storage::Md, and storage::Partition.
References storage::_(), dev, storage::ENC_NONE, encryption, fsTypeString(), mp, storage::sformat(), and sizeString().
Referenced by doFormat().
| virtual void storage::Volume::getCommitActions | ( | std::list< storage::commitAction * > & | l | ) | const [virtual] |
Reimplemented in storage::DmPart, and storage::Partition.
Referenced by storage::DmPart::getCommitActions().
| string Volume::mountText | ( | bool | doing = true |
) | const |
References storage::_(), cont, dev, storage::Container::getStorage(), inCryptotab(), inCrypttab(), storage::Storage::instsys(), mp, orig_mp, and storage::sformat().
Referenced by doMount().
| string Volume::labelText | ( | bool | doing = true |
) | const |
| string Volume::losetupText | ( | bool | doing = true |
) | const |
| string Volume::crsetupText | ( | bool | doing = true |
) | const |
| string Volume::fstabUpdateText | ( | ) | const |
| string Volume::sizeString | ( | ) | const |
References storage::kbyteToHumanString(), and size_k.
Referenced by storage::Partition::createText(), storage::Md::createText(), storage::LvmLv::createText(), storage::Loop::createText(), storage::Evms::createText(), storage::Dmraid::createText(), formatText(), storage::Partition::formatText(), storage::Md::formatText(), storage::LvmLv::formatText(), storage::Loop::formatText(), storage::Evms::formatText(), storage::Dmraid::formatText(), storage::Dm::formatText(), storage::Partition::removeText(), storage::Md::removeText(), storage::LvmLv::removeText(), storage::Loop::removeText(), storage::Evms::removeText(), storage::Dmraid::removeText(), storage::Dm::removeText(), resizeText(), storage::Partition::resizeText(), storage::LvmLv::resizeText(), storage::Evms::resizeText(), and storage::Dmraid::resizeText().
| string Volume::bootMount | ( | ) | const |
| bool Volume::optNoauto | ( | ) | const |
References fstab_opt, and storage::splitString().
Referenced by doFstabUpdate(), getFstabDentry(), getFstabDevice(), inCryptotab(), inCrypttab(), and needRemount().
| bool storage::Volume::inCryptotab | ( | ) | const [inline] |
References storage::ENC_LUKS, storage::ENC_NONE, encryption, and optNoauto().
Referenced by doFstabUpdate(), fstabUpdateText(), getFstabDentry(), and mountText().
| bool storage::Volume::inCrypttab | ( | ) | const [inline] |
| virtual void storage::Volume::print | ( | std::ostream & | s | ) | const [inline, virtual] |
Reimplemented in storage::Dm, storage::DmPart, storage::Dmraid, storage::Evms, storage::Loop, storage::LvmLv, storage::Md, storage::Nfs, and storage::Partition.
| int Volume::getFreeLoop | ( | ) |
References loop_dev, and y2milestone.
Referenced by detectEncryption(), doFstabUpdate(), doLosetup(), getFreeLoop(), and storage::Loop::Loop().
| int Volume::getFreeLoop | ( | SystemCmd & | loopData | ) |
References getFreeLoop(), loop_dev, and y2milestone.
| int storage::Volume::getFreeLoop | ( | SystemCmd & | loopData, | |
| const std::list< unsigned > & | ids | |||
| ) |
| void Volume::getInfo | ( | storage::VolumeInfo & | info | ) | const |
References create, storage::VolumeInfo::create, crypt_pwd, storage::VolumeInfo::crypt_pwd, dev, storage::VolumeInfo::device, 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, info, is_mounted, storage::VolumeInfo::is_mounted, label, storage::VolumeInfo::label, storage::VolumeInfo::loop, loop_dev, storage::VolumeInfo::major, storage::VolumeInfo::minor, mjr, mkfs_opt, storage::VolumeInfo::mkfs_options, mnr, storage::VolumeInfo::mount, mount_by, storage::VolumeInfo::mount_by, mp, storage::usedBy::name(), storage::VolumeInfo::name, nm, orig_size_k, storage::VolumeInfo::OrigSizeK, storage::VolumeInfo::resize, size_k, storage::VolumeInfo::sizeK, tunefs_opt, storage::VolumeInfo::tunefs_options, storage::usedBy::type(), uby, storage::VolumeInfo::usedBy, storage::VolumeInfo::usedByName, uuid, and storage::VolumeInfo::uuid.
| void Volume::mergeFstabInfo | ( | storage::VolumeInfo & | tinfo, | |
| const FstabEntry & | fste | |||
| ) | const |
| void Volume::updateFsData | ( | ) |
References getFsData(), and mountDevice().
Referenced by detectEncryption(), storage::Disk::doCreate(), doCrsetup(), and doFormat().
| void Volume::triggerUdevUpdate | ( | ) |
References cont, getFilesysSysfsPath(), storage::Container::getStorage(), storage::Storage::waitForDevice(), and y2mil.
Referenced by doFormat(), and doSetLabel().
| bool Volume::loopInUse | ( | Storage * | sto, | |
| const string & | loopdev | |||
| ) | [static] |
References storage::IterPair< Iter >::begin(), storage::IterPair< Iter >::end(), 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] |
References deleted().
Referenced by storage::Storage::deletedDevice(), and storage::Storage::evmsActivate().
| bool Volume::getMajorMinor | ( | const string & | device, | |
| unsigned long & | Major, | |||
| unsigned long & | Minor | |||
| ) | [static] |
| bool Volume::loopStringNum | ( | const string & | name, | |
| unsigned & | num | |||
| ) | [static] |
References loop(), storage::Regex::match(), and storage::undevDevice().
Referenced by storage::Loop::Loop().
| EncryptType Volume::toEncType | ( | const string & | val | ) | [static] |
References storage::ENC_NONE, storage::ENC_TWOFISH, storage::ENC_TWOFISH256_OLD, storage::ENC_TWOFISH_OLD, and storage::ENC_UNKNOWN.
Referenced by storage::FstabEntry::calcDependent(), getTestmodeData(), and storage::EtcFstab::readFiles().
| FsType Volume::toFsType | ( | const string & | val | ) | [static] |
References fs_names, storage::FSNONE, and storage::FSUNKNOWN.
Referenced by storage::LoopCo::getLoopData(), getTestmodeData(), and storage::Storage::readFstab().
| MountByType Volume::toMountByType | ( | const string & | val | ) | [static] |
References mb_names, storage::MOUNTBY_DEVICE, and storage::MOUNTBY_LABEL.
Referenced by getTestmodeData().
| const string& storage::Volume::fsTypeString | ( | ) | const [inline] |
Referenced by storage::Storage::changeFormatVolume(), storage::Partition::createText(), storage::Md::createText(), storage::LvmLv::createText(), storage::Loop::createText(), storage::Evms::createText(), storage::Dmraid::createText(), detectEncryption(), formatText(), storage::Partition::formatText(), storage::Md::formatText(), storage::LvmLv::formatText(), storage::Loop::formatText(), storage::Evms::formatText(), storage::Dmraid::formatText(), storage::Dm::formatText(), and storage::Storage::getAllUsedFs().
| static const string& storage::Volume::fsTypeString | ( | const storage::FsType | type | ) | [inline, static] |
References fs_names.
| static const string& storage::Volume::encTypeString | ( | const storage::EncryptType | type | ) | [inline, static] |
| static const string& storage::Volume::mbyTypeString | ( | const storage::MountByType | type | ) | [inline, static] |
References mb_names.
Referenced by storage::Partition::addUdevData(), changeMountBy(), storage::Storage::changeMountBy(), storage::Storage::getMountBy(), and storage::Storage::setDefaultMountBy().
| bool Volume::isTmpCryptMp | ( | const string & | mp | ) | [static] |
References storage::lengthof(), tmp_mount, and y2mil.
Referenced by doCryptsetup(), doFstabUpdate(), getCryptsetupCmd(), needCryptsetup(), setCryptPwd(), and setEncryption().
| void Volume::init | ( | ) | [protected] |
Reimplemented in storage::Dm, storage::Loop, storage::Md, and storage::Nfs.
References create, defaultMountBy(), del, detected_fs, dev, dmcrypt_active, storage::ENC_NONE, encryption, format, fs, fstab_added, storage::FSUNKNOWN, getMajorMinor(), ignore_fs, ignore_fstab, is_loop, is_mounted, loop_active, mjr, mnr, mount_by, nm, num, numeric, orig_encryption, orig_mount_by, ronly, setNameDev(), and silnt.
Referenced by Volume().
| void Volume::setNameDev | ( | ) | [protected] |
References cont, dev, storage::Container::device(), storage::Disk::needP(), nm, num, and numeric.
Referenced by storage::Partition::changeNumber(), init(), storage::Loop::Loop(), and storage::Md::Md().
| int Volume::checkDevice | ( | ) | [protected] |
| int Volume::checkDevice | ( | const string & | device | ) | [protected] |
References storage::VOLUME_DEVICE_NOT_BLOCK, storage::VOLUME_DEVICE_NOT_PRESENT, and y2milestone.
| storage::MountByType Volume::defaultMountBy | ( | const string & | mp = "" |
) | [protected] |
References cont, cType(), dev, storage::DISK, storage::ENC_NONE, encryption, storage::Storage::getDefaultMountBy(), storage::Container::getStorage(), mb_names, storage::MOUNTBY_DEVICE, storage::MOUNTBY_ID, storage::MOUNTBY_LABEL, storage::MOUNTBY_PATH, storage::MOUNTBY_UUID, udevId(), udevPath(), and y2mil.
Referenced by storage::Partition::addUdevData(), changeMount(), and init().
| bool Volume::allowedMountBy | ( | storage::MountByType | mby, | |
| const string & | mp = "" | |||
| ) | [protected] |
| void Volume::getFsData | ( | SystemCmd & | blkidData | ) | [protected] |
References alt_names, detected_fs, device(), storage::EXT2, storage::EXT3, fs, fs_names, storage::FSNONE, storage::SystemCmd::getLine(), storage::HFS, storage::HFSPLUS, is_loop, storage::JFS, label, storage::makeMap(), mountDevice(), storage::NTFS, orig_label, storage::REISERFS, storage::SystemCmd::select(), storage::splitString(), storage::SWAP, uuid, storage::VFAT, storage::XFS, and y2milestone.
Referenced by updateFsData().
| void Volume::getLoopData | ( | SystemCmd & | loopData | ) | [protected] |
References alt_names, cont, 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::Container::type(), and y2milestone.
Referenced by storage::Loop::Loop().
| void Volume::getMountData | ( | const ProcMounts & | mountData, | |
| bool | swap_only = false | |||
| ) | [protected] |
References alt_names, device(), storage::ProcMounts::getMount(), is_mounted, mountDevice(), mp, orig_mp, y2mil, and y2milestone.
| void Volume::getFstabData | ( | EtcFstab & | fstabData | ) | [protected] |
References alt_names, cont, device(), enc_names, storage::FstabEntry::encr, encryption, storage::EtcFstab::findDevice(), storage::EtcFstab::findIdPath(), storage::EtcFstab::findMount(), storage::EtcFstab::findUuidLabel(), fstab_loop_dev, fstab_opt, is_loop, label, storage::FstabEntry::loop, storage::LOOP, storage::FstabEntry::loop_dev, loop_dev, storage::Loop::loopFile(), mb_names, storage::mergeString(), 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(), storage::Container::type(), udevId(), udevPath(), uuid, and y2milestone.
| void Volume::getStartData | ( | ) | [protected] |
References dev, storage::ENC_LUKS, storage::ENC_NONE, encryption, fs, storage::FSUNKNOWN, and setEncryption().
| void Volume::getTestmodeData | ( | const string & | data | ) | [protected] |
References crypt_pwd, detected_fs, encryption, fs, fstab_loop_dev, fstab_opt, is_loop, label, loop_active, loop_dev, storage::makeMap(), mount_by, mp, orig_encryption, orig_fstab_opt, orig_label, orig_mount_by, orig_mp, storage::splitString(), toEncType(), toFsType(), toMountByType(), and uuid.
| void Volume::replaceAltName | ( | const string & | prefix, | |
| const string & | newn | |||
| ) | [protected] |
References alt_names, and y2mil.
Referenced by doCryptsetup(), storage::Loop::setDmcryptDev(), storage::Dm::updateMajorMinor(), and storage::DmPart::updateMinor().
| string Volume::getMountByString | ( | storage::MountByType | mby, | |
| const string & | dev, | |||
| const string & | uuid, | |||
| const string & | label | |||
| ) | const [protected] |
References storage::MOUNTBY_ID, storage::MOUNTBY_LABEL, storage::MOUNTBY_PATH, storage::MOUNTBY_UUID, udevId(), and udevPath().
Referenced by getFstabDentry().
| string Volume::getFstabDevice | ( | ) | [protected] |
References cont, dev, dmcrypt(), storage::LOOP, storage::Loop::loopFile(), optNoauto(), storage::Container::type(), and y2mil.
Referenced by doFstabUpdate().
| string Volume::getFstabDentry | ( | ) | [protected] |
References cont, dev, dmcrypt(), dmcrypt_dev, getMountByString(), inCryptotab(), label, storage::LOOP, storage::Loop::loopFile(), mount_by, optNoauto(), storage::Container::type(), and uuid.
Referenced by doFstabUpdate().
| void storage::Volume::getFstabOpts | ( | std::list< string > & | ol | ) | [protected] |
Referenced by doFstabUpdate(), and updateFstabOptions().
| bool Volume::getLoopFile | ( | string & | fname | ) | const [protected] |
References cont, storage::LOOP, storage::Loop::loopFile(), and storage::Container::type().
Referenced by detectEncryption(), and doFstabUpdate().
| void Volume::setExtError | ( | const SystemCmd & | cmd, | |
| bool | serr = true | |||
| ) | [protected] |
References cont, and storage::Container::setExtError().
Referenced by doFormat(), mount(), and resizeFs().
| string Volume::getDmcryptName | ( | ) | [protected] |
References cont, dev, storage::LOOP, storage::Loop::loopFile(), nm, and storage::Container::type().
Referenced by detectEncryption(), doCryptsetup(), storage::Loop::Loop(), and storage::Loop::setEncryption().
| bool Volume::needLosetup | ( | ) | const [protected] |
References cont, crypt_pwd, dmcrypt(), storage::ENC_NONE, encryption, is_loop, storage::LOOP, loop_active, and storage::Container::type().
Referenced by doCrsetup(), and needCrsetup().
| bool Volume::needCryptsetup | ( | ) | const [protected] |
References crypt_pwd, dmcrypt(), dmcrypt_active, storage::ENC_NONE, encryption, isTmpCryptMp(), mp, and orig_encryption.
Referenced by doCrsetup(), and needCrsetup().
| int Volume::doLosetup | ( | ) | [protected] |
References cont, crypt_pwd, dev, dmcrypt(), encryption, fstab_loop_dev, fstab_opt, getFreeLoop(), getLosetupCmd(), storage::Container::getStorage(), is_loop, is_mounted, loop_active, loop_dev, losetupText(), storage::mergeString(), mp, orig_mp, storage::Storage::removeDmTableTo(), storage::SystemCmd::retcode(), storage::Storage::showInfoCb(), silent(), storage::splitString(), storage::Storage::tmpDir(), umount(), updateFstabOptions(), storage::VOLUME_LOSETUP_FAILED, storage::Storage::waitForDevice(), and y2milestone.
Referenced by doCrsetup().
| int Volume::doCryptsetup | ( | ) | [protected] |
References cont, crsetupText(), crypt_pwd, cryptUnsetup(), dev, dmcrypt(), dmcrypt_active, dmcrypt_dev, storage::Dm::dmDeviceName(), encryption, storage::SystemCmd::execute(), format, getCryptsetupCmd(), getDmcryptName(), getMajorMinor(), storage::ProcPart::getSize(), storage::Container::getStorage(), is_mounted, isTmpCryptMp(), storage::LOOP, mjr, mnr, mp, orig_mp, storage::Storage::removeDmTableTo(), replaceAltName(), storage::SystemCmd::retcode(), setSize(), storage::Storage::showInfoCb(), silent(), storage::Storage::tmpDir(), storage::Container::type(), umount(), updateFstabOptions(), storage::VOLUME_CRYPTFORMAT_FAILED, storage::VOLUME_CRYPTSETUP_FAILED, storage::Storage::waitForDevice(), and y2milestone.
Referenced by doCrsetup().
| int Volume::loUnsetup | ( | bool | force = false |
) | [protected] |
References is_loop, loop_active, loop_dev, storage::SystemCmd::retcode(), and storage::VOLUME_LOUNSETUP_FAILED.
Referenced by crUnsetup(), and doCrsetup().
| int Volume::cryptUnsetup | ( | bool | force = false |
) | [protected] |
References dmcrypt_active, dmcrypt_dev, storage::SystemCmd::retcode(), and storage::VOLUME_CRYPTUNSETUP_FAILED.
Referenced by crUnsetup(), and doCryptsetup().
| std::ostream& storage::Volume::logVolume | ( | std::ostream & | file | ) | const [protected] |
| string Volume::getLosetupCmd | ( | storage::EncryptType | , | |
| const string & | pwdfile | |||
| ) | const [protected] |
| string Volume::getCryptsetupCmd | ( | storage::EncryptType | e, | |
| const string & | dmdev, | |||
| const string & | mp, | |||
| const string & | pwdfile, | |||
| bool | format, | |||
| bool | empty_pwd = false | |||
| ) | const [protected] |
References 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, y2mil, and y2milestone.
Referenced by detectEncryption(), and doCryptsetup().
| EncryptType Volume::detectEncryption | ( | ) | [protected] |
References cont, crUnsetup(), crypt_pwd, detected_fs, dev, dmcrypt_dev, storage::ENC_LUKS, storage::ENC_TWOFISH, storage::ENC_TWOFISH256_OLD, storage::ENC_TWOFISH_OLD, storage::ENC_UNKNOWN, encryption, encTypeString(), eraseLabel(), storage::SystemCmd::execute(), storage::SystemCmd::executeRestricted(), storage::EXT2, storage::EXT3, fs, fs_names, fsTypeString(), storage::FSUNKNOWN, getContainer(), getCryptsetupCmd(), getDmcryptName(), getFreeLoop(), getLoopFile(), storage::Container::getStorage(), is_loop, storage::lengthof(), storage::LOOP, loop_dev, orig_encryption, storage::REISERFS, storage::SystemCmd::retcode(), storage::Storage::root(), storage::Storage::tmpDir(), storage::Container::type(), updateFsData(), uuid, storage::Storage::waitForDevice(), and y2milestone.
Referenced by setCryptPwd(), and setEncryption().
| string Volume::getFilesysSysfsPath | ( | ) | const [protected] |
References is_loop, loop_dev, storage::Storage::sysfsDir(), sysfsPath(), and y2mil.
Referenced by triggerUdevUpdate().
friend class Storage [friend] |
| std::ostream& operator<< | ( | std::ostream & | s, | |
| const Volume & | v | |||
| ) | [friend] |
SkipDeleted storage::Volume::SkipDel [static] |
const Container* const storage::Volume::cont [protected] |
Referenced by canResize(), changeMountBy(), storage::DmPart::co(), cType(), defaultMountBy(), detectEncryption(), storage::Partition::disk(), storage::DmPart::DmPart(), storage::Dmraid::Dmraid(), doCryptsetup(), doFormat(), doFstabUpdate(), doLosetup(), doMount(), doSetLabel(), storage::Evms::Evms(), storage::Evms::evmsCo(), fstabUpdateText(), storage::DmPart::getCommitActions(), getContainer(), storage::Dm::getDevice(), getDmcryptName(), getFstabData(), getFstabDentry(), getFstabDevice(), getLoopData(), getLoopFile(), storage::LvmLv::init(), storage::Evms::init(), storage::Loop::lfileRealPath(), storage::LvmLv::LvmLv(), mount(), mountText(), needFstabUpdate(), needLosetup(), operator<(), operator==(), storage::Partition::Partition(), storage::Dm::pec(), prepareRemove(), resizeFs(), setEncryption(), setExtError(), setFormat(), setLabel(), setNameDev(), triggerUdevUpdate(), storage::Evms::updateMd(), and Volume().
bool storage::Volume::numeric [protected] |
bool storage::Volume::create [protected] |
Referenced by created(), equalContent(), getInfo(), init(), logDifference(), storage::operator<<(), operator=(), and setCreated().
bool storage::Volume::del [protected] |
bool storage::Volume::format [protected] |
bool storage::Volume::silnt [protected] |
Referenced by equalContent(), init(), storage::operator<<(), operator=(), setSilent(), and silent().
bool storage::Volume::fstab_added [protected] |
Referenced by doFstabUpdate(), equalContent(), fstabAdded(), init(), operator=(), and setFstabAdded().
storage::FsType storage::Volume::fs [protected] |
Referenced by canResize(), changeMountBy(), detectEncryption(), doFormat(), doFstabUpdate(), doMount(), doSetLabel(), equalContent(), storage::Evms::Evms(), formattingDone(), fsTypeString(), getFs(), getFsData(), getInfo(), getStartData(), getTestmodeData(), init(), logDifference(), storage::LvmLv::LvmLv(), mount(), storage::operator<<(), operator=(), resizeFs(), setFormat(), setFs(), and setLabel().
storage::FsType storage::Volume::detected_fs [protected] |
storage::MountByType storage::Volume::mount_by [protected] |
storage::MountByType storage::Volume::orig_mount_by [protected] |
string storage::Volume::uuid [protected] |
string storage::Volume::label [protected] |
string storage::Volume::orig_label [protected] |
Referenced by doFstabUpdate(), doSetLabel(), eraseLabel(), getFsData(), getTestmodeData(), initLabel(), logDifference(), needLabel(), storage::operator<<(), and operator=().
string storage::Volume::mp [protected] |
Referenced by changeMount(), storage::Partition::createText(), storage::Md::createText(), storage::LvmLv::createText(), storage::Loop::createText(), storage::Evms::createText(), storage::Dmraid::createText(), doCryptsetup(), doFormat(), doFstabUpdate(), doLosetup(), doMount(), doSetLabel(), equalContent(), formatText(), storage::Partition::formatText(), storage::Md::formatText(), storage::LvmLv::formatText(), storage::Loop::formatText(), storage::Evms::formatText(), storage::Dmraid::formatText(), storage::Dm::formatText(), fstabUpdateText(), getFstabData(), getInfo(), getMount(), getMountData(), getTestmodeData(), logDifference(), mount(), mountText(), needCryptsetup(), needFstabUpdate(), needRemount(), storage::operator<<(), operator=(), setCryptPwd(), setEncryption(), setMount(), and storage::Evms::updateMd().
string storage::Volume::orig_mp [protected] |
Referenced by doCryptsetup(), doFormat(), doFstabUpdate(), doLosetup(), doMount(), doSetLabel(), fstabUpdateText(), getFstabData(), getMountData(), getTestmodeData(), hasOrigMount(), logDifference(), mountText(), needFstabUpdate(), needRemount(), storage::operator<<(), operator=(), prepareRemove(), resizeFs(), setMount(), umount(), and storage::Evms::updateMd().
string storage::Volume::fstab_opt [protected] |
Referenced by changeFstabOptions(), changeMount(), doFormat(), doFstabUpdate(), doLosetup(), equalContent(), fstabUpdateDone(), getFstabData(), getFstabOption(), getInfo(), getTestmodeData(), logDifference(), mount(), needFstabUpdate(), storage::operator<<(), operator=(), optNoauto(), setFstabOption(), and updateFstabOptions().
string storage::Volume::orig_fstab_opt [protected] |
string storage::Volume::mkfs_opt [protected] |
Referenced by doFormat(), equalContent(), getInfo(), getMkfsOption(), logDifference(), storage::operator<<(), operator=(), setFormat(), and setMkfsOption().
string storage::Volume::tunefs_opt [protected] |
Referenced by doFormat(), equalContent(), getInfo(), getTunefsOption(), logDifference(), storage::operator<<(), operator=(), setFormat(), and setTunefsOption().
bool storage::Volume::is_loop [protected] |
Referenced by detectEncryption(), doFstabUpdate(), doLosetup(), equalContent(), getCryptsetupCmd(), getFilesysSysfsPath(), getFsData(), getFstabData(), getLoopData(), getTestmodeData(), init(), logDifference(), loop(), storage::Loop::Loop(), loopActive(), loUnsetup(), mountDevice(), needLosetup(), needRemount(), storage::operator<<(), operator=(), and setEncryption().
bool storage::Volume::is_mounted [protected] |
Referenced by doCryptsetup(), doLosetup(), doSetLabel(), equalContent(), getInfo(), getMountData(), init(), isMounted(), logDifference(), mount(), storage::operator<<(), operator=(), umount(), and storage::Evms::updateMd().
bool storage::Volume::ignore_fstab [protected] |
Referenced by doFstabUpdate(), 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] |
Referenced by cryptUnsetup(), dmcryptActive(), doCryptsetup(), init(), needCryptsetup(), storage::operator<<(), prepareRemove(), setDmcryptDev(), setDmcryptDevEnc(), and umount().
bool storage::Volume::ronly [protected] |
Referenced by equalContent(), init(), logDifference(), storage::operator<<(), operator=(), and setReadonly().
storage::EncryptType storage::Volume::encryption [protected] |
Referenced by allowedMountBy(), changeFstabOptions(), changeMountBy(), storage::Partition::createText(), storage::Md::createText(), storage::LvmLv::createText(), storage::Loop::createText(), storage::Evms::createText(), storage::Dmraid::createText(), defaultMountBy(), detectEncryption(), dmcrypt(), doCryptsetup(), doFormat(), doFstabUpdate(), doLosetup(), equalContent(), formatText(), storage::Partition::formatText(), storage::Md::formatText(), storage::LvmLv::formatText(), storage::Loop::formatText(), storage::Evms::formatText(), storage::Dmraid::formatText(), storage::Dm::formatText(), fstabUpdateDone(), getEncryption(), getFstabData(), getInfo(), getLoopData(), getStartData(), getTestmodeData(), inCryptotab(), inCrypttab(), init(), logDifference(), needCryptsetup(), needFstabUpdate(), needLosetup(), storage::operator<<(), operator=(), resizeFs(), setCryptPwd(), setDmcryptDevEnc(), setEncryption(), and storage::Loop::setEncryption().
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(), getTestmodeData(), logDifference(), storage::Loop::Loop(), loopDevice(), loUnsetup(), mountDevice(), storage::operator<<(), 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::nm [protected] |
Referenced by storage::Partition::changeNumber(), storage::Dm::Dm(), equalContent(), getDmcryptName(), getInfo(), init(), storage::Nfs::init(), storage::LvmLv::init(), storage::Evms::init(), storage::DmPart::init(), storage::Dm::init(), logDifference(), storage::Loop::Loop(), storage::Md::Md(), name(), storage::Nfs::Nfs(), operator<(), storage::operator<<(), operator=(), storage::Partition::operator=(), storage::Nfs::operator=(), storage::Md::operator=(), storage::LvmLv::operator=(), storage::Loop::operator=(), storage::Evms::operator=(), storage::Dmraid::operator=(), storage::DmPart::operator=(), storage::Dm::operator=(), operator==(), storage::Partition::Partition(), rename(), storage::Loop::setDmcryptDev(), setNameDev(), storage::DmPart::updateName(), and Volume().
std::list<string> storage::Volume::alt_names [protected] |
Referenced by storage::Partition::addAltUdevId(), storage::DmPart::addAltUdevId(), storage::Partition::addAltUdevPath(), altNames(), storage::Partition::changeNumber(), doFstabUpdate(), getFsData(), getFstabData(), getLoopData(), getMountData(), storage::Evms::init(), storage::Dm::init(), storage::Loop::Loop(), storage::LvmLv::LvmLv(), mount(), storage::Nfs::Nfs(), storage::operator<<(), operator=(), rename(), replaceAltName(), sameDevice(), storage::Dm::sysfsPath(), storage::Partition::udevId(), storage::Partition::udevPath(), and storage::Evms::updateMd().
unsigned storage::Volume::num [protected] |
Referenced by storage::Partition::addUdevData(), storage::DmPart::addUdevData(), storage::Partition::changeNumber(), storage::Dm::dmName(), storage::DmPart::DmPart(), equalContent(), storage::Partition::getInfo(), storage::Md::getInfo(), storage::Loop::getInfo(), storage::Dm::getInfo(), init(), logDifference(), storage::Loop::Loop(), storage::Md::Md(), nr(), operator<(), storage::operator<<(), operator=(), operator==(), storage::Partition::operator==(), storage::Partition::Partition(), storage::Partition::removeText(), setNameDev(), storage::Dm::updateMajorMinor(), storage::DmPart::updateName(), and Volume().
unsigned long long storage::Volume::size_k [protected] |
Referenced by canResize(), storage::Partition::changeRegion(), doFormat(), equalContent(), extendSize(), forgetResize(), storage::Partition::forgetResize(), getInfo(), logDifference(), needExtend(), needShrink(), storage::operator<<(), operator=(), storage::Partition::Partition(), resizeFs(), setFormat(), setResizedSize(), setSize(), sizeK(), sizeString(), storage::DmPart::updateSize(), and Volume().
unsigned long long storage::Volume::orig_size_k [protected] |
string storage::Volume::dev [protected] |
Referenced by storage::Partition::addUdevData(), storage::Nfs::canonicalName(), changeFstabOptions(), changeMount(), storage::Partition::changeMount(), changeMountBy(), storage::Partition::changeNumber(), storage::Dm::checkConsistency(), checkDevice(), createText(), storage::Partition::createText(), storage::Md::createText(), storage::LvmLv::createText(), storage::Loop::createText(), storage::Evms::createText(), storage::Dmraid::createText(), crsetupText(), defaultMountBy(), detectEncryption(), device(), storage::Dm::Dm(), storage::DmPart::DmPart(), storage::Dmraid::Dmraid(), doCryptsetup(), doFormat(), doFstabUpdate(), doLosetup(), doMount(), doSetLabel(), equalContent(), storage::Evms::Evms(), formatText(), storage::Partition::formatText(), storage::Md::formatText(), storage::LvmLv::formatText(), storage::Loop::formatText(), storage::Evms::formatText(), storage::Dmraid::formatText(), storage::Dm::formatText(), getCryptsetupCmd(), getDmcryptName(), getFstabDentry(), getFstabDevice(), getInfo(), getMajorMinor(), getStartData(), storage::Dm::getTableInfo(), init(), storage::Nfs::init(), storage::LvmLv::init(), storage::Evms::init(), storage::DmPart::init(), storage::Dm::init(), labelText(), logDifference(), storage::Loop::Loop(), losetupText(), storage::LvmLv::LvmLv(), storage::Md::Md(), mount(), mountDevice(), mountText(), storage::Nfs::Nfs(), storage::operator<<(), operator=(), storage::Partition::Partition(), prepareRemove(), removeText(), storage::Partition::removeText(), storage::Nfs::removeText(), storage::Md::removeText(), storage::LvmLv::removeText(), storage::Loop::removeText(), storage::Evms::removeText(), storage::Dmraid::removeText(), storage::Dm::removeText(), rename(), resizeText(), storage::Partition::resizeText(), storage::LvmLv::resizeText(), storage::Evms::resizeText(), storage::Dmraid::resizeText(), sameDevice(), setDmcryptDev(), storage::Loop::setDmcryptDev(), setDmcryptDevEnc(), storage::Loop::setEncryption(), setFormat(), storage::Partition::setFormat(), setNameDev(), storage::Partition::setTypeText(), storage::Dmraid::setTypeText(), storage::DmPart::setTypeText(), sysfsPath(), storage::Partition::sysfsPath(), umount(), storage::Dm::updateMajorMinor(), storage::Evms::updateMd(), storage::DmPart::updateMinor(), storage::DmPart::updateName(), Volume(), storage::Dm::~Dm(), storage::DmPart::~DmPart(), storage::Dmraid::~Dmraid(), storage::Evms::~Evms(), storage::Loop::~Loop(), storage::LvmLv::~LvmLv(), storage::Md::~Md(), storage::Nfs::~Nfs(), storage::Partition::~Partition(), and ~Volume().
string storage::Volume::dtxt [protected] |
Referenced by equalContent(), getDescText(), getInfo(), logDifference(), storage::operator<<(), operator=(), and setDescText().
unsigned long storage::Volume::mnr [protected] |
Referenced by storage::Partition::changeNumber(), doCryptsetup(), equalContent(), getInfo(), init(), logDifference(), storage::Loop::Loop(), storage::Md::Md(), minorNr(), storage::operator<<(), operator=(), storage::Partition::Partition(), storage::Loop::setDmcryptDev(), setMajorMinor(), storage::Dm::updateMajorMinor(), storage::DmPart::updateMinor(), and storage::DmPart::updateSize().
unsigned long storage::Volume::mjr [protected] |
Referenced by storage::Partition::changeNumber(), doCryptsetup(), equalContent(), getInfo(), init(), logDifference(), storage::Loop::Loop(), majorNr(), storage::Md::Md(), storage::operator<<(), operator=(), storage::Partition::Partition(), storage::Loop::setDmcryptDev(), setMajorMinor(), storage::Dm::updateMajorMinor(), storage::DmPart::updateMinor(), and storage::DmPart::updateSize().
storage::usedBy storage::Volume::uby [protected] |
string Volume::fs_names [static, protected] |
Initial value:
{ "unknown", "reiserfs", "ext2", "ext3", "vfat",
"xfs", "jfs", "hfs", "ntfs", "swap", "hfsplus",
"nfs", "none" }
Referenced by detectEncryption(), doFstabUpdate(), fsTypeString(), getFsData(), logDifference(), mount(), storage::operator<<(), setFormat(), storage::Partition::setFormat(), and toFsType().
string Volume::mb_names = { "device", "uuid", "label", "id", "path" } [static, protected] |
Referenced by allowedMountBy(), defaultMountBy(), getFstabData(), logDifference(), mbyTypeString(), storage::operator<<(), and toMountByType().
string Volume::enc_names [static, protected] |
Initial value:
{ "none", "twofish256", "twofish",
"twofishSL92", "luks", "unknown" }
Referenced by encTypeString(), getFstabData(), logDifference(), and storage::operator<<().
string Volume::tmp_mount = { "swap", "/tmp", "/var/tmp" } [static, protected] |
Referenced by isTmpCryptMp().
string Volume::empty_string [static, protected] |
Referenced by udevPath(), and storage::Partition::udevPath().
list< string > Volume::empty_slist [static, protected] |
Referenced by udevId().
storage::VolumeInfo storage::Volume::info [mutable, protected] |
Reimplemented in storage::Dm, storage::DmPart, storage::Evms, storage::Loop, storage::LvmLv, storage::Md, storage::Nfs, and storage::Partition.
Referenced by getInfo(), and mergeFstabInfo().
1.5.5