|
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 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) |
void | setFstabAdded (bool val=true) |
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 | loopActive () const |
bool | needLosetup () const |
const string & | getUuid () const |
const string & | getLabel () const |
int | setLabel (const string &val) |
bool | needLabel () const |
storage::EncryptType | getEncryption () const |
void | setEncryption (storage::EncryptType val=storage::ENC_TWOFISH) |
int | setEncryption (bool val) |
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) |
bool | needFstabUpdate () const |
const string & | getMkfsOption () const |
int | setMkfsOption (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 |
void | setMajorMinor (unsigned long Major, unsigned long Minor) |
void | setSize (unsigned long long SizeK) |
virtual void | setResizedSize (unsigned long long SizeK) |
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 | loUnsetup () |
int | mount (const string &mp="") |
int | canResize (unsigned long long newSizeK) const |
int | doMount () |
int | doFormat () |
int | doLosetup () |
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 | fstabUpdateText () const |
string | sizeString () const |
string | bootMount () const |
bool | optNoauto () const |
bool | inCrypto () const |
virtual void | print (std::ostream &s) const |
int | getFreeLoop () |
void | getInfo (storage::VolumeInfo &info) const |
void | mergeFstabInfo (storage::VolumeInfo &tinfo, const FstabEntry &fste) const |
void | updateFsData () |
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 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 | getTestmodeData (const string &data) |
string | getMountByString (storage::MountByType mby, const string &dev, const string &uuid, const string &label) const |
void | setExtError (const SystemCmd &cmd, bool serr=true) |
std::ostream & | logVolume (std::ostream &file) const |
string | getLosetupCmd (storage::EncryptType e, const string &pwdfile) const |
storage::EncryptType | detectLoopEncryption () |
string | getFilesysSysfsPath () const |
void | triggerUdevUpdate () |
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 | loop_active |
bool | ronly |
storage::EncryptType | encryption |
storage::EncryptType | orig_encryption |
string | loop_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 |
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 | empty_string |
static std::list< string > | empty_slist |
Friends |
class | Storage |
std::ostream & | operator<< (std::ostream &s, const Volume &v) |
Classes |
struct | SkipDeleted |