|
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) |
| 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 | 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 & | 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) |
| 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="") |
| 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) |
| 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 e, const string &pwdfile) const |
| string | getCryptsetupCmd (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 |
| 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 |