#include <Storage.h>

Public Types | |
| typedef DerefIterator < ConstContPIterator, const Container > | ConstContIterator |
| typedef IterPair < ConstContIterator > | ConstContPair |
| typedef DerefIterator < ConstDiskPIterator, const Disk > | ConstDiskIterator |
| typedef IterPair < ConstDiskIterator > | ConstDiskPair |
| typedef DerefIterator < ConstLvmVgPIterator, const LvmVg > | ConstLvmVgIterator |
| typedef IterPair < ConstLvmVgIterator > | ConstLvmVgPair |
| typedef DerefIterator < ConstEvmsCoPIterator, const EvmsCo > | ConstEvmsCoIterator |
| typedef IterPair < ConstEvmsCoIterator > | ConstEvmsCoPair |
| typedef DerefIterator < ConstDmPartCoPIterator, const DmPartCo > | ConstDmPartCoIterator |
| typedef IterPair < ConstDmPartCoIterator > | ConstDmPartCoPair |
| typedef DerefIterator < ConstDmraidCoPIterator, const DmraidCo > | ConstDmraidCoIterator |
| typedef IterPair < ConstDmraidCoIterator > | ConstDmraidCoPair |
| typedef DerefIterator < ConstVolPIterator, const Volume > | ConstVolIterator |
| typedef IterPair < ConstVolIterator > | ConstVolPair |
| typedef DerefIterator < ConstPartPIterator, const Partition > | ConstPartIterator |
| typedef IterPair < ConstPartIterator > | ConstPartPair |
| typedef DerefIterator < ConstLvmLvPIterator, const LvmLv > | ConstLvmLvIterator |
| typedef IterPair < ConstLvmLvIterator > | ConstLvmLvPair |
| typedef DerefIterator < ConstEvmsPIterator, const Evms > | ConstEvmsIterator |
| typedef IterPair < ConstEvmsIterator > | ConstEvmsPair |
| typedef DerefIterator < ConstMdPIterator, const Md > | ConstMdIterator |
| typedef IterPair< ConstMdIterator > | ConstMdPair |
| typedef DerefIterator < ConstLoopPIterator, const Loop > | ConstLoopIterator |
| typedef IterPair < ConstLoopIterator > | ConstLoopPair |
| typedef DerefIterator < ConstNfsPIterator, const Nfs > | ConstNfsIterator |
| typedef IterPair < ConstNfsIterator > | ConstNfsPair |
| typedef DerefIterator < ConstDmPIterator, const Dm > | ConstDmIterator |
| typedef IterPair< ConstDmIterator > | ConstDmPair |
| typedef DerefIterator < ConstDmraidPIterator, const Dmraid > | ConstDmraidIterator |
| typedef IterPair < ConstDmraidIterator > | ConstDmraidPair |
Public Member Functions | |
| Storage (bool ronly=false, bool testmode=false, bool autodetect=true) | |
| bool | test () const |
| bool | instsys () const |
| void | setCacheChanges (bool val=true) |
| bool | isCacheChanges () const |
| void | assertInit () |
| void | rescanEverything () |
| int | checkCache () |
| const string & | tDir () const |
| const string & | root () const |
| string | prependRoot (const string &mp) const |
| const string & | tmpDir () const |
| EtcFstab * | getFstab () |
| void | handleLogFile (const string &name) |
| void | printInfo (std::ostream &str) |
| void | printInfo (std::ostream &str, const string &name) |
| void | printInfoCo (std::ostream &str, const string &name) |
| void | logCo (Container *c) const |
| void | logCo (const string &device) |
| void | logProcData (const string &l="") |
| storage::UsedByType | usedBy (const string &dev) |
| bool | usedBy (const string &dev, storage::usedBy &ub) |
| bool | setUsedBy (const string &dev, storage::UsedByType typ, const string &name) |
| bool | canUseDevice (const string &dev, bool disks_allowed=false) |
| bool | knownDevice (const string &dev, bool disks_allowed=false) |
| bool | setDmcryptData (const string &dev, const string &dm, unsigned dmnum, unsigned long long siz, storage::EncryptType typ) |
| bool | deletedDevice (const string &dev) |
| bool | isDisk (const string &dev) |
| const Volume * | getVolume (const string &dev) |
| unsigned long long | deviceSize (const string &dev) |
| string | deviceByNumber (const string &majmin) |
| void | rootMounted () |
| bool | isRootMounted () const |
| string | findNormalDevice (const string &device) |
| bool | findVolume (const string &device, Volume const *&vol) |
| bool | findDm (const string &device, const Dm *&dm) |
| bool | findDmUsing (const string &device, const Dm *&dm) |
| bool | removeDm (const string &device) |
| virtual | ~Storage () |
| void | getContainers (deque< storage::ContainerInfo > &infos) |
| int | getDiskInfo (const string &disk, storage::DiskInfo &info) |
| int | getLvmVgInfo (const string &name, storage::LvmVgInfo &info) |
| int | getEvmsCoInfo (const string &name, storage::EvmsCoInfo &info) |
| int | getDmraidCoInfo (const string &name, storage::DmraidCoInfo &info) |
| int | getContDiskInfo (const string &disk, storage::ContainerInfo &cinfo, storage::DiskInfo &info) |
| int | getContLvmVgInfo (const string &name, storage::ContainerInfo &cinfo, storage::LvmVgInfo &info) |
| int | getContEvmsCoInfo (const string &name, storage::ContainerInfo &cinfo, storage::EvmsCoInfo &info) |
| int | getContDmraidCoInfo (const string &name, storage::ContainerInfo &cinfo, storage::DmraidCoInfo &info) |
| void | getVolumes (deque< storage::VolumeInfo > &vlist) |
| int | getVolume (const string &device, storage::VolumeInfo &info) |
| int | getPartitionInfo (const string &disk, deque< storage::PartitionInfo > &plist) |
| int | getLvmLvInfo (const string &name, deque< storage::LvmLvInfo > &plist) |
| int | getEvmsInfo (const string &name, deque< storage::EvmsInfo > &plist) |
| int | getMdInfo (deque< storage::MdInfo > &plist) |
| int | getDmInfo (deque< storage::DmInfo > &plist) |
| int | getNfsInfo (deque< storage::NfsInfo > &plist) |
| int | getLoopInfo (deque< storage::LoopInfo > &plist) |
| int | getDmraidInfo (const string &name, deque< storage::DmraidInfo > &plist) |
| int | getContVolInfo (const string &dev, ContVolInfo &info) |
| bool | getFsCapabilities (storage::FsType fstype, storage::FsCapabilities &fscapabilities) const |
| string | getAllUsedFs () const |
| void | setExtError (const string &txt) |
| int | createPartition (const string &disk, storage::PartitionType type, unsigned long start, unsigned long size, string &device) |
| int | resizePartition (const string &device, unsigned long sizeCyl) |
| int | resizePartitionNoFs (const string &device, unsigned long sizeCyl) |
| int | nextFreePartition (const string &disk, storage::PartitionType type, unsigned &nr, string &device) |
| int | updatePartitionArea (const string &device, unsigned long start, unsigned long size) |
| int | createPartitionKb (const string &disk, storage::PartitionType type, unsigned long long start, unsigned long long sizek, string &device) |
| int | createPartitionAny (const string &disk, unsigned long long size, string &device) |
| int | createPartitionMax (const string &disk, storage::PartitionType type, string &device) |
| unsigned long | kbToCylinder (const string &disk, unsigned long long size) |
| unsigned long long | cylinderToKb (const string &disk, unsigned long size) |
| int | removePartition (const string &partition) |
| int | changePartitionId (const string &partition, unsigned id) |
| int | forgetChangePartitionId (const string &partition) |
| int | destroyPartitionTable (const string &disk, const string &label) |
| int | initializeDisk (const string &disk, bool value) |
| string | defaultDiskLabel () const |
| string | defaultDiskLabelSize (unsigned long long size_k) const |
| unsigned long long | maxSizeLabelK (const string &label) const |
| int | changeFormatVolume (const string &device, bool format, storage::FsType fs) |
| int | changeLabelVolume (const string &device, const string &label) |
| int | eraseLabelVolume (const string &device) |
| int | changeMkfsOptVolume (const string &device, const string &opts) |
| int | changeTunefsOptVolume (const string &device, const string &opts) |
| int | changeDescText (const string &device, const string &txt) |
| int | changeMountPoint (const string &device, const string &mount) |
| int | getMountPoint (const string &device, string &mount) |
| int | changeMountBy (const string &device, storage::MountByType mby) |
| int | getMountBy (const string &device, storage::MountByType &mby) |
| int | changeFstabOptions (const string &, const string &options) |
| int | getFstabOptions (const string &device, string &options) |
| int | addFstabOptions (const string &, const string &options) |
| int | removeFstabOptions (const string &, const string &options) |
| int | setCryptPassword (const string &device, const string &pwd) |
| int | forgetCryptPassword (const string &device) |
| int | getCryptPassword (const string &device, string &pwd) |
| int | setCrypt (const string &device, bool val) |
| int | setCryptType (const string &device, bool val, EncryptType typ) |
| int | getCrypt (const string &device, bool &val) |
| int | setIgnoreFstab (const string &device, bool val) |
| int | getIgnoreFstab (const string &device, bool &val) |
| int | addFstabEntry (const string &device, const string &mount, const string &vfs, const string &options, unsigned freq, unsigned passno) |
| int | resizeVolume (const string &device, unsigned long long newSizeMb) |
| int | resizeVolumeNoFs (const string &device, unsigned long long newSizeMb) |
| int | forgetResizeVolume (const string &device) |
| void | setRecursiveRemoval (bool val=true) |
| bool | getRecursiveRemoval () const |
| void | setZeroNewPartitions (bool val=true) |
| bool | getZeroNewPartitions () const |
| void | setDefaultMountBy (MountByType mby=MOUNTBY_DEVICE) |
| MountByType | getDefaultMountBy () const |
| void | setDetectMountedVolumes (bool val=true) |
| bool | getDetectMountedVolumes () const |
| void | setRootPrefix (const string &root) |
| int | removeVolume (const string &device) |
| int | removeUsing (const string &device, const storage::usedBy &uby) |
| bool | checkDeviceMounted (const string &device, string &mp) |
| bool | umountDevice (const string &device) |
| bool | mountDev (const string &device, const string &mp, bool ro=true, const string &opts="") |
| bool | mountDevice (const string &device, const string &mp) |
| bool | mountDeviceOpts (const string &device, const string &mp, const string &opts) |
| bool | mountDeviceRo (const string &device, const string &mp, const string &opts) |
| bool | readFstab (const string &dir, deque< storage::VolumeInfo > &infos) |
| bool | getFreeInfo (const string &device, unsigned long long &resize_free, unsigned long long &df_free, unsigned long long &used, bool &win, bool &efi, bool use_cache) |
| unsigned long long | getDfSize (const string &mp) |
| int | createBackupState (const string &name) |
| int | removeBackupState (const string &name) |
| int | restoreBackupState (const string &name) |
| bool | checkBackupState (const string &name) |
| bool | equalBackupStates (const string &lhs, const string &rhs, bool verbose_log) const |
| int | createLvmVg (const string &name, unsigned long long peSizeK, bool lvm1, const deque< string > &devs) |
| int | removeLvmVg (const string &name) |
| int | extendLvmVg (const string &name, const deque< string > &devs) |
| int | shrinkLvmVg (const string &name, const deque< string > &devs) |
| int | createLvmLv (const string &vg, const string &name, unsigned long long sizeM, unsigned stripe, string &device) |
| int | removeLvmLvByDevice (const string &device) |
| int | removeLvmLv (const string &vg, const string &name) |
| int | changeLvStripeCount (const string &vg, const string &name, unsigned long stripes) |
| int | changeLvStripeSize (const string &vg, const string &name, unsigned long long stripeSize) |
| int | evmsActivate (bool force) |
| int | createEvmsContainer (const string &name, unsigned long long peSizeK, bool lvm1, const deque< string > &devs) |
| int | modifyEvmsContainer (const string &old_name, const string &new_name, unsigned long long peSizeK, bool lvm1) |
| int | removeEvmsContainer (const string &name) |
| int | extendEvmsContainer (const string &name, const deque< string > &devs) |
| int | shrinkEvmsContainer (const string &name, const deque< string > &devs) |
| int | createEvmsVolume (const string &vg, const string &name, unsigned long long sizeM, unsigned stripe, string &device) |
| int | removeEvmsVolumeByDevice (const string &device) |
| int | removeEvmsVolume (const string &vg, const string &name) |
| int | changeEvmsStripeCount (const string &coname, const string &name, unsigned long stripes) |
| int | changeEvmsStripeSize (const string &coname, const string &name, unsigned long long stripeSize) |
| void | setNoEvms (bool val) |
| bool | getNoEvms () |
| int | createMd (const string &name, storage::MdType rtype, const deque< string > &devs) |
| int | createMdAny (storage::MdType rtype, const deque< string > &devs, string &device) |
| int | removeMd (const string &name, bool destroySb=true) |
| int | extendMd (const string &name, const string &dev) |
| int | shrinkMd (const string &name, const string &dev) |
| int | changeMdType (const string &name, storage::MdType rtype) |
| int | changeMdChunk (const string &name, unsigned long chunk) |
| int | changeMdParity (const string &name, storage::MdParity ptype) |
| int | checkMd (const string &name) |
| int | addNfsDevice (const string &nfsDev, const string &opts, unsigned long long sizeK, const string &mp) |
| int | checkNfsDevice (const string &nfsDev, const string &opts, unsigned long long &sizeK) |
| int | createFileLoop (const string &lname, bool reuseExisting, unsigned long long sizeK, const string &mp, const string &pwd, string &device) |
| int | modifyFileLoop (const string &device, const string &lname, bool reuseExisting, unsigned long long sizeK) |
| int | removeFileLoop (const string &lname, bool removeFile) |
| int | removeDmraid (const string &name) |
| deque< string > | getCommitActions (bool mark_destructive) |
| const string & | getLastAction () const |
| const string & | getExtendedErrorMessage () const |
| void | eraseFreeInfo (const string &device) |
| int | waitForDevice () const |
| int | waitForDevice (const string &device) const |
| void | checkDeviceExclusive (const string &device, unsigned secs) |
| void | getDiskList (bool(*CheckFnc)(const Disk &), std::list< Disk * > &dl) |
| void | changeDeviceName (const string &old, const string &nw) |
| int | commit () |
| void | handleHald (bool stop) |
| void | activateHld (bool val=true) |
| void | removeDmTableTo (const Volume &vol) |
| void | removeDmTableTo (const string &device) |
| bool | removeDmTable (const string &table) |
| bool | removeDmMapsTo (const string &dev, bool also_evms=false) |
| bool | checkDmMapsTo (const string &dev) |
| void | updateDmEmptyPeMap () |
| void | dumpObjectList () |
| void | setCallbackProgressBar (storage::CallbackProgressBar pfnc) |
| storage::CallbackProgressBar | getCallbackProgressBar () const |
| void | setCallbackShowInstallInfo (storage::CallbackShowInstallInfo pfnc) |
| storage::CallbackShowInstallInfo | getCallbackShowInstallInfo () const |
| void | setCallbackInfoPopup (storage::CallbackInfoPopup pfnc) |
| storage::CallbackInfoPopup | getCallbackInfoPopup () const |
| void | setCallbackYesNoPopup (storage::CallbackYesNoPopup pfnc) |
| storage::CallbackYesNoPopup | getCallbackYesNoPopup () const |
| void | addInfoPopupText (const string &disk, const string txt) |
| storage::CallbackProgressBar | getCallbackProgressBarTheOne () const |
| storage::CallbackShowInstallInfo | getCallbackShowInstallInfoTheOne () const |
| storage::CallbackInfoPopup | getCallbackInfoPopupTheOne () const |
| storage::CallbackYesNoPopup | getCallbackYesNoPopupTheOne () const |
| void | progressBarCb (const string &id, unsigned cur, unsigned max) |
| void | showInfoCb (const string &info) |
| void | infoPopupCb (const string &info) |
| bool | yesnoPopupCb (const string &info) |
| ConstContPair | contPair (bool(*CheckFnc)(const Container &)=NULL) const |
| ConstContIterator | contBegin (bool(*CheckFnc)(const Container &)=NULL) const |
| ConstContIterator | contEnd (bool(*CheckFnc)(const Container &)=NULL) const |
| template<class Pred> | |
| ContCondIPair< Pred >::type | contCondPair (const Pred &p) const |
| template<class Pred> | |
| ConstContainerI< Pred >::type | contCondBegin (const Pred &p) const |
| template<class Pred> | |
| ConstContainerI< Pred >::type | contCondEnd (const Pred &p) const |
| ConstDiskPair | diskPair (bool(*CheckFnc)(const Disk &)=NULL) const |
| ConstDiskIterator | diskBegin (bool(*CheckFnc)(const Disk &)=NULL) const |
| ConstDiskIterator | diskEnd (bool(*CheckFnc)(const Disk &)=NULL) const |
| template<class Pred> | |
| DiskCondIPair< Pred >::type | diskCondPair (const Pred &p) const |
| template<class Pred> | |
| ConstDiskI< Pred >::type | diskCondBegin (const Pred &p) const |
| template<class Pred> | |
| ConstDiskI< Pred >::type | diskCondEnd (const Pred &p) const |
| ConstLvmVgPair | lvmVgPair (bool(*CheckFnc)(const LvmVg &)=NULL) const |
| ConstLvmVgIterator | lvmVgBegin (bool(*CheckFnc)(const LvmVg &)=NULL) const |
| ConstLvmVgIterator | lvmVgEnd (bool(*CheckFnc)(const LvmVg &)=NULL) const |
| template<class Pred> | |
| LvmVgCondIPair< Pred >::type | lvmVgCondPair (const Pred &p) const |
| template<class Pred> | |
| ConstLvmVgI< Pred >::type | lvmVgCondBegin (const Pred &p) const |
| template<class Pred> | |
| ConstLvmVgI< Pred >::type | lvmVgCondEnd (const Pred &p) const |
| ConstEvmsCoPair | evmsCoPair (bool(*CheckFnc)(const EvmsCo &)=NULL) const |
| ConstEvmsCoIterator | evmsCoBegin (bool(*CheckFnc)(const EvmsCo &)=NULL) const |
| ConstEvmsCoIterator | evmsCoEnd (bool(*CheckFnc)(const EvmsCo &)=NULL) const |
| template<class Pred> | |
| EvmsCoCondIPair< Pred >::type | evmsCoCondPair (const Pred &p) const |
| template<class Pred> | |
| ConstEvmsCoI< Pred >::type | evmsCoCondBegin (const Pred &p) const |
| template<class Pred> | |
| ConstEvmsCoI< Pred >::type | evmsCoCondEnd (const Pred &p) const |
| ConstDmPartCoPair | dmpartCoPair (bool(*CheckFnc)(const DmPartCo &)=NULL) const |
| ConstDmPartCoIterator | dmpartCoBegin (bool(*CheckFnc)(const DmPartCo &)=NULL) const |
| ConstDmPartCoIterator | dmpartCoEnd (bool(*CheckFnc)(const DmPartCo &)=NULL) const |
| template<class Pred> | |
| DmPartCoCondIPair< Pred >::type | dmPartCoCondPair (const Pred &p) const |
| template<class Pred> | |
| ConstDmPartCoI< Pred >::type | dmpartCoCondBegin (const Pred &p) const |
| template<class Pred> | |
| ConstDmPartCoI< Pred >::type | dmpartCoCondEnd (const Pred &p) const |
| ConstDmraidCoPair | dmraidCoPair (bool(*CheckFnc)(const DmraidCo &)=NULL) const |
| ConstDmraidCoIterator | dmraidCoBegin (bool(*CheckFnc)(const DmraidCo &)=NULL) const |
| ConstDmraidCoIterator | dmraidCoEnd (bool(*CheckFnc)(const DmraidCo &)=NULL) const |
| template<class Pred> | |
| DmraidCoCondIPair< Pred >::type | dmraidCoCondPair (const Pred &p) const |
| template<class Pred> | |
| ConstDmraidCoI< Pred >::type | dmraidCoCondBegin (const Pred &p) const |
| template<class Pred> | |
| ConstDmraidCoI< Pred >::type | dmraidCoCondEnd (const Pred &p) const |
| ConstVolPair | volPair (bool(*CheckCnt)(const Container &)) const |
| ConstVolPair | volPair (bool(*CheckVol)(const Volume &)=NULL, bool(*CheckCnt)(const Container &)=NULL) const |
| ConstVolIterator | volBegin (bool(*CheckCnt)(const Container &)) const |
| ConstVolIterator | volBegin (bool(*CheckVol)(const Volume &)=NULL, bool(*CheckCnt)(const Container &)=NULL) const |
| ConstVolIterator | volEnd (bool(*CheckCnt)(const Container &)) const |
| ConstVolIterator | volEnd (bool(*CheckVol)(const Volume &)=NULL, bool(*CheckCnt)(const Container &)=NULL) const |
| template<class Pred> | |
| VolCondIPair< Pred >::type | volCondPair (const Pred &p) const |
| template<class Pred> | |
| ConstVolumeI< Pred >::type | volCondBegin (const Pred &p) const |
| template<class Pred> | |
| ConstVolumeI< Pred >::type | volCondEnd (const Pred &p) const |
| ConstPartPair | partPair (bool(*CheckCnt)(const Disk &)) const |
| ConstPartPair | partPair (bool(*CheckPart)(const Partition &)=NULL, bool(*CheckCnt)(const Disk &)=NULL) const |
| ConstPartIterator | partBegin (bool(*CheckDisk)(const Disk &)) const |
| ConstPartIterator | partBegin (bool(*CheckPart)(const Partition &)=NULL, bool(*CheckDisk)(const Disk &)=NULL) const |
| ConstPartIterator | partEnd (bool(*CheckDisk)(const Disk &)) const |
| ConstPartIterator | partEnd (bool(*CheckPart)(const Partition &)=NULL, bool(*CheckDisk)(const Disk &)=NULL) const |
| template<class Pred> | |
| PartCondIPair< Pred >::type | partCondPair (const Pred &p) const |
| template<class Pred> | |
| ConstPartitionI< Pred >::type | partCondBegin (const Pred &p) const |
| template<class Pred> | |
| ConstPartitionI< Pred >::type | partCondEnd (const Pred &p) const |
| ConstLvmLvPair | lvmLvPair (bool(*CheckLvmVg)(const LvmVg &)) const |
| ConstLvmLvPair | lvmLvPair (bool(*CheckLvmLv)(const LvmLv &)=NULL, bool(*CheckLvmVg)(const LvmVg &)=NULL) const |
| ConstLvmLvIterator | lvmLvBegin (bool(*CheckLvmVg)(const LvmVg &)) const |
| ConstLvmLvIterator | lvmLvBegin (bool(*CheckLvmLv)(const LvmLv &)=NULL, bool(*CheckLvmVg)(const LvmVg &)=NULL) const |
| ConstLvmLvIterator | lvmLvEnd (bool(*CheckLvmVg)(const LvmVg &)) const |
| ConstLvmLvIterator | lvmLvEnd (bool(*CheckLvmLv)(const LvmLv &)=NULL, bool(*CheckLvmVg)(const LvmVg &)=NULL) const |
| template<class Pred> | |
| LvmLvCondIPair< Pred >::type | lvmLvCondPair (const Pred &p) const |
| template<class Pred> | |
| ConstLvmLvI< Pred >::type | lvmLvCondBegin (const Pred &p) const |
| template<class Pred> | |
| ConstLvmLvI< Pred >::type | lvmLvCondEnd (const Pred &p) const |
| ConstEvmsPair | evmsPair (bool(*CheckEvmsCo)(const EvmsCo &)) const |
| ConstEvmsPair | evmsPair (bool(*CheckEvms)(const Evms &)=NULL, bool(*CheckEvmsCo)(const EvmsCo &)=NULL) const |
| ConstEvmsIterator | evmsBegin (bool(*CheckEvmsCo)(const EvmsCo &)) const |
| ConstEvmsIterator | evmsBegin (bool(*CheckEvms)(const Evms &)=NULL, bool(*CheckEvmsCo)(const EvmsCo &)=NULL) const |
| ConstEvmsIterator | evmsEnd (bool(*CheckEvmsCo)(const EvmsCo &)) const |
| ConstEvmsIterator | evmsEnd (bool(*CheckEvms)(const Evms &)=NULL, bool(*CheckEvmsCo)(const EvmsCo &)=NULL) const |
| template<class Pred> | |
| EvmsCondIPair< Pred >::type | evmsCondPair (const Pred &p) const |
| template<class Pred> | |
| ConstEvmsI< Pred >::type | evmsCondBegin (const Pred &p) const |
| template<class Pred> | |
| ConstEvmsI< Pred >::type | evmsCondEnd (const Pred &p) const |
| ConstMdPair | mdPair (bool(*CheckMd)(const Md &)=NULL) const |
| ConstMdIterator | mdBegin (bool(*CheckMd)(const Md &)=NULL) const |
| ConstMdIterator | mdEnd (bool(*CheckMd)(const Md &)=NULL) const |
| template<class Pred> | |
| MdCondIPair< Pred >::type | mdCondPair (const Pred &p) const |
| template<class Pred> | |
| ConstMdI< Pred >::type | mdCondBegin (const Pred &p) const |
| template<class Pred> | |
| ConstMdI< Pred >::type | mdCondEnd (const Pred &p) const |
| ConstLoopPair | loopPair (bool(*CheckLoop)(const Loop &)=NULL) const |
| ConstLoopIterator | loopBegin (bool(*CheckLoop)(const Loop &)=NULL) const |
| ConstLoopIterator | loopEnd (bool(*CheckLoop)(const Loop &)=NULL) const |
| template<class Pred> | |
| LoopCondIPair< Pred >::type | loopCondPair (const Pred &p) const |
| template<class Pred> | |
| ConstLoopI< Pred >::type | loopCondBegin (const Pred &p) const |
| template<class Pred> | |
| ConstLoopI< Pred >::type | loopCondEnd (const Pred &p) const |
| ConstNfsPair | nfsPair (bool(*CheckNfs)(const Nfs &)=NULL) const |
| ConstNfsIterator | nfsBegin (bool(*CheckNfs)(const Nfs &)=NULL) const |
| ConstNfsIterator | nfsEnd (bool(*CheckNfs)(const Nfs &)=NULL) const |
| template<class Pred> | |
| NfsCondIPair< Pred >::type | nfsCondPair (const Pred &p) const |
| template<class Pred> | |
| ConstNfsI< Pred >::type | nfsCondBegin (const Pred &p) const |
| template<class Pred> | |
| ConstNfsI< Pred >::type | nfsCondEnd (const Pred &p) const |
| ConstDmPair | dmPair (bool(*CheckDm)(const Dm &)=NULL) const |
| ConstDmIterator | dmBegin (bool(*CheckDm)(const Dm &)=NULL) const |
| ConstDmIterator | dmEnd (bool(*CheckDm)(const Dm &)=NULL) const |
| template<class Pred> | |
| DmCondIPair< Pred >::type | dmCondPair (const Pred &p) const |
| template<class Pred> | |
| ConstDmI< Pred >::type | dmCondBegin (const Pred &p) const |
| template<class Pred> | |
| ConstDmI< Pred >::type | dmCondEnd (const Pred &p) const |
| ConstDmraidPair | dmrPair (bool(*CheckDmraidCo)(const DmraidCo &)) const |
| ConstDmraidPair | dmrPair (bool(*CheckDmraid)(const Dmraid &)=NULL, bool(*CheckDmraidCo)(const DmraidCo &)=NULL) const |
| ConstDmraidIterator | dmrBegin (bool(*CheckDmraidCo)(const DmraidCo &)) const |
| ConstDmraidIterator | dmrBegin (bool(*CheckDmraid)(const Dmraid &)=NULL, bool(*CheckDmraidCo)(const DmraidCo &)=NULL) const |
| ConstDmraidIterator | dmrEnd (bool(*CheckDmraidCo)(const DmraidCo &)) const |
| ConstDmraidIterator | dmrEnd (bool(*CheckDmraid)(const Dmraid &)=NULL, bool(*CheckDmraidCo)(const DmraidCo &)=NULL) const |
| template<class Pred> | |
| DmraidCondIPair< Pred >::type | dmrCondPair (const Pred &p) const |
| template<class Pred> | |
| ConstDmraidI< Pred >::type | dmrCondBegin (const Pred &p) const |
| template<class Pred> | |
| ConstDmraidI< Pred >::type | dmrCondEnd (const Pred &p) const |
Static Public Member Functions | |
| static bool | notDeleted (const Container &d) |
| static bool | isDmPart (const Container &d) |
| static void | initDefaultLogger () |
| static const string & | arch () |
| static const string & | sysfsDir () |
| static bool | isPPCMac () |
| static bool | isPPCPegasos () |
| static bool | testFilesEqual (const string &n1, const string &n2) |
| static bool | getNoEv () |
| static void | setCallbackProgressBarYcp (storage::CallbackProgressBar pfnc) |
| static storage::CallbackProgressBar | getCallbackProgressBarYcp () |
| static void | setCallbackShowInstallInfoYcp (storage::CallbackShowInstallInfo pfnc) |
| static storage::CallbackShowInstallInfo | getCallbackShowInstallInfoYcp () |
| static void | setCallbackInfoPopupYcp (storage::CallbackInfoPopup pfnc) |
| static storage::CallbackInfoPopup | getCallbackInfoPopupYcp () |
| static void | setCallbackYesNoPopupYcp (storage::CallbackYesNoPopup pfnc) |
| static storage::CallbackYesNoPopup | getCallbackYesNoPopupYcp () |
Static Public Attributes | |
| static SkipDeleted | SkipDel |
Protected Types | |
| typedef std::list< Container * > | CCont |
| typedef CCont::iterator | CIter |
| typedef CCont::const_iterator | CCIter |
| typedef CheckFnc< const Container > | CheckFncCont |
| typedef CheckerIterator < CheckFncCont, ConstContainerPI< CheckFncCont > ::type, CCIter, Container > | ConstContPIterator |
| typedef CheckerIterator < CheckFncCont, ContainerPI < CheckFncCont >::type, CIter, Container > | ContPIterator |
| typedef DerefIterator < ContPIterator, Container > | ContIterator |
| typedef IterPair< ContIterator > | CPair |
| typedef CastCheckIterator < CCIter, storage::DISK, const Disk * > | ContainerCDiskIter |
| typedef CastCheckIterator < CIter, storage::DISK, Disk * > | ContainerDiskIter |
| typedef CheckFnc< const Disk > | CheckFncDisk |
| typedef CheckerIterator < CheckFncDisk, ConstDiskPI < CheckFncDisk >::type, ContainerCDiskIter, Disk > | ConstDiskPIterator |
| typedef CheckerIterator < CheckFncDisk, DiskPI < CheckFncDisk >::type, ContainerDiskIter, Disk > | DiskPIterator |
| typedef DerefIterator < DiskPIterator, Disk > | DiskIterator |
| typedef IterPair< DiskIterator > | DiskPair |
| typedef CastCheckIterator < CCIter, storage::LVM, const LvmVg * > | ContainerCLvmVgIter |
| typedef CastCheckIterator < CIter, storage::LVM, LvmVg * > | ContainerLvmVgIter |
| typedef CheckFnc< const LvmVg > | CheckFncLvmVg |
| typedef CheckerIterator < CheckFncLvmVg, ConstLvmVgPI < CheckFncLvmVg >::type, ContainerCLvmVgIter, LvmVg > | ConstLvmVgPIterator |
| typedef CheckerIterator < CheckFncLvmVg, LvmVgPI < CheckFncLvmVg >::type, ContainerLvmVgIter, LvmVg > | LvmVgPIterator |
| typedef DerefIterator < LvmVgPIterator, LvmVg > | LvmVgIterator |
| typedef IterPair< LvmVgIterator > | LvmVgPair |
| typedef CastCheckIterator < CCIter, storage::EVMS, const EvmsCo * > | ContainerCEvmsIter |
| typedef CastCheckIterator < CIter, storage::EVMS, EvmsCo * > | ContainerEvmsIter |
| typedef CheckFnc< const EvmsCo > | CheckFncEvmsCo |
| typedef CheckerIterator < CheckFncEvmsCo, ConstEvmsCoPI< CheckFncEvmsCo > ::type, ContainerCEvmsIter, EvmsCo > | ConstEvmsCoPIterator |
| typedef CheckerIterator < CheckFncEvmsCo, EvmsCoPI < CheckFncEvmsCo >::type, ContainerEvmsIter, EvmsCo > | EvmsCoPIterator |
| typedef DerefIterator < EvmsCoPIterator, EvmsCo > | EvmsCoIterator |
| typedef IterPair< EvmsCoIterator > | EvmsCoPair |
| typedef CastCheckFncIterator < CCIter, isDmPart, const DmPartCo * > | ContainerCDmPartIter |
| typedef CastCheckFncIterator < CIter, isDmPart, DmPartCo * > | ContainerDmPartIter |
| typedef CheckFnc< const DmPartCo > | CheckFncDmPartCo |
| typedef CheckerIterator < CheckFncDmPartCo, ConstDmPartCoPI < CheckFncDmPartCo >::type, ContainerCDmPartIter, DmPartCo > | ConstDmPartCoPIterator |
| typedef CheckerIterator < CheckFncDmPartCo, DmPartCoPI < CheckFncDmPartCo >::type, ContainerDmPartIter, DmPartCo > | DmPartCoPIterator |
| typedef DerefIterator < DmPartCoPIterator, DmPartCo > | DmPartCoIterator |
| typedef IterPair < DmPartCoIterator > | DmPartCoPair |
| typedef CastCheckIterator < CCIter, storage::DMRAID, const DmraidCo * > | ContainerCDmraidIter |
| typedef CastCheckIterator < CIter, storage::DMRAID, DmraidCo * > | ContainerDmraidIter |
| typedef CheckFnc< const DmraidCo > | CheckFncDmraidCo |
| typedef CheckerIterator < CheckFncDmraidCo, ConstDmraidCoPI < CheckFncDmraidCo >::type, ContainerCDmraidIter, DmraidCo > | ConstDmraidCoPIterator |
| typedef CheckerIterator < CheckFncDmraidCo, DmraidCoPI < CheckFncDmraidCo >::type, ContainerDmraidIter, DmraidCo > | DmraidCoPIterator |
| typedef DerefIterator < DmraidCoPIterator, DmraidCo > | DmraidCoIterator |
| typedef IterPair < DmraidCoIterator > | DmraidCoPair |
| typedef ListListIterator < Container::ConstPlainIterator, ConstContIterator > | ConstVolInter |
| typedef CheckFnc< const Volume > | CheckFncVol |
| typedef CheckerIterator < CheckFncVol, ConstVolumePI < CheckFncVol >::type, ConstVolInter, Volume > | ConstVolPIterator |
| typedef ListListIterator < Container::PlainIterator, ContIterator > | VolPart |
| typedef CheckerIterator < CheckFncVol, VolumeI < CheckFncVol >::type, VolPart, Volume > | VolPIterator |
| typedef DerefIterator < VolPIterator, Volume > | VolIterator |
| typedef IterPair< VolIterator > | VPair |
| typedef ListListIterator < Container::ConstPlainIterator, ConstDiskIterator > | ConstPartInter |
| typedef CastIterator < ConstPartInter, Partition * > | ConstPartInter2 |
| typedef CheckFnc< const Partition > | CheckFncPartition |
| typedef CheckerIterator < CheckFncPartition, ConstPartitionPI < CheckFncPartition >::type, ConstPartInter2, Partition > | ConstPartPIterator |
| typedef ListListIterator < Container::ConstPlainIterator, ConstLvmVgIterator > | ConstLvmLvInter |
| typedef CastIterator < ConstLvmLvInter, LvmLv * > | ConstLvmLvInter2 |
| typedef CheckFnc< const LvmLv > | CheckFncLvmLv |
| typedef CheckerIterator < CheckFncLvmLv, ConstLvmLvPI < CheckFncLvmLv >::type, ConstLvmLvInter2, LvmLv > | ConstLvmLvPIterator |
| typedef ListListIterator < Container::ConstPlainIterator, ConstEvmsCoIterator > | ConstEvmsInter |
| typedef CastIterator < ConstEvmsInter, Evms * > | ConstEvmsInter2 |
| typedef CheckFnc< const Evms > | CheckFncEvms |
| typedef CheckerIterator < CheckFncEvms, ConstEvmsPI < CheckFncEvms >::type, ConstEvmsInter2, Evms > | ConstEvmsPIterator |
| typedef CastIterator < ConstVolInter, Md * > | ConstMdInter |
| typedef CheckFnc< const Md > | CheckFncMd |
| typedef CheckerIterator < CheckFncMd, ConstMdPI < CheckFncMd >::type, ConstMdInter, Md > | ConstMdPIterator |
| typedef CastIterator < ConstVolInter, Loop * > | ConstLoopInter |
| typedef CheckFnc< const Loop > | CheckFncLoop |
| typedef CheckerIterator < CheckFncLoop, ConstLoopPI < CheckFncLoop >::type, ConstLoopInter, Loop > | ConstLoopPIterator |
| typedef CastIterator < ConstVolInter, Nfs * > | ConstNfsInter |
| typedef CheckFnc< const Nfs > | CheckFncNfs |
| typedef CheckerIterator < CheckFncNfs, ConstNfsPI < CheckFncNfs >::type, ConstNfsInter, Nfs > | ConstNfsPIterator |
| typedef CastIterator < ConstVolInter, Dm * > | ConstDmInter |
| typedef CheckFnc< const Dm > | CheckFncDm |
| typedef CheckerIterator < CheckFncDm, ConstDmPI < CheckFncDm >::type, ConstDmInter, Dm > | ConstDmPIterator |
| typedef ListListIterator < Container::ConstPlainIterator, ConstDmraidCoIterator > | ConstDmraidInter |
| typedef CastIterator < ConstDmraidInter, Dmraid * > | ConstDmraidInter2 |
| typedef CheckFnc< const Dmraid > | CheckFncDmraid |
| typedef CheckerIterator < CheckFncDmraid, ConstDmraidPI< CheckFncDmraid > ::type, ConstDmraidInter2, Dmraid > | ConstDmraidPIterator |
Protected Member Functions | |
| CPair | cPair (bool(*CheckFnc)(const Container &)=NULL) |
| ContIterator | cBegin (bool(*CheckFnc)(const Container &)=NULL) |
| ContIterator | cEnd (bool(*CheckFnc)(const Container &)=NULL) |
| DiskPair | dPair (bool(*CheckFnc)(const Disk &)=NULL) |
| DiskIterator | dBegin (bool(*CheckFnc)(const Disk &)=NULL) |
| DiskIterator | dEnd (bool(*CheckFnc)(const Disk &)=NULL) |
| LvmVgPair | lvgPair (bool(*CheckFnc)(const LvmVg &)=NULL) |
| LvmVgIterator | lvgBegin (bool(*CheckFnc)(const LvmVg &)=NULL) |
| LvmVgIterator | lvgEnd (bool(*CheckFnc)(const LvmVg &)=NULL) |
| EvmsCoPair | evCoPair (bool(*CheckFnc)(const EvmsCo &)=NULL) |
| EvmsCoIterator | evCoBegin (bool(*CheckFnc)(const EvmsCo &)=NULL) |
| EvmsCoIterator | evCoEnd (bool(*CheckFnc)(const EvmsCo &)=NULL) |
| DmPartCoPair | dmpCoPair (bool(*CheckFnc)(const DmPartCo &)=NULL) |
| DmPartCoIterator | dmpCoBegin (bool(*CheckFnc)(const DmPartCo &)=NULL) |
| DmPartCoIterator | dmpCoEnd (bool(*CheckFnc)(const DmPartCo &)=NULL) |
| DmraidCoPair | dmrCoPair (bool(*CheckFnc)(const DmraidCo &)=NULL) |
| DmraidCoIterator | dmrCoBegin (bool(*CheckFnc)(const DmraidCo &)=NULL) |
| DmraidCoIterator | dmrCoEnd (bool(*CheckFnc)(const DmraidCo &)=NULL) |
| VPair | vPair (bool(*CheckCnt)(const Container &)) |
| VPair | vPair (bool(*CheckVol)(const Volume &)=NULL, bool(*CheckCnt)(const Container &)=NULL) |
| VolIterator | vBegin (bool(*CheckCnt)(const Container &)) |
| VolIterator | vBegin (bool(*CheckVol)(const Volume &)=NULL, bool(*CheckCnt)(const Container &)=NULL) |
| VolIterator | vEnd (bool(*CheckCnt)(const Container &)) |
| VolIterator | vEnd (bool(*CheckVol)(const Volume &)=NULL, bool(*CheckCnt)(const Container &)=NULL) |
| void | initialize () |
| void | detectDisks (ProcPart &ppart) |
| void | autodetectDisks (ProcPart &ppart) |
| void | detectMultipath () |
| void | detectMds () |
| void | detectLoops (ProcPart &ppart) |
| void | detectNfs (ProcMounts &mounts) |
| void | detectLvmVgs () |
| void | detectEvms () |
| void | detectDmraid (ProcPart &ppart) |
| void | detectDm (ProcPart &ppart) |
| void | initDisk (DiskData &data, ProcPart &pp) |
| void | detectFsData (const VolIterator &begin, const VolIterator &end, ProcMounts &mounts) |
| void | detectFsDataTestMode (const string &file, const VolIterator &begin, const VolIterator &end) |
| int | resizeVolume (const string &device, unsigned long long newSizeMb, bool ignore_fs) |
| int | resizePartition (const string &device, unsigned long sizeCyl, bool ignore_fs) |
| void | addToList (Container *e) |
| DiskIterator | findDisk (const string &disk) |
| DiskIterator | findDiskId (const string &id) |
| DiskIterator | findDiskPath (const string &path) |
| LvmVgIterator | findLvmVg (const string &name) |
| EvmsCoIterator | findEvmsCo (const string &name) |
| DmraidCoIterator | findDmraidCo (const string &name) |
| DmPartCoIterator | findDmPartCo (const string &name) |
| bool | findVolume (const string &device, ContIterator &c, VolIterator &v) |
| bool | findVolume (const string &device, VolIterator &v, bool also_del=false) |
| bool | findContainer (const string &device, ContIterator &c) |
| bool | haveMd (MdCo *&md) |
| bool | haveNfs (NfsCo *&co) |
| bool | haveLoop (LoopCo *&loop) |
| bool | haveEvms () |
| void | handleEvmsRemoveDevice (const Disk *disk, const string &d, bool rename) |
| void | handleEvmsCreateDevice (const string &disk, const string &dev, bool extended=false) |
| int | removeContainer (Container *val, bool call_del=true) |
| void | logVolumes (const string &Dir) |
| int | commitPair (CPair &p, bool(*fnc)(const Container &)) |
| void | sortCommitLists (storage::CommitStage stage, std::list< Container * > &co, std::list< Volume * > &vl, std::list< storage::commitAction * > &todo) |
| bool | ignoreError (std::list< commitAction * >::iterator i, std::list< commitAction * > &al) |
| void | evmsActivateDevices () |
| string | backupStates () const |
| void | detectObjects () |
| void | deleteClist (CCont &co) |
| void | deleteBackups () |
| void | setFreeInfo (const string &device, unsigned long long df_free, unsigned long long resize_free, unsigned long long used, bool win, bool efi, bool resize_ok) |
| bool | getFreeInf (const string &device, unsigned long long &df_free, unsigned long long &resize_free, unsigned long long &used, bool &win, bool &efi, bool &resize_ok) |
Static Protected Member Functions | |
| static bool | isMd (const Container &d) |
| static bool | isLoop (const Container &d) |
| static bool | isNfs (const Container &d) |
| static bool | isDm (const Container &d) |
| static void | detectArch () |
Protected Attributes | |
| bool | readonly |
| bool | testmode |
| bool | inst_sys |
| bool | cache |
| bool | initialized |
| bool | autodetect |
| bool | recursiveRemove |
| bool | zeroNewPartitions |
| MountByType | defaultMountBy |
| bool | detectMounted |
| bool | root_mounted |
| string | testdir |
| string | tempdir |
| string | rootprefix |
| string | logdir |
| unsigned | hald_pid |
| CCont | cont |
| EtcFstab * | fstab |
| storage::CallbackProgressBar | progress_bar_cb |
| storage::CallbackShowInstallInfo | install_info_cb |
| storage::CallbackInfoPopup | info_popup_cb |
| storage::CallbackYesNoPopup | yesno_popup_cb |
| unsigned | max_log_num |
| string | lastAction |
| string | extendedError |
| std::map< string, CCont > | backups |
| std::map< string, FreeInfo > | freeInfo |
| std::list< std::pair< string, string > > | infoPopupTxts |
Static Protected Attributes | |
| static string | proc_arch |
| static string | sysfs_dir = "/sys/block" |
| static bool | is_ppc_mac = false |
| static bool | is_ppc_pegasos = false |
| static bool | no_evms |
| static storage::CallbackProgressBar | progress_bar_cb_ycp |
| static storage::CallbackShowInstallInfo | install_info_cb_ycp |
| static storage::CallbackInfoPopup | info_popup_cb_ycp |
| static storage::CallbackYesNoPopup | yesno_popup_cb_ycp |
Friends | |
| std::ostream & | operator<< (std::ostream &s, Storage &v) |
Classes | |
| struct | ConstContainerI |
| struct | ConstContainerPI |
| struct | ConstDiskI |
| struct | ConstDiskPI |
| struct | ConstDmI |
| struct | ConstDmPartCoI |
| struct | ConstDmPartCoPI |
| struct | ConstDmPI |
| struct | ConstDmraidCoI |
| struct | ConstDmraidCoPI |
| struct | ConstDmraidI |
| struct | ConstDmraidPI |
| struct | ConstEvmsCoI |
| struct | ConstEvmsCoPI |
| struct | ConstEvmsI |
| struct | ConstEvmsPI |
| struct | ConstLoopI |
| struct | ConstLoopPI |
| struct | ConstLvmLvI |
| struct | ConstLvmLvPI |
| struct | ConstLvmVgI |
| struct | ConstLvmVgPI |
| struct | ConstMdI |
| struct | ConstMdPI |
| struct | ConstNfsI |
| struct | ConstNfsPI |
| struct | ConstPartitionI |
| struct | ConstPartitionPI |
| struct | ConstVolumeI |
| struct | ConstVolumePI |
| struct | ContainerI |
| struct | ContainerPI |
| struct | ContCondIPair |
| struct | DiskCondIPair |
| struct | DiskI |
| struct | DiskPI |
| struct | DmCondIPair |
| struct | DmPartCoCondIPair |
| struct | DmPartCoI |
| struct | DmPartCoPI |
| struct | DmraidCoCondIPair |
| struct | DmraidCoI |
| struct | DmraidCondIPair |
| struct | DmraidCoPI |
| struct | EvmsCoCondIPair |
| struct | EvmsCoI |
| struct | EvmsCondIPair |
| struct | EvmsCoPI |
| struct | FreeInfo |
| struct | LoopCondIPair |
| struct | LvmLvCondIPair |
| struct | LvmVgCondIPair |
| struct | LvmVgI |
| struct | LvmVgPI |
| struct | MdCondIPair |
| struct | NfsCondIPair |
| struct | PartCondIPair |
| struct | SkipDeleted |
| struct | VolCondIPair |
| struct | VolumeI |
typedef std::list<Container*> storage::Storage::CCont [protected] |
typedef CCont::iterator storage::Storage::CIter [protected] |
typedef CCont::const_iterator storage::Storage::CCIter [protected] |
typedef CheckFnc<const Container> storage::Storage::CheckFncCont [protected] |
typedef CheckerIterator< CheckFncCont, ConstContainerPI<CheckFncCont>::type, CCIter, Container > storage::Storage::ConstContPIterator [protected] |
typedef CheckerIterator< CheckFncCont, ContainerPI<CheckFncCont>::type, CIter, Container > storage::Storage::ContPIterator [protected] |
typedef DerefIterator<ContPIterator,Container> storage::Storage::ContIterator [protected] |
typedef IterPair<ContIterator> storage::Storage::CPair [protected] |
typedef CastCheckIterator<CCIter, storage::DISK, const Disk *> storage::Storage::ContainerCDiskIter [protected] |
typedef CastCheckIterator<CIter, storage::DISK, Disk *> storage::Storage::ContainerDiskIter [protected] |
typedef CheckFnc<const Disk> storage::Storage::CheckFncDisk [protected] |
typedef CheckerIterator< CheckFncDisk, ConstDiskPI<CheckFncDisk>::type, ContainerCDiskIter, Disk > storage::Storage::ConstDiskPIterator [protected] |
typedef CheckerIterator< CheckFncDisk, DiskPI<CheckFncDisk>::type, ContainerDiskIter, Disk > storage::Storage::DiskPIterator [protected] |
typedef DerefIterator<DiskPIterator,Disk> storage::Storage::DiskIterator [protected] |
typedef IterPair<DiskIterator> storage::Storage::DiskPair [protected] |
| typedef DerefIterator<ConstDiskPIterator,const Disk> storage::Storage::ConstDiskIterator |
typedef CastCheckIterator<CCIter, storage::LVM, const LvmVg *> storage::Storage::ContainerCLvmVgIter [protected] |
typedef CastCheckIterator<CIter, storage::LVM, LvmVg *> storage::Storage::ContainerLvmVgIter [protected] |
typedef CheckFnc<const LvmVg> storage::Storage::CheckFncLvmVg [protected] |
typedef CheckerIterator< CheckFncLvmVg, ConstLvmVgPI<CheckFncLvmVg>::type, ContainerCLvmVgIter, LvmVg > storage::Storage::ConstLvmVgPIterator [protected] |
typedef CheckerIterator< CheckFncLvmVg, LvmVgPI<CheckFncLvmVg>::type, ContainerLvmVgIter, LvmVg > storage::Storage::LvmVgPIterator [protected] |
typedef DerefIterator<LvmVgPIterator,LvmVg> storage::Storage::LvmVgIterator [protected] |
typedef IterPair<LvmVgIterator> storage::Storage::LvmVgPair [protected] |
typedef CastCheckIterator<CCIter, storage::EVMS, const EvmsCo *> storage::Storage::ContainerCEvmsIter [protected] |
typedef CastCheckIterator<CIter, storage::EVMS, EvmsCo *> storage::Storage::ContainerEvmsIter [protected] |
typedef CheckFnc<const EvmsCo> storage::Storage::CheckFncEvmsCo [protected] |
typedef CheckerIterator< CheckFncEvmsCo, ConstEvmsCoPI<CheckFncEvmsCo>::type, ContainerCEvmsIter, EvmsCo > storage::Storage::ConstEvmsCoPIterator [protected] |
typedef CheckerIterator< CheckFncEvmsCo, EvmsCoPI<CheckFncEvmsCo>::type, ContainerEvmsIter, EvmsCo > storage::Storage::EvmsCoPIterator [protected] |
typedef DerefIterator<EvmsCoPIterator,EvmsCo> storage::Storage::EvmsCoIterator [protected] |
typedef IterPair<EvmsCoIterator> storage::Storage::EvmsCoPair [protected] |
typedef CastCheckFncIterator<CCIter, isDmPart, const DmPartCo *> storage::Storage::ContainerCDmPartIter [protected] |
typedef CastCheckFncIterator<CIter, isDmPart, DmPartCo *> storage::Storage::ContainerDmPartIter [protected] |
typedef CheckFnc<const DmPartCo> storage::Storage::CheckFncDmPartCo [protected] |
typedef CheckerIterator< CheckFncDmPartCo, ConstDmPartCoPI<CheckFncDmPartCo>::type, ContainerCDmPartIter, DmPartCo > storage::Storage::ConstDmPartCoPIterator [protected] |
typedef CheckerIterator< CheckFncDmPartCo, DmPartCoPI<CheckFncDmPartCo>::type, ContainerDmPartIter, DmPartCo > storage::Storage::DmPartCoPIterator [protected] |
typedef DerefIterator<DmPartCoPIterator,DmPartCo> storage::Storage::DmPartCoIterator [protected] |
typedef IterPair<DmPartCoIterator> storage::Storage::DmPartCoPair [protected] |
| typedef DerefIterator<ConstDmPartCoPIterator,const DmPartCo> storage::Storage::ConstDmPartCoIterator |
typedef CastCheckIterator<CCIter, storage::DMRAID, const DmraidCo *> storage::Storage::ContainerCDmraidIter [protected] |
typedef CastCheckIterator<CIter, storage::DMRAID, DmraidCo *> storage::Storage::ContainerDmraidIter [protected] |
typedef CheckFnc<const DmraidCo> storage::Storage::CheckFncDmraidCo [protected] |
typedef CheckerIterator< CheckFncDmraidCo, ConstDmraidCoPI<CheckFncDmraidCo>::type, ContainerCDmraidIter, DmraidCo > storage::Storage::ConstDmraidCoPIterator [protected] |
typedef CheckerIterator< CheckFncDmraidCo, DmraidCoPI<CheckFncDmraidCo>::type, ContainerDmraidIter, DmraidCo > storage::Storage::DmraidCoPIterator [protected] |
typedef DerefIterator<DmraidCoPIterator,DmraidCo> storage::Storage::DmraidCoIterator [protected] |
typedef IterPair<DmraidCoIterator> storage::Storage::DmraidCoPair [protected] |
| typedef DerefIterator<ConstDmraidCoPIterator,const DmraidCo> storage::Storage::ConstDmraidCoIterator |
typedef ListListIterator<Container::ConstPlainIterator, ConstContIterator> storage::Storage::ConstVolInter [protected] |
typedef CheckFnc<const Volume> storage::Storage::CheckFncVol [protected] |
typedef CheckerIterator< CheckFncVol, ConstVolumePI<CheckFncVol>::type, ConstVolInter, Volume > storage::Storage::ConstVolPIterator [protected] |
typedef ListListIterator<Container::PlainIterator, ContIterator> storage::Storage::VolPart [protected] |
typedef CheckerIterator< CheckFncVol, VolumeI<CheckFncVol>::type, VolPart, Volume > storage::Storage::VolPIterator [protected] |
typedef DerefIterator<VolPIterator,Volume> storage::Storage::VolIterator [protected] |
typedef IterPair<VolIterator> storage::Storage::VPair [protected] |
| typedef DerefIterator<ConstVolPIterator,const Volume> storage::Storage::ConstVolIterator |
typedef ListListIterator<Container::ConstPlainIterator, ConstDiskIterator> storage::Storage::ConstPartInter [protected] |
typedef CastIterator<ConstPartInter, Partition *> storage::Storage::ConstPartInter2 [protected] |
typedef CheckFnc<const Partition> storage::Storage::CheckFncPartition [protected] |
typedef CheckerIterator< CheckFncPartition, ConstPartitionPI<CheckFncPartition>::type, ConstPartInter2, Partition > storage::Storage::ConstPartPIterator [protected] |
| typedef DerefIterator<ConstPartPIterator, const Partition> storage::Storage::ConstPartIterator |
typedef ListListIterator<Container::ConstPlainIterator, ConstLvmVgIterator> storage::Storage::ConstLvmLvInter [protected] |
typedef CastIterator<ConstLvmLvInter, LvmLv *> storage::Storage::ConstLvmLvInter2 [protected] |
typedef CheckFnc<const LvmLv> storage::Storage::CheckFncLvmLv [protected] |
typedef CheckerIterator< CheckFncLvmLv, ConstLvmLvPI<CheckFncLvmLv>::type, ConstLvmLvInter2, LvmLv > storage::Storage::ConstLvmLvPIterator [protected] |
| typedef DerefIterator<ConstLvmLvPIterator, const LvmLv> storage::Storage::ConstLvmLvIterator |
typedef ListListIterator<Container::ConstPlainIterator, ConstEvmsCoIterator> storage::Storage::ConstEvmsInter [protected] |
typedef CastIterator<ConstEvmsInter, Evms *> storage::Storage::ConstEvmsInter2 [protected] |
typedef CheckFnc<const Evms> storage::Storage::CheckFncEvms [protected] |
typedef CheckerIterator< CheckFncEvms, ConstEvmsPI<CheckFncEvms>::type, ConstEvmsInter2, Evms > storage::Storage::ConstEvmsPIterator [protected] |
| typedef DerefIterator<ConstEvmsPIterator, const Evms> storage::Storage::ConstEvmsIterator |
typedef CastIterator<ConstVolInter, Md *> storage::Storage::ConstMdInter [protected] |
typedef CheckFnc<const Md> storage::Storage::CheckFncMd [protected] |
typedef CheckerIterator< CheckFncMd, ConstMdPI<CheckFncMd>::type, ConstMdInter, Md > storage::Storage::ConstMdPIterator [protected] |
| typedef DerefIterator<ConstMdPIterator, const Md> storage::Storage::ConstMdIterator |
typedef CastIterator<ConstVolInter, Loop *> storage::Storage::ConstLoopInter [protected] |
typedef CheckFnc<const Loop> storage::Storage::CheckFncLoop [protected] |
typedef CheckerIterator< CheckFncLoop, ConstLoopPI<CheckFncLoop>::type, ConstLoopInter, Loop > storage::Storage::ConstLoopPIterator [protected] |
| typedef DerefIterator<ConstLoopPIterator, const Loop> storage::Storage::ConstLoopIterator |
typedef CastIterator<ConstVolInter, Nfs *> storage::Storage::ConstNfsInter [protected] |
typedef CheckFnc<const Nfs> storage::Storage::CheckFncNfs [protected] |
typedef CheckerIterator< CheckFncNfs, ConstNfsPI<CheckFncNfs>::type, ConstNfsInter, Nfs > storage::Storage::ConstNfsPIterator [protected] |
| typedef DerefIterator<ConstNfsPIterator, const Nfs> storage::Storage::ConstNfsIterator |
typedef CastIterator<ConstVolInter, Dm *> storage::Storage::ConstDmInter [protected] |
typedef CheckFnc<const Dm> storage::Storage::CheckFncDm [protected] |
typedef CheckerIterator< CheckFncDm, ConstDmPI<CheckFncDm>::type, ConstDmInter, Dm > storage::Storage::ConstDmPIterator [protected] |
| typedef DerefIterator<ConstDmPIterator, const Dm> storage::Storage::ConstDmIterator |
typedef ListListIterator<Container::ConstPlainIterator, ConstDmraidCoIterator> storage::Storage::ConstDmraidInter [protected] |
typedef CastIterator<ConstDmraidInter, Dmraid *> storage::Storage::ConstDmraidInter2 [protected] |
typedef CheckFnc<const Dmraid> storage::Storage::CheckFncDmraid [protected] |
typedef CheckerIterator< CheckFncDmraid, ConstDmraidPI<CheckFncDmraid>::type, ConstDmraidInter2, Dmraid > storage::Storage::ConstDmraidPIterator [protected] |
| typedef DerefIterator<ConstDmraidPIterator, const Dmraid> storage::Storage::ConstDmraidIterator |
| Storage::Storage | ( | bool | ronly = false, |
|
| bool | testmode = false, |
|||
| bool | autodetect = true | |||
| ) |
References autodetect, defaultMountBy, detectMounted, getline(), hald_pid, info_popup_cb, inst_sys, install_info_cb, logdir, max_log_num, storage::MOUNTBY_ID, PACKAGE_STRING, progress_bar_cb, recursiveRemove, root_mounted, testmode, y2mil, y2milestone, yesno_popup_cb, and zeroNewPartitions.
Referenced by storage::createDefaultStorageInterface(), and storage::createStorageInterface().
| Storage::~Storage | ( | ) | [virtual] |
References cont, deleteBackups(), deleteClist(), storage::SystemCmd::execute(), logdir, logVolumes(), max_log_num, storage::SystemCmd::retcode(), tempdir, y2error, and y2milestone.
| static bool storage::Storage::isMd | ( | const Container & | d | ) | [inline, static, protected] |
References storage::MD, and storage::Container::type().
Referenced by mdBegin(), mdCondBegin(), mdCondEnd(), and mdEnd().
| static bool storage::Storage::isLoop | ( | const Container & | d | ) | [inline, static, protected] |
References storage::LOOP, and storage::Container::type().
Referenced by commit(), loopBegin(), loopCondBegin(), loopCondEnd(), and loopEnd().
| static bool storage::Storage::isNfs | ( | const Container & | d | ) | [inline, static, protected] |
References storage::NFSC, and storage::Container::type().
Referenced by nfsBegin(), nfsCondBegin(), nfsCondEnd(), and nfsEnd().
| static bool storage::Storage::isDm | ( | const Container & | d | ) | [inline, static, protected] |
References storage::DM, and storage::Container::type().
Referenced by dmBegin(), dmCondBegin(), dmCondEnd(), and dmEnd().
| static bool storage::Storage::notDeleted | ( | const Container & | d | ) | [inline, static] |
References storage::Container::deleted().
| static bool storage::Storage::isDmPart | ( | const Container & | d | ) | [inline, static] |
References storage::DMRAID, and storage::Container::type().
| void Storage::initDefaultLogger | ( | ) | [static] |
References storage::createLogger().
| bool storage::Storage::test | ( | ) | const [inline] |
References testmode.
Referenced by detectDisks(), detectDm(), detectDmraid(), detectEvms(), detectLoops(), detectLvmVgs(), detectMds(), detectNfs(), storage::Volume::doFormat(), and storage::Volume::doMount().
| bool storage::Storage::instsys | ( | ) | const [inline] |
| void storage::Storage::setCacheChanges | ( | bool | cache = true |
) | [inline, virtual] |
With the function setCacheChanges you can turn the caching mode on and off. Turning of caching mode will cause all changes done so far to be committed upto the next modifying function.
Implements storage::StorageInterface.
References cache.
Referenced by initialize().
| bool storage::Storage::isCacheChanges | ( | ) | const [inline, virtual] |
Query the caching mode.
Implements storage::StorageInterface.
References cache.
Referenced by checkCache().
| void storage::Storage::assertInit | ( | ) | [inline] |
References initialize(), and initialized.
Referenced by addFstabEntry(), addFstabOptions(), addNfsDevice(), changeDescText(), changeEvmsStripeCount(), changeEvmsStripeSize(), changeFormatVolume(), changeFstabOptions(), changeLabelVolume(), changeLvStripeCount(), changeLvStripeSize(), changeMdChunk(), changeMdParity(), changeMdType(), changeMkfsOptVolume(), changeMountBy(), changeMountPoint(), changePartitionId(), changeTunefsOptVolume(), checkBackupState(), checkDeviceMounted(), checkMd(), checkNfsDevice(), commit(), createBackupState(), createEvmsContainer(), createEvmsVolume(), createFileLoop(), createLvmLv(), createLvmVg(), createMd(), createMdAny(), createPartition(), createPartitionAny(), createPartitionKb(), createPartitionMax(), cylinderToKb(), destroyPartitionTable(), eraseLabelVolume(), evmsActivate(), extendEvmsContainer(), extendLvmVg(), extendMd(), findDisk(), findDiskId(), findDiskPath(), findDmPartCo(), findDmraidCo(), findEvmsCo(), findLvmVg(), findVolume(), forgetChangePartitionId(), forgetCryptPassword(), forgetResizeVolume(), getContainers(), getContDiskInfo(), getContDmraidCoInfo(), getContEvmsCoInfo(), getContLvmVgInfo(), getContVolInfo(), getCrypt(), getCryptPassword(), getDiskInfo(), getDmInfo(), getDmraidCoInfo(), getDmraidInfo(), getEvmsCoInfo(), getEvmsInfo(), getFreeInfo(), getFstabOptions(), getIgnoreFstab(), getLoopInfo(), getLvmLvInfo(), getLvmVgInfo(), getMdInfo(), getMountBy(), getMountPoint(), getNfsInfo(), getPartitionInfo(), getVolumes(), initializeDisk(), kbToCylinder(), modifyEvmsContainer(), modifyFileLoop(), mountDev(), nextFreePartition(), readFstab(), removeBackupState(), removeDmraid(), removeEvmsContainer(), removeEvmsVolume(), removeFileLoop(), removeFstabOptions(), removeLvmLv(), removeLvmVg(), removeMd(), removePartition(), removeVolume(), resizePartition(), resizeVolume(), restoreBackupState(), setCryptPassword(), setCryptType(), setIgnoreFstab(), shrinkEvmsContainer(), shrinkLvmVg(), shrinkMd(), umountDevice(), and updatePartitionArea().
| void Storage::rescanEverything | ( | ) | [virtual] |
Rescan all disks. All currently detected objects are forgotten and a new scan for all type of objects (disks, LVM, EVMS, MD) is initiated. This function makes sense to be called after something outside of libstorage changed disk layout or created storage objects. Any changes already cached are lost.
Implements storage::StorageInterface.
References cont, deleteClist(), and detectObjects().
| int Storage::checkCache | ( | ) |
References commit(), and isCacheChanges().
Referenced by addFstabOptions(), addNfsDevice(), changeDescText(), changeEvmsStripeCount(), changeEvmsStripeSize(), changeFormatVolume(), changeFstabOptions(), changeLabelVolume(), changeLvStripeCount(), changeLvStripeSize(), changeMdChunk(), changeMdParity(), changeMdType(), changeMkfsOptVolume(), changeMountBy(), changeMountPoint(), changePartitionId(), changeTunefsOptVolume(), createEvmsContainer(), createEvmsVolume(), createFileLoop(), createLvmLv(), createLvmVg(), createMd(), createMdAny(), createPartition(), destroyPartitionTable(), extendEvmsContainer(), extendLvmVg(), extendMd(), forgetChangePartitionId(), forgetCryptPassword(), forgetResizeVolume(), getCryptPassword(), initializeDisk(), modifyEvmsContainer(), modifyFileLoop(), removeEvmsContainer(), removeEvmsVolume(), removeFileLoop(), removeFstabOptions(), removeLvmLv(), removeLvmVg(), removeMd(), removePartition(), removeVolume(), resizePartition(), resizeVolume(), setCryptPassword(), setCryptType(), setIgnoreFstab(), shrinkEvmsContainer(), shrinkLvmVg(), shrinkMd(), and updatePartitionArea().
| const string& storage::Storage::tDir | ( | ) | const [inline] |
References testdir.
| const string& storage::Storage::root | ( | ) | const [inline] |
| string Storage::prependRoot | ( | const string & | mp | ) | const |
| const string & Storage::tmpDir | ( | ) | const |
| static const string& storage::Storage::arch | ( | ) | [inline, static] |
References proc_arch.
Referenced by storage::Volume::bootMount(), storage::Disk::defaultLabel(), storage::Volume::doFormat(), and evmsActivateDevices().
| static const string& storage::Storage::sysfsDir | ( | ) | [inline, static] |
References sysfs_dir.
Referenced by storage::Volume::getFilesysSysfsPath(), storage::Volume::sysfsPath(), and storage::Dm::sysfsPath().
| static bool storage::Storage::isPPCMac | ( | ) | [inline, static] |
| static bool storage::Storage::isPPCPegasos | ( | ) | [inline, static] |
| EtcFstab* storage::Storage::getFstab | ( | ) | [inline] |
References fstab.
Referenced by storage::Volume::doFstabUpdate(), storage::Volume::fstabUpdateText(), storage::LoopCo::getLoopData(), and storage::NfsCo::getNfsData().
| void Storage::handleLogFile | ( | const string & | name | ) |
References storage::decString(), max_log_num, testFilesEqual(), and y2milestone.
Referenced by storage::Disk::logData(), and logVolumes().
| bool Storage::testFilesEqual | ( | const string & | n1, | |
| const string & | n2 | |||
| ) | [static] |
References storage::extractNthWord(), storage::SystemCmd::getLine(), storage::SystemCmd::numLines(), storage::SystemCmd::retcode(), and y2milestone.
Referenced by handleLogFile().
| void storage::Storage::printInfo | ( | std::ostream & | str | ) | [inline, virtual] |
Print all detected entities to a stream. Exact output format may change between releases. Function mainly meant for debugging purposes.
| str | stream to print data to |
Implements storage::StorageInterface.
Referenced by dumpObjectList(), storage::operator<<(), and printInfoCo().
| void storage::Storage::printInfo | ( | std::ostream & | str, | |
| const string & | name | |||
| ) |
| void storage::Storage::printInfoCo | ( | std::ostream & | str, | |
| const string & | name | |||
| ) | [inline, virtual] |
Print names entities to a stream. Exact output format may change between releases. Function mainly meant for debugging purposes.
| str | stream to print data to | |
| name | name of container to print |
Implements storage::StorageInterface.
References printInfo().
| void Storage::logCo | ( | Container * | c | ) | const |
| void Storage::logCo | ( | const string & | device | ) |
References cc, findContainer(), logCo(), and y2mil.
| void Storage::logProcData | ( | const string & | l = "" |
) |
References storage::AsciiFile::numLines(), and y2mil.
Referenced by commitPair(), storage::DmCo::doRemove(), initialize(), and removeDmTable().
| UsedByType Storage::usedBy | ( | const string & | dev | ) |
| bool Storage::usedBy | ( | const string & | dev, | |
| storage::usedBy & | ub | |||
| ) |
References storage::usedBy::clear(), dEnd(), findDisk(), findVolume(), and y2mil.
| bool Storage::setUsedBy | ( | const string & | dev, | |
| storage::UsedByType | typ, | |||
| const string & | name | |||
| ) |
References dEnd(), findDisk(), findVolume(), y2error, and y2milestone.
Referenced by storage::LvmVg::addPv(), storage::DmraidCo::addPv(), storage::MdCo::extendMd(), storage::DmCo::getDmData(), storage::MdCo::getMdData(), storage::DmCo::removeDm(), storage::MdCo::removeMd(), storage::EvmsCo::setUsed(), storage::MdCo::shrinkMd(), and storage::PeContainer::unuseDev().
| bool Storage::canUseDevice | ( | const string & | dev, | |
| bool | disks_allowed = false | |||
| ) |
References dEnd(), findDisk(), findVolume(), storage::UB_NONE, and y2milestone.
Referenced by storage::DmCo::getDmData().
| bool Storage::knownDevice | ( | const string & | dev, | |
| bool | disks_allowed = false | |||
| ) |
References dEnd(), findDisk(), findVolume(), and y2milestone.
Referenced by storage::Dm::getDevice(), and storage::DmCo::getDmData().
| bool Storage::setDmcryptData | ( | const string & | dev, | |
| const string & | dm, | |||
| unsigned | dmnum, | |||
| unsigned long long | siz, | |||
| storage::EncryptType | typ | |||
| ) |
References storage::Dm::dmDeviceName(), findVolume(), y2mil, and y2milestone.
Referenced by storage::DmCo::getDmData().
| bool Storage::deletedDevice | ( | const string & | dev | ) |
| bool Storage::isDisk | ( | const string & | dev | ) |
References dEnd(), and findDisk().
| const Volume * Storage::getVolume | ( | const string & | dev | ) |
References storage::Volume::device(), findVolume(), and y2milestone.
Referenced by storage::MdCo::checkUse(), and storage::Md::computeSize().
| unsigned long long Storage::deviceSize | ( | const string & | dev | ) |
References dEnd(), findDisk(), findVolume(), and y2milestone.
| string Storage::deviceByNumber | ( | const string & | majmin | ) |
References storage::IterPair< Iter >::begin(), diskPair(), storage::Dm::dmMajor(), dmraidCoPair(), storage::IterPair< Iter >::end(), storage::Volume::notDeleted(), volPair(), and y2milestone.
Referenced by detectMultipath(), and storage::Dm::getDevice().
| void Storage::rootMounted | ( | ) |
References storage::EtcFstab::changeRootPrefix(), fstab, haveMd(), instsys(), root(), root_mounted, storage::MdCo::syncRaidtab(), and y2error.
Referenced by storage::Volume::doMount().
| bool storage::Storage::isRootMounted | ( | ) | const [inline] |
References root_mounted.
Referenced by addFstabEntry(), detectObjects(), and storage::Volume::doFstabUpdate().
| string Storage::findNormalDevice | ( | const string & | device | ) |
| bool Storage::findVolume | ( | const string & | device, | |
| Volume const *& | vol | |||
| ) |
References y2mil.
Referenced by addFstabOptions(), canUseDevice(), changeDescText(), changeFormatVolume(), changeFstabOptions(), changeLabelVolume(), changeMkfsOptVolume(), changeMountBy(), changeMountPoint(), changePartitionId(), changeTunefsOptVolume(), checkDeviceMounted(), deviceSize(), eraseLabelVolume(), findNormalDevice(), findVolume(), forgetChangePartitionId(), forgetCryptPassword(), forgetResizeVolume(), getContVolInfo(), getCrypt(), getCryptPassword(), getFreeInfo(), getFstabOptions(), getIgnoreFstab(), getMountBy(), getMountPoint(), getVolume(), handleEvmsCreateDevice(), handleEvmsRemoveDevice(), knownDevice(), mountDev(), readFstab(), removeDmMapsTo(), removeDmTableTo(), removeFstabOptions(), removePartition(), removeVolume(), resizePartition(), resizeVolume(), setCryptPassword(), setCryptType(), setDmcryptData(), setIgnoreFstab(), setUsedBy(), umountDevice(), storage::Evms::updateMd(), updatePartitionArea(), and usedBy().
| bool Storage::findDm | ( | const string & | device, | |
| const Dm *& | dm | |||
| ) |
References storage::IterPair< Iter >::begin(), dmPair(), storage::IterPair< Iter >::end(), and y2mil.
Referenced by storage::LoopCo::getLoopData(), and removeDm().
| bool Storage::findDmUsing | ( | const string & | device, | |
| const Dm *& | dm | |||
| ) |
References storage::IterPair< Iter >::begin(), dmPair(), storage::IterPair< Iter >::end(), and y2mil.
Referenced by storage::LoopCo::getLoopData().
| bool Storage::removeDm | ( | const string & | device | ) |
References storage::Container::device(), findContainer(), findDm(), storage::Volume::getContainer(), removeContainer(), and y2mil.
Referenced by storage::LoopCo::getLoopData().
| void Storage::getContainers | ( | deque< storage::ContainerInfo > & | infos | ) | [virtual] |
Query all containers found in system
Implements storage::StorageInterface.
References assertInit(), storage::IterPair< Iter >::begin(), contPair(), storage::IterPair< Iter >::end(), showContainers(), and y2mil.
| int Storage::getDiskInfo | ( | const string & | disk, | |
| storage::DiskInfo & | info | |||
| ) | [virtual] |
Query disk info for a disk device
| disk | device name of disk, e.g. /dev/hda | |
| info | record that get filled with disk special data |
Implements storage::StorageInterface.
References assertInit(), dEnd(), findDisk(), and storage::STORAGE_DISK_NOT_FOUND.
| int Storage::getLvmVgInfo | ( | const string & | name, | |
| storage::LvmVgInfo & | info | |||
| ) | [virtual] |
Query info for a LVM volume group
| name | name of volume group, e.g. system | |
| info | record that gets filled with LVM VG special data |
Implements storage::StorageInterface.
References assertInit(), findLvmVg(), lvgEnd(), and storage::STORAGE_LVM_VG_NOT_FOUND.
| int Storage::getEvmsCoInfo | ( | const string & | name, | |
| storage::EvmsCoInfo & | info | |||
| ) | [virtual] |
Query container info for a EVMS container
| name | name of container, e.g. lvm2/system | |
| info | record that gets filled with EVMS Container special data |
Implements storage::StorageInterface.
References assertInit(), evCoEnd(), findEvmsCo(), and storage::STORAGE_EVMS_CO_NOT_FOUND.
| int Storage::getDmraidCoInfo | ( | const string & | name, | |
| storage::DmraidCoInfo & | info | |||
| ) | [virtual] |
Query container info for a DMRAID container
| name | name of container, e.g. pdc_ccaihgii | |
| info | record that gets filled with DMRAID Container special data |
Implements storage::StorageInterface.
References assertInit(), dmrCoEnd(), findDmraidCo(), and storage::STORAGE_DMRAID_CO_NOT_FOUND.
| int Storage::getContDiskInfo | ( | const string & | disk, | |
| storage::ContainerInfo & | cinfo, | |||
| storage::DiskInfo & | info | |||
| ) | [virtual] |
Query disk info for a disk device
| disk | device name of disk, e.g. /dev/hda | |
| cinfo | record that gets filled with container general data | |
| info | record that gets filled with disk special data |
Implements storage::StorageInterface.
References assertInit(), dEnd(), findDisk(), and storage::STORAGE_DISK_NOT_FOUND.
| int Storage::getContLvmVgInfo | ( | const string & | name, | |
| storage::ContainerInfo & | cinfo, | |||
| storage::LvmVgInfo & | info | |||
| ) | [virtual] |
Query info for a LVM volume group
| name | name of volume group, e.g. system | |
| cinfo | record that gets filled with container general data | |
| info | record that gets filled with LVM VG special data |
Implements storage::StorageInterface.
References assertInit(), findLvmVg(), lvgEnd(), and storage::STORAGE_LVM_VG_NOT_FOUND.
| int Storage::getContEvmsCoInfo | ( | const string & | name, | |
| storage::ContainerInfo & | cinfo, | |||
| storage::EvmsCoInfo & | info | |||
| ) | [virtual] |
Query container info for a EVMS container
| name | name of container, e.g. lvm2/system | |
| cinfo | record that gets filled with container general data | |
| info | record that gets filled with EVMS Container special data |
Implements storage::StorageInterface.
References assertInit(), evCoEnd(), findEvmsCo(), and storage::STORAGE_EVMS_CO_NOT_FOUND.
| int Storage::getContDmraidCoInfo | ( | const string & | name, | |
| storage::ContainerInfo & | cinfo, | |||
| storage::DmraidCoInfo & | info | |||
| ) | [virtual] |
Query container info for a DMRAID container
| name | name of container, e.g. pdc_ccaihgii | |
| cinfo | record that gets filled with container general data | |
| info | record that gets filled with DMRAID Container special data |
Implements storage::StorageInterface.
References assertInit(), dmrCoEnd(), findDmraidCo(), and storage::STORAGE_DMRAID_CO_NOT_FOUND.
| void Storage::getVolumes | ( | deque< storage::VolumeInfo > & | infos | ) | [virtual] |
Query all volumes found in system
| infos | list of records that get filled with volume info |
Implements storage::StorageInterface.
References assertInit(), storage::IterPair< Iter >::begin(), storage::IterPair< Iter >::end(), storage::Volume::notDeleted(), and volPair().
| int Storage::getVolume | ( | const string & | device, | |
| storage::VolumeInfo & | info | |||
| ) | [virtual] |
Query a volume by device name found in system
| device | device name , e.g. /dev/hda1 | |
| info | record that gets filled with data |
Implements storage::StorageInterface.
References findVolume(), and storage::STORAGE_VOLUME_NOT_FOUND.
| int Storage::getPartitionInfo | ( | const string & | disk, | |
| deque< storage::PartitionInfo > & | plist | |||
| ) | [virtual] |
Query infos for partitions of a disk
| disk | device name of disk, e.g. /dev/hda | |
| plist | list of records that get filled with partition specific info |
Implements storage::StorageInterface.
References assertInit(), storage::IterPair< Iter >::begin(), dEnd(), storage::IterPair< Iter >::end(), findDisk(), storage::Disk::notDeleted(), and storage::STORAGE_DISK_NOT_FOUND.
| int Storage::getLvmLvInfo | ( | const string & | name, | |
| deque< storage::LvmLvInfo > & | plist | |||
| ) | [virtual] |
Query infos for LVM LVs of a LVM VG
| name | name of volume group, e.g. system | |
| plist | list of records that get filled with LV specific info |
Implements storage::StorageInterface.
References assertInit(), storage::IterPair< Iter >::begin(), storage::IterPair< Iter >::end(), findLvmVg(), lvgEnd(), storage::LvmVg::lvNotDeleted(), and storage::STORAGE_LVM_VG_NOT_FOUND.
| int Storage::getEvmsInfo | ( | const string & | name, | |
| deque< storage::EvmsInfo > & | plist | |||
| ) | [virtual] |
Query infos for EVMS volumes of a EVMS container
| name | name of volume group, e.g. lvm2/system | |
| plist | list of records that get filled with EVMS specific info |
Implements storage::StorageInterface.
References assertInit(), storage::IterPair< Iter >::begin(), storage::IterPair< Iter >::end(), evCoEnd(), findEvmsCo(), storage::EvmsCo::lvNotDeleted(), and storage::STORAGE_EVMS_CO_NOT_FOUND.
| int Storage::getMdInfo | ( | deque< storage::MdInfo > & | plist | ) | [virtual] |
Query infos for software raid devices in system
| plist | list of records that get filled with MD specific info |
Implements storage::StorageInterface.
References assertInit(), storage::IterPair< Iter >::begin(), storage::IterPair< Iter >::end(), mdPair(), and storage::Md::notDeleted().
| int Storage::getDmInfo | ( | deque< storage::DmInfo > & | plist | ) | [virtual] |
Query infos for dm devices in system
| plist | list of records that get filled with dm specific info |
Implements storage::StorageInterface.
References assertInit(), storage::IterPair< Iter >::begin(), dmPair(), storage::IterPair< Iter >::end(), and storage::Dm::notDeleted().
| int Storage::getNfsInfo | ( | deque< storage::NfsInfo > & | plist | ) | [virtual] |
Query infos for nfs devices in system
| plist | list of records that get filled with nfs info |
Implements storage::StorageInterface.
References assertInit(), storage::IterPair< Iter >::begin(), storage::IterPair< Iter >::end(), nfsPair(), and storage::Nfs::notDeleted().
| int Storage::getLoopInfo | ( | deque< storage::LoopInfo > & | plist | ) | [virtual] |
Query infos for file based loop devices in system
| plist | list of records that get filled with loop specific info |
Implements storage::StorageInterface.
References assertInit(), storage::IterPair< Iter >::begin(), storage::IterPair< Iter >::end(), loopPair(), and storage::Loop::notDeleted().
| int Storage::getDmraidInfo | ( | const string & | name, | |
| deque< storage::DmraidInfo > & | plist | |||
| ) | [virtual] |
Query infos for dmraid devices in system
| plist | list of records that get filled with dmraid specific info | |
| name | name of dmraid, e.g. pdc_igeeeadj |
Implements storage::StorageInterface.
References assertInit(), storage::IterPair< Iter >::begin(), dmrCoEnd(), storage::IterPair< Iter >::end(), findDmraidCo(), storage::DmraidCo::raidNotDeleted(), and storage::STORAGE_DMRAID_CO_NOT_FOUND.
| int Storage::getContVolInfo | ( | const string & | dev, | |
| ContVolInfo & | info | |||
| ) | [virtual] |
Split volume device name up into container name and a volume name. For Containers where this is appropriate (e.g. disks, MD, loop) also a volume number is provided.
| disk | device name of volume, e.g. /dev/hda1 | |
| info | record that get filled with split data |
Implements storage::StorageInterface.
References assertInit(), storage::ContVolInfo::cname, storage::CUNKNOWN, dEnd(), storage::DISK, storage::DM, storage::DMRAID, dmrCoEnd(), storage::EVMS, findDisk(), findDiskId(), findDiskPath(), findDmraidCo(), findVolume(), storage::Disk::getDiskPartition(), storage::Disk::getPartName(), storage::LOOP, storage::LVM, storage::MD, storage::Disk::needP(), storage::ContVolInfo::nr, storage::ContVolInfo::numeric, storage::splitString(), storage::ContVolInfo::type, storage::undevDevice(), storage::ContVolInfo::vname, and y2mil.
| bool Storage::getFsCapabilities | ( | storage::FsType | fstype, | |
| storage::FsCapabilities & | fscapabilities | |||
| ) | const [virtual] |
Query capabilities of a filesystem type.
Implements storage::StorageInterface.
References storage::EXT2, storage::EXT3, storage::HFS, storage::HFSPLUS, storage::JFS, storage::NFS, storage::NTFS, storage::REISERFS, storage::SWAP, storage::VFAT, and storage::XFS.
Referenced by storage::Volume::canResize(), storage::Volume::changeMountBy(), storage::LvmVg::doResize(), storage::EvmsCo::doResize(), storage::Volume::doSetLabel(), storage::Volume::setFormat(), and storage::Volume::setLabel().
| string Storage::getAllUsedFs | ( | ) | const [virtual] |
Get list of filesystem types present on any block devices. List elements are separated by blanks.
Implements storage::StorageInterface.
References storage::IterPair< Iter >::begin(), storage::IterPair< Iter >::end(), storage::FSNONE, storage::Volume::fsTypeString(), storage::FSUNKNOWN, storage::Volume::notDeleted(), volPair(), and y2mil.
| void Storage::setExtError | ( | const string & | txt | ) |
| int Storage::createPartition | ( | const string & | disk, | |
| storage::PartitionType | type, | |||
| unsigned long | start, | |||
| unsigned long | sizeCyl, | |||
| string & | device | |||
| ) | [virtual] |
Create a new partition. Units given in disk cylinders.
| disk | device name of disk, e.g. /dev/hda | |
| type | type of partition to create, e.g. primary or extended | |
| start | cylinder number of partition start (cylinders are numbered starting with 0) | |
| sizeCyl | size of partition in disk cylinders | |
| device | is set to the device name of the new partition The name is returned instead of the number since creating the name from the number is not straight-forward. |
Implements storage::StorageInterface.
References assertInit(), checkCache(), dEnd(), dmpCoEnd(), storage::EXTENDED, findDisk(), findDmPartCo(), handleEvmsCreateDevice(), haveEvms(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_DISK_NOT_FOUND, storage::STORAGE_DISK_USED_BY, storage::UB_NONE, and y2milestone.
| int Storage::resizePartition | ( | const string & | device, | |
| unsigned long | sizeCyl | |||
| ) | [virtual] |
Resize an existing disk partition. Units given in disk cylinders. Filesystem data is resized accordingly.
| device | device name of partition | |
| sizeCyl | new size of partition in disk cylinders |
Implements storage::StorageInterface.
Referenced by resizePartitionNoFs().
| int Storage::resizePartitionNoFs | ( | const string & | device, | |
| unsigned long | sizeCyl | |||
| ) | [virtual] |
Resize an existing disk partition. Units given in disk cylinders. Filesystem data is ignored.
| device | device name of partition | |
| sizeCyl | new size of partition in disk cylinders |
Implements storage::StorageInterface.
References resizePartition().
| int Storage::nextFreePartition | ( | const string & | disk, | |
| storage::PartitionType | type, | |||
| unsigned & | nr, | |||
| string & | device | |||
| ) | [virtual] |
Determine the device name of the next created partition
| disk | device name of disk, e.g. /dev/hda | |
| type | type of partition to create, e.g. primary or extended | |
| nr | is set to the number of the next created partition | |
| device | is set to the device name of the next created partition |
Implements storage::StorageInterface.
References assertInit(), dEnd(), dmpCoEnd(), findDisk(), findDmPartCo(), storage::STORAGE_DISK_NOT_FOUND, and y2milestone.
| int Storage::updatePartitionArea | ( | const string & | device, | |
| unsigned long | start, | |||
| unsigned long | sizeCyl | |||
| ) | [virtual] |
Update area used by a new partition. Units given in disk cylinders. This function can only be used with a partition created but not yet committed.
| device | device name of partition, e.g. /dev/hda1 | |
| start | cylinder number of partition start (cylinders are numbered starting with 0) | |
| sizeCyl | size of partition in disk cylinders |
Implements storage::StorageInterface.
References assertInit(), storage::DmPartCo::changePartitionArea(), storage::Disk::changePartitionArea(), checkCache(), cont, storage::DISK, storage::DMRAID, findVolume(), readonly, storage::STORAGE_CHANGE_AREA_INVALID_CONTAINER, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_VOLUME_NOT_FOUND, and y2milestone.
| int Storage::createPartitionKb | ( | const string & | disk, | |
| storage::PartitionType | type, | |||
| unsigned long long | start, | |||
| unsigned long long | size, | |||
| string & | device | |||
| ) | [virtual] |
Create a new partition. Units given in Kilobytes.
| disk | device name of disk, e.g. /dev/hda | |
| type | type of partition to create, e.g. primary or extended | |
| start | offset in kilobytes from start of disk | |
| size | size of partition in kilobytes | |
| device | is set to the device name of the new partition The name is returned instead of the number since creating the name from the number is not straight-forward. |
Implements storage::StorageInterface.
References assertInit(), dEnd(), dmpCoEnd(), storage::EXTENDED, findDisk(), findDmPartCo(), handleEvmsCreateDevice(), haveEvms(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_DISK_NOT_FOUND, storage::STORAGE_DISK_USED_BY, storage::UB_NONE, and y2milestone.
| int Storage::createPartitionAny | ( | const string & | disk, | |
| unsigned long long | size, | |||
| string & | device | |||
| ) | [virtual] |
Create a new partition of any type anywhere on the disk. Units given in Kilobytes.
| disk | device name of disk, e.g. /dev/hda | |
| size | size of partition in kilobytes | |
| device | is set to the device name of the new partition The name is returned instead of the number since creating the name from the number is not straight-forward. |
Implements storage::StorageInterface.
References assertInit(), dEnd(), dmpCoEnd(), findDisk(), findDmPartCo(), handleEvmsCreateDevice(), haveEvms(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_DISK_NOT_FOUND, storage::STORAGE_DISK_USED_BY, storage::UB_NONE, and y2milestone.
| int Storage::createPartitionMax | ( | const string & | disk, | |
| storage::PartitionType | type, | |||
| string & | device | |||
| ) | [virtual] |
Create a new partition of given type as large as possible.
| disk | device name of disk, e.g. /dev/hda | |
| type | type of partition to create, e.g. primary or extended | |
| device | is set to the device name of the new partition The name is returned instead of the number since creating the name from the number is not straight-forward. |
Implements storage::StorageInterface.
References assertInit(), dEnd(), dmpCoEnd(), findDisk(), findDmPartCo(), handleEvmsCreateDevice(), haveEvms(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_DISK_NOT_FOUND, storage::STORAGE_DISK_USED_BY, storage::UB_NONE, and y2milestone.
| unsigned long Storage::kbToCylinder | ( | const string & | disk, | |
| unsigned long long | size | |||
| ) | [virtual] |
Compute number of disk cylinders needed for given space
| disk | device name of disk, e.g. /dev/hda | |
| size | number of kilobytes |
Implements storage::StorageInterface.
References assertInit(), dEnd(), dmpCoEnd(), findDisk(), findDmPartCo(), and y2milestone.
| unsigned long long Storage::cylinderToKb | ( | const string & | disk, | |
| unsigned long | size | |||
| ) | [virtual] |
Compute number of kilobytes of a given number of disk cylinders
| disk | device name of disk, e.g. /dev/hda | |
| size | number of disk cylinders |
Implements storage::StorageInterface.
References assertInit(), dEnd(), dmpCoEnd(), findDisk(), findDmPartCo(), and y2milestone.
| int Storage::removePartition | ( | const string & | partition | ) | [virtual] |
Remove a partition
| partition | name of partition, e.g. /dev/hda1 |
Implements storage::StorageInterface.
References assertInit(), checkCache(), cont, storage::Container::device(), storage::DISK, storage::DMRAID, findVolume(), handleEvmsRemoveDevice(), haveEvms(), readonly, recursiveRemove, storage::DmPartCo::removePartition(), storage::Disk::removePartition(), removeUsing(), storage::STORAGE_CHANGE_READONLY, storage::STORAGE_REMOVE_PARTITION_INVALID_CONTAINER, storage::STORAGE_REMOVE_USED_VOLUME, storage::STORAGE_VOLUME_NOT_FOUND, storage::UB_NONE, and y2milestone.
| int Storage::changePartitionId | ( | const string & | partition, | |
| unsigned | id | |||
| ) | [virtual] |
Change partition id of a partition
| partition | name of partition, e.g. /dev/hda1 | |
| new | partition id (e.g. 0x82 swap, 0x8e for lvm, ...) |
Implements storage::StorageInterface.
References assertInit(), storage::DmPartCo::changePartitionId(), storage::Disk::changePartitionId(), checkCache(), cont, storage::DISK, storage::DMRAID, findVolume(), readonly, storage::STORAGE_CHANGE_PARTITION_ID_INVALID_CONTAINER, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_VOLUME_NOT_FOUND, and y2milestone.
| int Storage::forgetChangePartitionId | ( | const string & | partition | ) | [virtual] |
Forget previously issued change of partition id
| partition | name of partition, e.g. /dev/hda1 |
Implements storage::StorageInterface.
References assertInit(), checkCache(), cont, storage::DISK, storage::DMRAID, findVolume(), storage::DmPartCo::forgetChangePartitionId(), storage::Disk::forgetChangePartitionId(), readonly, storage::STORAGE_CHANGE_PARTITION_ID_INVALID_CONTAINER, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_VOLUME_NOT_FOUND, and y2milestone.
| int Storage::destroyPartitionTable | ( | const string & | disk, | |
| const string & | label | |||
| ) | [virtual] |
Destroys the partition table of a disk. An empty disk label of the given type without any partition is created.
| disk | device name of disk, e.g. /dev/hda | |
| label | disk label to create on disk , e.g. msdos, gpt, ... |
Implements storage::StorageInterface.
References assertInit(), checkCache(), dEnd(), dmpCoEnd(), findDisk(), findDmPartCo(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_DISK_NOT_FOUND, and y2milestone.
| int Storage::initializeDisk | ( | const string & | disk, | |
| bool | value | |||
| ) | [virtual] |
Do a what is needed for low level initialisation of a Disk. This function does nothing on normal disks but is needed e.g. on S390 DASD devices where it executes a dasdfmt. If should be considered as destroying all data on the disk.
| disk | device name of disk, e.g. /dev/hda | |
| value | toggle if disk should be initialized or not |
Implements storage::StorageInterface.
References assertInit(), checkCache(), dEnd(), storage::DISK_INIT_NOT_POSSIBLE, dmpCoEnd(), findDisk(), findDmPartCo(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_DISK_NOT_FOUND, and y2milestone.
| string Storage::defaultDiskLabel | ( | ) | const [virtual] |
Query the default disk label of the architecture of the machine (e.g. msdos for ix86, gpt for ia64, ...)
Implements storage::StorageInterface.
References storage::Disk::defaultLabel().
| string Storage::defaultDiskLabelSize | ( | unsigned long long | size_k | ) | const [virtual] |
Query the default disk label of the architecture of the machine (e.g. msdos for ix86, gpt for ia64, ...) for a disk with certain size
| size_k | size of disk in kilobyte |
Implements storage::StorageInterface.
References storage::Disk::defaultLabel().
| unsigned long long Storage::maxSizeLabelK | ( | const string & | label | ) | const [virtual] |
Query the maximal allowed size the given disk label supports.
Implements storage::StorageInterface.
References storage::Disk::maxSizeLabelK().
| int Storage::changeFormatVolume | ( | const string & | device, | |
| bool | format, | |||
| storage::FsType | fs | |||
| ) | [virtual] |
Sets or unsets the format flag for the given volume.
| device | name of volume, e.g. /dev/hda1 | |
| format | flag if format is set on or off | |
| fs | type of filesystem to create if format is true |
Implements storage::StorageInterface.
References assertInit(), checkCache(), cont, findVolume(), storage::Volume::fsTypeString(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_VOLUME_NOT_FOUND, and y2milestone.
Referenced by storage::MdCo::extendMd(), and storage::EvmsCo::setUsed().
| int Storage::changeLabelVolume | ( | const string & | device, | |
| const string & | label | |||
| ) | [virtual] |
Sets the value of the filesystem label.
| device | name of volume, e.g. /dev/hda1 | |
| label | value of the label |
Implements storage::StorageInterface.
References assertInit(), checkCache(), cont, findVolume(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_VOLUME_NOT_FOUND, and y2milestone.
| int Storage::eraseLabelVolume | ( | const string & | device | ) |
References assertInit(), cont, findVolume(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_VOLUME_NOT_FOUND, and y2milestone.
Referenced by storage::PeContainer::addPv().
| int Storage::changeMkfsOptVolume | ( | const string & | device, | |
| const string & | opts | |||
| ) | [virtual] |
Sets the value of mkfs options.
| device | name of volume, e.g. /dev/hda1 | |
| opts | options for mkfs command |
Implements storage::StorageInterface.
References assertInit(), checkCache(), cont, findVolume(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_VOLUME_NOT_FOUND, and y2milestone.
| int Storage::changeTunefsOptVolume | ( | const string & | device, | |
| const string & | opts | |||
| ) | [virtual] |
Sets the value of tunefs options.
| device | name of volume, e.g. /dev/hda1 | |
| opts | options for tunefs command |
Implements storage::StorageInterface.
References assertInit(), checkCache(), cont, findVolume(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_VOLUME_NOT_FOUND, and y2milestone.
| int Storage::changeDescText | ( | const string & | device, | |
| const string & | txt | |||
| ) | [virtual] |
Sets the value of description text. This text will be returned together with the text returned by getCommitActions
| device | name of volume, e.g. /dev/hda1 | |
| txt | description text for this partition |
Implements storage::StorageInterface.
References assertInit(), checkCache(), cont, findVolume(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_VOLUME_NOT_FOUND, and y2milestone.
| int Storage::changeMountPoint | ( | const string & | device, | |
| const string & | mount | |||
| ) | [virtual] |
Changes the mount point of a volume
| device | name of volume, e.g. /dev/hda1 | |
| mount | new mount point of the volume (e.g. /home). it is valid to set an empty mount point |
Implements storage::StorageInterface.
References assertInit(), checkCache(), cont, findVolume(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_VOLUME_NOT_FOUND, and y2milestone.
| int Storage::getMountPoint | ( | const string & | device, | |
| string & | mount | |||
| ) | [virtual] |
Get the mount point of a volume
| device | name of volume, e.g. /dev/hda1 | |
| mount | will be set to the mount point of the volume (e.g. /home). |
Implements storage::StorageInterface.
References assertInit(), cont, findVolume(), storage::STORAGE_VOLUME_NOT_FOUND, and y2milestone.
| int Storage::changeMountBy | ( | const string & | device, | |
| storage::MountByType | mby | |||
| ) | [virtual] |
Changes mount by value in fstab of a volume
| device | name of volume, e.g. /dev/hda1 | |
| options | new mount by value of the volume. |
Implements storage::StorageInterface.
References assertInit(), checkCache(), cont, findVolume(), storage::Volume::mbyTypeString(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_VOLUME_NOT_FOUND, and y2milestone.
| int Storage::getMountBy | ( | const string & | device, | |
| storage::MountByType & | mby | |||
| ) | [virtual] |
Get mount by value in fstab of a volume
| device | name of volume, e.g. /dev/hda1 | |
| options | will be set to the mount by value of the volume. |
Implements storage::StorageInterface.
References assertInit(), cont, defaultMountBy, dEnd(), findDisk(), findVolume(), storage::Disk::getDiskPartition(), storage::Volume::mbyTypeString(), storage::MOUNTBY_DEVICE, storage::MOUNTBY_ID, storage::MOUNTBY_PATH, storage::STORAGE_VOLUME_NOT_FOUND, y2mil, and y2milestone.
| int Storage::changeFstabOptions | ( | const string & | device, | |
| const string & | options | |||
| ) | [virtual] |
Changes the fstab options of a volume
| device | name of volume, e.g. /dev/hda1 | |
| options | new fstab options of the volume (e.g. noauto,user,sync). Multiple options are separated by ",". It is valid to set an empty fstab option. |
Implements storage::StorageInterface.
References assertInit(), checkCache(), cont, findVolume(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_VOLUME_NOT_FOUND, and y2milestone.
| int Storage::getFstabOptions | ( | const string & | device, | |
| string & | options | |||
| ) | [virtual] |
Get the fstab options of a volume
| device | name of volume, e.g. /dev/hda1 | |
| options | will be set to the fstab options of the volume (e.g. noauto,user,sync). Multiple options are separated by ",". |
Implements storage::StorageInterface.
References assertInit(), cont, findVolume(), storage::STORAGE_VOLUME_NOT_FOUND, and y2milestone.
| int Storage::addFstabOptions | ( | const string & | device, | |
| const string & | options | |||
| ) | [virtual] |
Add to the fstab options of a volume
| device | name of volume, e.g. /dev/hda1 | |
| options | fstab options to add to already exiting options of the volume (e.g. noauto,user,sync). Multiple options are separated by ",". |
Implements storage::StorageInterface.
References assertInit(), checkCache(), cont, findVolume(), storage::mergeString(), readonly, storage::splitString(), storage::STORAGE_CHANGE_READONLY, storage::STORAGE_VOLUME_NOT_FOUND, and y2milestone.
| int Storage::removeFstabOptions | ( | const string & | device, | |
| const string & | options | |||
| ) | [virtual] |
Remove from the fstab options of a volume
| device | name of volume, e.g. /dev/hda1 | |
| options | fstab options to remove from already existing options of the volume (e.g. noauto). Multiple options are separated by ",". It is possible to specify wildcards, so "uid=.*" matches every option starting with the string "uid=". |
Implements storage::StorageInterface.
References assertInit(), checkCache(), cont, findVolume(), storage::mergeString(), readonly, storage::splitString(), storage::STORAGE_CHANGE_READONLY, storage::STORAGE_VOLUME_NOT_FOUND, and y2milestone.
| int Storage::setCryptPassword | ( | const string & | device, | |
| const string & | pwd | |||
| ) | [virtual] |
Set crypt password of a volume
| device | name of volume, e.g. /dev/hda1 | |
| pwd | crypt password for this volume |
Implements storage::StorageInterface.
References assertInit(), checkCache(), findVolume(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_VOLUME_NOT_FOUND, and y2milestone.
| int Storage::forgetCryptPassword | ( | const string & | device | ) | [virtual] |
Makes library forgt a crypt password of a volume
| device | name of volume, e.g. /dev/hda1 |
Implements storage::StorageInterface.
References assertInit(), checkCache(), findVolume(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_VOLUME_NOT_FOUND, and y2milestone.
| int Storage::getCryptPassword | ( | const string & | device, | |
| string & | pwd | |||
| ) | [virtual] |
Get crypt password of a volume
| device | name of volume, e.g. /dev/hda1 | |
| pwd | crypt password for this volume |
Implements storage::StorageInterface.
References assertInit(), checkCache(), findVolume(), storage::STORAGE_VOLUME_NOT_FOUND, and y2milestone.
| int Storage::setCrypt | ( | const string & | device, | |
| bool | val | |||
| ) | [virtual] |
Set encryption state of a volume
| device | name of volume, e.g. /dev/hda1 | |
| val | flag if encryption should be activated |
Implements storage::StorageInterface.
References storage::ENC_LUKS, setCryptType(), and y2milestone.
| int Storage::setCryptType | ( | const string & | device, | |
| bool | val, | |||
| EncryptType | typ | |||
| ) | [virtual] |
Set encryption state of a volume
| device | name of volume, e.g. /dev/hda1 | |
| val | flag if encryption should be activated | |
| typ | type of encryption to set up |
Implements storage::StorageInterface.
References assertInit(), checkCache(), cont, findVolume(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_VOLUME_NOT_FOUND, and y2milestone.
Referenced by setCrypt().
| int Storage::getCrypt | ( | const string & | device, | |
| bool & | val | |||
| ) | [virtual] |
Get encryption state of a volume
| device | name of volume, e.g. /dev/hda1 | |
| val | will be set if encryption is activated |
Implements storage::StorageInterface.
References assertInit(), cont, findVolume(), storage::STORAGE_VOLUME_NOT_FOUND, and y2milestone.
| int Storage::setIgnoreFstab | ( | const string & | device, | |
| bool | val | |||
| ) | [virtual] |
Set fstab handling state of a volume. This way one can make libstorage ignore fstab handling for a volume. Use this with care.
| device | name of volume, e.g. /dev/hda1 | |
| val | flag if fstab should be ignored for this volume |
Implements storage::StorageInterface.
References assertInit(), checkCache(), cont, findVolume(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_VOLUME_NOT_FOUND, and y2milestone.
| int Storage::getIgnoreFstab | ( | const string & | device, | |
| bool & | val | |||
| ) | [virtual] |
Get fstab handling state of a volume.
| device | name of volume, e.g. /dev/hda1 | |
| val | will be set if fstab should be ignored for this volume |
Implements storage::StorageInterface.
References assertInit(), cont, findVolume(), storage::STORAGE_VOLUME_NOT_FOUND, and y2milestone.
| int Storage::addFstabEntry | ( | const string & | device, | |
| const string & | mount, | |||
| const string & | vfs, | |||
| const string & | options, | |||
| unsigned | freq, | |||
| unsigned | passno | |||
| ) | [virtual] |
Adds the specified entry to /etc/fstab
| device | name of volume, e.g. /dev/hda1 | |
| mount | mount point, e.g. /home | |
| vfs | virtual filesystem type, e.g. reiserfs or ext3 | |
| options | fstab options e.g. noauto,user,sync | |
| freq | value for fifth fstab field | |
| passno | value for sixth fstab field |
Implements storage::StorageInterface.
References storage::EtcFstab::addEntry(), assertInit(), storage::createPath(), storage::FstabChange::dentry, storage::FstabChange::device, storage::EtcFstab::flush(), storage::FstabChange::freq, storage::FstabChange::fs, fstab, isRootMounted(), storage::FstabChange::mount, storage::FstabChange::opts, storage::FstabChange::passno, readonly, root(), storage::splitString(), storage::STORAGE_CHANGE_READONLY, storage::STORAGE_INVALID_FSTAB_VALUE, storage::STORAGE_NO_FSTAB_PTR, and y2milestone.
| int Storage::resizeVolume | ( | const string & | device, | |
| unsigned long long | newSizeMb | |||
| ) | [virtual] |
Resizes a volume while keeping the data on the filesystem
| device | name of volume, e.g. /dev/hda1 | |
| newSizeMb | new size desired volume in Megabyte |
Implements storage::StorageInterface.
Referenced by resizeVolumeNoFs().
| int Storage::resizeVolumeNoFs | ( | const string & | device, | |
| unsigned long long | newSizeMb | |||
| ) | [virtual] |
Resizes a volume while ignoring the data on the filesystem
| device | name of volume, e.g. /dev/hda1 | |
| newSizeMb | new size desired volume in Megabyte |
Implements storage::StorageInterface.
References resizeVolume().
| int Storage::forgetResizeVolume | ( | const string & | device | ) | [virtual] |
Forget about possible resize of an volume.
| device | device name of volume |
Implements storage::StorageInterface.
References assertInit(), checkCache(), cont, findVolume(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_VOLUME_NOT_FOUND, and y2milestone.
| void Storage::setRecursiveRemoval | ( | bool | val = true |
) | [virtual] |
Set handling of deletion of entities that belong to other volumes. Normally it is not possible to remove a volume that is part of another entity (e.g. you cannot remove a partition that is part of an LVM Volume group or a Software raid). This setting makes the removal recursive, this means all entities where the removed volume is a part of are also removed. Use this setting with extreme care, it may cause the removal of LVM Volume group spanning multiple disks just because one partition of the LVM Volume group got deleted. Default value of this flag is false.
| val | flag if removal is done recursive |
Implements storage::StorageInterface.
References recursiveRemove, and y2milestone.
Referenced by storage::DmPartCo::destroyPartitionTable(), and storage::Disk::destroyPartitionTable().
| bool storage::Storage::getRecursiveRemoval | ( | ) | const [inline, virtual] |
Get value of the flag for recursive removal
Implements storage::StorageInterface.
References recursiveRemove.
Referenced by storage::DmPartCo::destroyPartitionTable(), storage::Disk::destroyPartitionTable(), storage::LvmVg::removeLv(), and storage::EvmsCo::removeVol().
| void Storage::setZeroNewPartitions | ( | bool | val = true |
) | [virtual] |
Set handling of newly created partitions. With this flag once can make the library overwrite start and end of newly created partitions with zeroes. This prevents that obsolete structures (e.g. LVM VGs or MD superblocks) still exists on newly created partitions since the area on disk previously contained a LVM PV or a device of a software raid. volumes. Use this setting with extreme care, it make libstorage behave fundamentally different from all other partitioning tools. Default value of this flag is false.
| val | flag if newly created partitions should be zeroed |
Implements storage::StorageInterface.
References y2milestone, and zeroNewPartitions.
| bool storage::Storage::getZeroNewPartitions | ( | ) | const [inline, virtual] |
Get value of the flag for zeroing newly created partitions
Implements storage::StorageInterface.
References zeroNewPartitions.
| void Storage::setDefaultMountBy | ( | MountByType | mby = MOUNTBY_DEVICE |
) | [virtual] |
Implements storage::StorageInterface.
References defaultMountBy, storage::Volume::mbyTypeString(), and y2mil.
Referenced by initialize().
| MountByType storage::Storage::getDefaultMountBy | ( | ) | const [inline, virtual] |
Implements storage::StorageInterface.
References defaultMountBy.
Referenced by storage::Volume::defaultMountBy().
| void Storage::setDetectMountedVolumes | ( | bool | val = true |
) | [virtual] |
Determine of libstorage should detect mounted volumes.
| val | flag if mounted volumes should be detected |
Implements storage::StorageInterface.
References detectMounted, and y2milestone.
| bool storage::Storage::getDetectMountedVolumes | ( | ) | const [inline, virtual] |
Get value of the flag for detection of mounted volumes.
Implements storage::StorageInterface.
References detectMounted.
| void Storage::setRootPrefix | ( | const string & | root | ) | [virtual] |
Set value for root prefix. This value is appended to all mount points of volumes, when changes are commited. Config files fstab, cryptotab, raidtab and mdadm.conf are also created relative to this prefix. This variable must be set before first call to commit.
| root | new value for root prefix |
Implements storage::StorageInterface.
References rootprefix, and y2milestone.
| int Storage::removeVolume | ( | const string & | device | ) | [virtual] |
Removes a volume from the system. This function can be used for removing all types of volumes (partitions, LVM LVs, MD devices ...)
| device | name of volume, e.g. /dev/hda1 |
Implements storage::StorageInterface.
References assertInit(), checkCache(), cont, storage::DISK, findVolume(), handleEvmsRemoveDevice(), haveEvms(), readonly, recursiveRemove, removeUsing(), storage::STORAGE_CHANGE_READONLY, storage::STORAGE_REMOVE_USED_VOLUME, storage::STORAGE_VOLUME_NOT_FOUND, storage::UB_NONE, y2mil, and y2milestone.
Referenced by storage::DmPartCo::destroyPartitionTable(), storage::Disk::destroyPartitionTable(), and removeUsing().
| int Storage::removeUsing | ( | const string & | device, | |
| const storage::usedBy & | uby | |||
| ) |
References storage::usedBy::name(), removeEvmsContainer(), removeLvmVg(), removeVolume(), storage::STORAGE_REMOVE_USING_UNKNOWN_TYPE, storage::usedBy::type(), storage::UB_DM, storage::UB_DMRAID, storage::UB_EVMS, storage::UB_LVM, storage::UB_MD, storage::UB_NONE, y2mil, y2milestone, and y2warning.
Referenced by storage::DmPartCo::destroyPartitionTable(), storage::Disk::destroyPartitionTable(), storage::LvmVg::removeLv(), removePartition(), storage::EvmsCo::removeVol(), and removeVolume().
| bool Storage::checkDeviceMounted | ( | const string & | device, | |
| string & | mp | |||
| ) | [virtual] |
Determine if the given device is known and mounted somewhere
| device | device name to check (checks also all alias names) | |
| mp | set to current mount point if mounted |
Implements storage::StorageInterface.
References assertInit(), findVolume(), storage::ProcMounts::getMount(), and y2milestone.
| bool Storage::umountDevice | ( | const string & | device | ) | [virtual] |
Umount the given device and do what is necessary to remove underlying volume (e.g. do losetup -d if loop is set up) The function umounts at once, /etc/fstab is unaffected
| device | device name to umount |
Implements storage::StorageInterface.
References assertInit(), findVolume(), readonly, and y2milestone.
Referenced by getFreeInfo().
| bool Storage::mountDev | ( | const string & | device, | |
| const string & | mp, | |||
| bool | ro = true, |
|||
| const string & | opts = "" | |||
| ) |
References assertInit(), findVolume(), readonly, and y2milestone.
Referenced by getFreeInfo(), mountDevice(), mountDeviceOpts(), and mountDeviceRo().
| bool storage::Storage::mountDevice | ( | const string & | device, | |
| const string & | mp | |||
| ) | [inline, virtual] |
Mount the given device and do what is necessary to access volume (e.g. do losetup if loop is set up) The function mounts at once, /etc/fstab is unaffected
| device | device name to mount | |
| mp | mount point to mount to |
Implements storage::StorageInterface.
References mountDev().
| bool storage::Storage::mountDeviceOpts | ( | const string & | device, | |
| const string & | mp, | |||
| const string & | opts | |||
| ) | [inline, virtual] |
Mount the given device with given options and do what is necessary to access volume (e.g. do losetup if loop is set up) The function mounts at once, /etc/fstab is unaffected
| device | device name to mount | |
| mp | mount point to mount to | |
| opts | options to use for mount |
Implements storage::StorageInterface.
References mountDev().
| bool storage::Storage::mountDeviceRo | ( | const string & | device, | |
| const string & | mp, | |||
| const string & | opts | |||
| ) | [inline, virtual] |
Mount the given device readonly and do what is necessary to access volume (e.g. do losetup if loop is set up) The function mounts at once, /etc/fstab is unaffected
| device | device name to mount | |
| mp | mount point to mount to | |
| opts | options to use for mount |
Implements storage::StorageInterface.
References mountDev().
| bool Storage::readFstab | ( | const string & | dir, | |
| deque< storage::VolumeInfo > & | infos | |||
| ) | [virtual] |
Read fstab and cryptotab, if existent, from a specified directory and return the volumes found in fstab and cryptotab
| dir | directory where fstab and cryptotab are read from | |
| infos | list of records that get filled with volume info |
Implements storage::StorageInterface.
References assertInit(), storage::VolumeInfo::create, storage::VolumeInfo::device, findVolume(), storage::VolumeInfo::format, storage::VolumeInfo::fs, fstab, storage::VolumeInfo::fstab_options, storage::VolumeInfo::major, storage::Regex::match(), storage::mergeString(), storage::VolumeInfo::minor, storage::VolumeInfo::mount, storage::VolumeInfo::mount_by, storage::MOUNTBY_DEVICE, storage::VolumeInfo::OrigSizeK, storage::VolumeInfo::resize, storage::VolumeInfo::sizeK, storage::Volume::toFsType(), y2mil, and y2milestone.
| bool Storage::getFreeInfo | ( | const string & | device, | |
| unsigned long long & | resize_free, | |||
| unsigned long long & | df_free, | |||
| unsigned long long & | used, | |||
| bool & | win, | |||
| bool & | efi, | |||
| bool | use_cache | |||
| ) | [virtual] |
Detect potentially available free space on a partition
| device | device to check | |
| resize_free | free space in kilobytes available for resize | |
| df_free | free space in kilobytes available in filesystem | |
| used | used space in kilobytes for filesystem | |
| win | flag if partition contains a windows installation | |
| use_cache | function should return cached data if available |
Implements storage::StorageInterface.
References assertInit(), storage::checkDir(), findVolume(), storage::FSUNKNOWN, getFreeInf(), storage::SystemCmd::getString(), storage::lengthof(), mountDev(), storage::NTFS, removeDmTableTo(), storage::SystemCmd::retcode(), setFreeInfo(), tmpDir(), umountDevice(), storage::VFAT, and y2milestone.
| unsigned long long Storage::getDfSize | ( | const string & | mp | ) |
References y2mil, y2milestone, and y2war.
Referenced by checkNfsDevice(), and storage::NfsCo::getNfsData().
| int Storage::createBackupState | ( | const string & | name | ) | [virtual] |
Create backup of current state of all containers
| name | name under which the backup should be created |
Implements storage::StorageInterface.
References assertInit(), backups, backupStates(), checkBackupState(), cont, equalBackupStates(), readonly, removeBackupState(), storage::STORAGE_CHANGE_READONLY, y2mil, and y2milestone.
| int Storage::removeBackupState | ( | const string & | name | ) | [virtual] |
Remove existing backup state
| name | name of backup to remove, empty string means to remove all existing backup states |
Implements storage::StorageInterface.
References assertInit(), backups, backupStates(), deleteBackups(), deleteClist(), readonly, storage::STORAGE_BACKUP_STATE_NOT_FOUND, storage::STORAGE_CHANGE_READONLY, y2mil, and y2milestone.
Referenced by createBackupState().
| int Storage::restoreBackupState | ( | const string & | name | ) | [virtual] |
Restore state to a previously created backup
| name | name of the backup to restore |
Implements storage::StorageInterface.
References assertInit(), backups, cont, readonly, storage::STORAGE_BACKUP_STATE_NOT_FOUND, storage::STORAGE_CHANGE_READONLY, and y2milestone.
| bool Storage::checkBackupState | ( | const string & | name | ) | [virtual] |
Checks if a backup with a certain name already exists
| name | name of the backup to check |
Implements storage::StorageInterface.
References assertInit(), backups, and y2milestone.
Referenced by createBackupState().
| bool Storage::equalBackupStates | ( | const string & | lhs, | |
| const string & | rhs, | |||
| bool | verbose_log | |||
| ) | const [virtual] |
Compare two backup states
| lhs | name of backup to compare, empty string means active state | |
| rhs | name of backup to compare, empty string means active state | |
| verbose_log | flag if differences should be logged in detail |
Implements storage::StorageInterface.
References backups, cont, y2mil, and y2milestone.
Referenced by createBackupState().
| int Storage::createLvmVg | ( | const string & | name, | |
| unsigned long long | peSizeK, | |||
| bool | lvm1, | |||
| const deque< string > & | devs | |||
| ) | [virtual] |
Create a LVM volume group
| name | name of volume group, must not contain blanks, colons and shell special characters (e.g. system) | |
| peSizeK | physical extent size in kilobytes | |
| lvm1 | flag if lvm1 compatible format should be used | |
| devs | list with physical devices to add to that volume group |
Implements storage::StorageInterface.
References addToList(), assertInit(), checkCache(), storage::LvmVg::extendVg(), findLvmVg(), lvgEnd(), readonly, storage::Container::setCreated(), storage::LvmVg::setPeSize(), storage::STORAGE_CHANGE_READONLY, storage::STORAGE_LVM_VG_EXISTS, storage::STORAGE_VG_INVALID_NAME, y2mil, and y2milestone.
| int Storage::removeLvmVg | ( | const string & | name | ) | [virtual] |
Remove a LVM volume group. If the volume group contains logical volumes, these are automatically also removed.
| name | name of volume group |
Implements storage::StorageInterface.
References assertInit(), checkCache(), evCoEnd(), findEvmsCo(), findLvmVg(), haveEvms(), lvgEnd(), readonly, removeContainer(), storage::STORAGE_CHANGE_READONLY, storage::STORAGE_LVM_VG_NOT_FOUND, y2mil, and y2milestone.
Referenced by removeUsing().
| int Storage::extendLvmVg | ( | const string & | name, | |
| const deque< string > & | devs | |||
| ) | [virtual] |
Extend a LVM volume group with additional physical devices
| name | name of volume group | |
| devs | list with physical devices to add to that volume group |
Implements storage::StorageInterface.
References assertInit(), checkCache(), findLvmVg(), lvgEnd(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_LVM_VG_NOT_FOUND, y2mil, and y2milestone.
| int Storage::shrinkLvmVg | ( | const string & | name, | |
| const deque< string > & | devs | |||
| ) | [virtual] |
Shrink a LVM volume group
| name | name of volume group | |
| devs | list with physical devices to remove from that volume group |
Implements storage::StorageInterface.
References assertInit(), checkCache(), findLvmVg(), lvgEnd(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_LVM_VG_NOT_FOUND, y2mil, and y2milestone.
| int Storage::createLvmLv | ( | const string & | vg, | |
| const string & | name, | |||
| unsigned long long | sizeM, | |||
| unsigned | stripe, | |||
| string & | device | |||
| ) | [virtual] |
Create a LVM logical volume
| vg | name of volume group | |
| name | of logical volume | |
| size | size of logical volume in megabytes | |
| stripe | stripe count of logical volume (use 1 unless you know exactly what you are doing) | |
| device | is set to the device name of the new LV |
Implements storage::StorageInterface.
References assertInit(), checkCache(), findLvmVg(), lvgEnd(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_LVM_VG_NOT_FOUND, and y2milestone.
| int Storage::removeLvmLvByDevice | ( | const string & | device | ) | [virtual] |
Remove a LVM logical volume
| device | name of logical volume |
Implements storage::StorageInterface.
References removeLvmLv(), storage::STORAGE_LVM_INVALID_DEVICE, storage::undevDevice(), and y2milestone.
| int Storage::removeLvmLv | ( | const string & | vg, | |
| const string & | name | |||
| ) | [virtual] |
Remove a LVM logical volume
| vg | name of volume group | |
| name | of logical volume |
Implements storage::StorageInterface.
References assertInit(), checkCache(), findLvmVg(), lvgEnd(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_LVM_VG_NOT_FOUND, and y2milestone.
Referenced by removeLvmLvByDevice().
| int Storage::changeLvStripeCount | ( | const string & | vg, | |
| const string & | name, | |||
| unsigned long | stripes | |||
| ) | [virtual] |
Change stripe count of a LVM logical volume. This can only be before the volume is created on disk.
| vg | name of volume group | |
| name | of logical volume | |
| stripe | new stripe count of logical volume |
Implements storage::StorageInterface.
References assertInit(), checkCache(), findLvmVg(), lvgEnd(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_LVM_VG_NOT_FOUND, and y2milestone.
| int Storage::changeLvStripeSize | ( | const string & | vg, | |
| const string & | name, | |||
| unsigned long long | stripeSize | |||
| ) | [virtual] |
Change stripe size of a LVM logical volume. This can only be before the volume is created on disk.
| vg | name of volume group | |
| name | of logical volume | |
| stripeSize | new stripe size of logical volume |
Implements storage::StorageInterface.
References assertInit(), checkCache(), findLvmVg(), lvgEnd(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_LVM_VG_NOT_FOUND, and y2milestone.
| int Storage::evmsActivate | ( | bool | force | ) | [virtual] |
Activate EVMS devices on the system. This is only necessary on systems where EVMS is not activated during system startup. This command is executed immediately, there is no need for a call to commit().
| force | flag if activation should be forced |
Implements storage::StorageInterface.
References storage::EvmsCo::activateDevices(), assertInit(), backups, storage::IterPair< Iter >::begin(), cc, detectEvms(), detectFsData(), storage::Container::device(), storage::Partition::disk(), storage::IterPair< Iter >::empty(), storage::IterPair< Iter >::end(), evCoPair(), evmsCo(), evmsPair(), storage::EvmsCo::evmsToDev(), storage::EXTENDED, findContainer(), handleEvmsCreateDevice(), handleEvmsRemoveDevice(), storage::Volume::isDeleted(), isDiskCreated(), isEvms(), storage::IterPair< Iter >::length(), logCo(), storage::EvmsCo::lvNotDeleted(), readonly, removeContainer(), storage::STORAGE_CHANGE_READONLY, storage::Partition::type(), vPair(), y2mil, y2milestone, y2war, and y2warning.
| int Storage::createEvmsContainer | ( | const string & | name, | |
| unsigned long long | peSizeK, | |||
| bool | lvm1, | |||
| const deque< string > & | devs | |||
| ) | [virtual] |
Create a EVMS container
| name | name of container, must not contain blanks, colons and shell special characters (e.g. system) | |
| peSizeK | physical extent size in kilobytes | |
| lvm1 | flag if lvm1 compatible format should be used | |
| devs | list with physical devices to add to that volume group |
Implements storage::StorageInterface.
References addToList(), assertInit(), checkCache(), evCoEnd(), storage::EvmsCo::extendCo(), findEvmsCo(), readonly, storage::Container::setCreated(), storage::STORAGE_CHANGE_READONLY, storage::STORAGE_EVMS_CO_EXISTS, storage::STORAGE_EVMS_INVALID_NAME, y2mil, and y2milestone.
| int Storage::modifyEvmsContainer | ( | const string & | old_name, | |
| const string & | new_name, | |||
| unsigned long long | peSizeK, | |||
| bool | lvm1 | |||
| ) | [virtual] |
Modify a EVMS container. This function can only be used between the creation of a EVMS container and the next call to commit(). Containers that are already written to disk cannot have these properties changed.
| old_name | name of container, must not contain blanks, colons and shell special characters (e.g. system) | |
| new_name | new name of container, same restrictions as for first parameter | |
| peSizeK | physical extent size in kilobytes | |
| lvm1 | flag if lvm1 compatible format should be used |
Implements storage::StorageInterface.
References addToList(), assertInit(), checkCache(), evCoEnd(), findEvmsCo(), readonly, removeContainer(), storage::STORAGE_CHANGE_READONLY, storage::STORAGE_EVMS_CO_NOT_FOUND, storage::STORAGE_EVMS_INVALID_NAME, y2mil, and y2milestone.
| int Storage::removeEvmsContainer | ( | const string & | name | ) | [virtual] |
Remove a EVMS container. If the container contains logical volumes, these are automatically also removed.
| name | name of container |
Implements storage::StorageInterface.
References assertInit(), checkCache(), evCoEnd(), findEvmsCo(), findLvmVg(), lvgEnd(), readonly, removeContainer(), storage::STORAGE_CHANGE_READONLY, storage::STORAGE_EVMS_CO_NOT_FOUND, and y2milestone.
Referenced by removeUsing().
| int Storage::extendEvmsContainer | ( | const string & | name, | |
| const deque< string > & | devs | |||
| ) | [virtual] |
Extend a EVMS container with additional physical devices
| name | name of container | |
| devs | list with physical devices to add to that container |
Implements storage::StorageInterface.
References assertInit(), checkCache(), evCoEnd(), findEvmsCo(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_EVMS_CO_NOT_FOUND, y2mil, and y2milestone.
| int Storage::shrinkEvmsContainer | ( | const string & | name, | |
| const deque< string > & | devs | |||
| ) | [virtual] |
Shrink a EVMS container
| name | name of container | |
| devs | list with physical devices to remove from that container |
Implements storage::StorageInterface.
References assertInit(), checkCache(), evCoEnd(), findEvmsCo(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_EVMS_CO_NOT_FOUND, y2mil, and y2milestone.
| int Storage::createEvmsVolume | ( | const string & | coname, | |
| const string & | name, | |||
| unsigned long long | sizeM, | |||
| unsigned | stripe, | |||
| string & | device | |||
| ) | [virtual] |
Create a EVMS volume within a EVMS container
| coname | of container | |
| name | of volume | |
| size | size of volume in megabytes | |
| stripe | stripe count of volume (use 1 unless you know exactly what you are doing) | |
| device | is set to the device name of the new volume |
Implements storage::StorageInterface.
References assertInit(), checkCache(), evCoEnd(), findEvmsCo(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_EVMS_CO_NOT_FOUND, and y2milestone.
| int Storage::removeEvmsVolumeByDevice | ( | const string & | device | ) | [virtual] |
Remove a EVMS volume
| device | name of EVMS volume |
Implements storage::StorageInterface.
References removeEvmsVolume(), storage::STORAGE_EVMS_INVALID_DEVICE, storage::undevDevice(), and y2milestone.
| int Storage::removeEvmsVolume | ( | const string & | coname, | |
| const string & | name | |||
| ) | [virtual] |
Remove a EVMS volume from a EVMS container
| coname | name of container | |
| name | name of volume |
Implements storage::StorageInterface.
References assertInit(), checkCache(), evCoEnd(), findEvmsCo(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_EVMS_CO_NOT_FOUND, and y2milestone.
Referenced by removeEvmsVolumeByDevice().
| int Storage::changeEvmsStripeCount | ( | const string & | coname, | |
| const string & | name, | |||
| unsigned long | stripe | |||
| ) | [virtual] |
Change strip count of a EVMS volume. This can only be before the volume is created on disk.
| coname | name of EVMS container | |
| name | of volume | |
| stripe | new stripe count of volume |
Implements storage::StorageInterface.
References assertInit(), checkCache(), evCoEnd(), findEvmsCo(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_EVMS_CO_NOT_FOUND, and y2milestone.
| int Storage::changeEvmsStripeSize | ( | const string & | coname, | |
| const string & | name, | |||
| unsigned long long | stripeSize | |||
| ) | [virtual] |
Change strip size of a EVMS volume. This can only be before the volume is created on disk.
| coname | name of EVMS container | |
| name | of volume | |
| stripeSize | new stripe size of volume |
Implements storage::StorageInterface.
References assertInit(), checkCache(), evCoEnd(), findEvmsCo(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_EVMS_CO_NOT_FOUND, and y2milestone.
| void Storage::setNoEvms | ( | bool | val | ) | [virtual] |
Possibility to switch Evms handling off or on in libstorage. This function must be called prior to libstorage initialisation. Default is on.
| val | determines if Evms is switched off or on |
Implements storage::StorageInterface.
| bool storage::Storage::getNoEvms | ( | ) | [inline, virtual] |
Returns the state of Evms handling in libstorage.
| val | determines if Evms is switched off or on |
Implements storage::StorageInterface.
References no_evms.
| static bool storage::Storage::getNoEv | ( | ) | [inline, static] |
| int Storage::createMd | ( | const string & | name, | |
| storage::MdType | rtype, | |||
| const deque< string > & | devs | |||
| ) | [virtual] |
Create a Software raid device by name
| name | name of software raid device to create (e.g. /dev/md0) | |
| rtype | raid personality of the new software raid | |
| devs | list with physical devices for the new software raid |
Implements storage::StorageInterface.
References addToList(), assertInit(), checkCache(), storage::MdCo::createMd(), haveMd(), storage::Md::mdStringNum(), storage::Md::pName(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_MD_INVALID_NAME, y2mil, and y2milestone.
| int Storage::createMdAny | ( | storage::MdType | rtype, | |
| const deque< string > & | devs, | |||
| string & | device | |||
| ) | [virtual] |
Create a Software raid device. Name determined by library.
| rtype | raid personality of the new software raid | |
| devs | list with physical devices for the new software raid | |
| device | device name of created software raid device |
Implements storage::StorageInterface.
References addToList(), assertInit(), checkCache(), storage::MdCo::createMd(), storage::decString(), haveMd(), storage::Md::pName(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_MEMORY_EXHAUSTED, storage::MdCo::unusedNumber(), y2mil, and y2milestone.
| int Storage::removeMd | ( | const string & | name, | |
| bool | destroySb = true | |||
| ) | [virtual] |
Remove a Software raid device.
| name | name of software raid device to remove (e.g. /dev/md0) | |
| destroySb | flag if the MD superblocks on the physical devices should be destroyed after md device is deleted |
Implements storage::StorageInterface.
References assertInit(), checkCache(), haveMd(), storage::Md::mdStringNum(), readonly, storage::MdCo::removeMd(), storage::STORAGE_CHANGE_READONLY, storage::STORAGE_MD_INVALID_NAME, storage::STORAGE_MD_NOT_FOUND, and y2milestone.
| int Storage::extendMd | ( | const string & | name, | |
| const string & | dev | |||
| ) | [virtual] |
Add a partition to a raid device. This can only be done before the raid is created on disk.
| name | name of software raid device (e.g. /dev/md0) | |
| dev | partition to add to that raid |
Implements storage::StorageInterface.
References assertInit(), checkCache(), storage::MdCo::extendMd(), haveMd(), storage::Md::mdStringNum(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_MD_INVALID_NAME, storage::STORAGE_MD_NOT_FOUND, and y2milestone.
| int Storage::shrinkMd | ( | const string & | name, | |
| const string & | dev | |||
| ) | [virtual] |
Remove a partition from a raid device. This can only be done before the raid is created on disk.
| name | name of software raid device (e.g. /dev/md0) | |
| dev | partition to remove from that raid |
Implements storage::StorageInterface.
References assertInit(), checkCache(), haveMd(), storage::Md::mdStringNum(), readonly, storage::MdCo::shrinkMd(), storage::STORAGE_CHANGE_READONLY, storage::STORAGE_MD_INVALID_NAME, storage::STORAGE_MD_NOT_FOUND, and y2milestone.
| int Storage::changeMdType | ( | const string & | name, | |
| storage::MdType | rtype | |||
| ) | [virtual] |
Change raid type of a raid device. This can only be done before the raid is created on disk.
| name | name of software raid device (e.g. /dev/md0) | |
| rtype | new raid personality of the software raid |
Implements storage::StorageInterface.
References assertInit(), storage::MdCo::changeMdType(), checkCache(), haveMd(), storage::Md::mdStringNum(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_MD_INVALID_NAME, storage::STORAGE_MD_NOT_FOUND, and y2milestone.
| int Storage::changeMdChunk | ( | const string & | name, | |
| unsigned long | chunk | |||
| ) | [virtual] |
Change chunk size of a raid device. This can only be done before the raid is created on disk.
| name | name of software raid device (e.g. /dev/md0) | |
| chunk | new chunk size of the software raid |
Implements storage::StorageInterface.
References assertInit(), storage::MdCo::changeMdChunk(), checkCache(), haveMd(), storage::Md::mdStringNum(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_MD_INVALID_NAME, storage::STORAGE_MD_NOT_FOUND, and y2milestone.
| int Storage::changeMdParity | ( | const string & | name, | |
| storage::MdParity | ptype | |||
| ) | [virtual] |
Change parity of a raid device with raid type raid5. This can only be done before the raid is created on disk.
| name | name of software raid device (e.g. /dev/md0) | |
| ptype | new parity of the software raid |
Implements storage::StorageInterface.
References assertInit(), storage::MdCo::changeMdParity(), checkCache(), haveMd(), storage::Md::mdStringNum(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_MD_INVALID_NAME, storage::STORAGE_MD_NOT_FOUND, and y2milestone.
| int Storage::checkMd | ( | const string & | name | ) | [virtual] |
Check if a raid device is valid
| name | name of software raid device (e.g. /dev/md0) |
Implements storage::StorageInterface.
References assertInit(), storage::MdCo::checkMd(), haveMd(), storage::Md::mdStringNum(), storage::STORAGE_MD_NOT_FOUND, and y2milestone.
| int Storage::addNfsDevice | ( | const string & | nfsDev, | |
| const string & | opts, | |||
| unsigned long long | sizeK, | |||
| const string & | mp | |||
| ) | [virtual] |
Add knowledge about existence of nfs device.
| nfsDev | name of nfs device | |
| sizeK | size of the nfs device | |
| opts | mount options for nfs mount | |
| mp | mount point of the nfs device |
Implements storage::StorageInterface.
References storage::NfsCo::addNfs(), addToList(), assertInit(), checkCache(), checkNfsDevice(), haveNfs(), readonly, storage::STORAGE_CHANGE_READONLY, y2mil, and y2milestone.
| int Storage::checkNfsDevice | ( | const string & | nfsDev, | |
| const string & | opts, | |||
| unsigned long long & | sizeK | |||
| ) | [virtual] |
Check accessibility and size of nfs device.
| nfsDev | name of nfs device | |
| opts | mount options for nfs mount | |
| sizeK | size of the nfs device |
Implements storage::StorageInterface.
References storage::NfsCo::addNfs(), assertInit(), storage::createPath(), storage::SystemCmd::execute(), getDfSize(), instsys(), tmpDir(), storage::Container::vBegin(), and y2mil.
Referenced by addNfsDevice().
| int Storage::createFileLoop | ( | const string & | lname, | |
| bool | reuseExisting, | |||
| unsigned long long | sizeK, | |||
| const string & | mp, | |||
| const string & | pwd, | |||
| string & | device | |||
| ) | [virtual] |
Create a file based loop device. Encryption is automatically activated on the loop device.
| lname | name of file the loop device is based on | |
| reuseExisting | if true an already existing file will be reused. if false the file will be created new. if false the format flag for the device is set by default. | |
| sizeK | size of the created file, this parameter is ignored if reuseExisting is true and a file already exists. | |
| mp | mount point of the file based loop device | |
| pwd | crypt password for the loop device, encryption type is determined automatically by the system | |
| device | the name of the created loop device |
Implements storage::StorageInterface.
References addToList(), assertInit(), storage::Volume::changeMount(), checkCache(), storage::LoopCo::createLoop(), storage::EXT3, storage::Container::findVolume(), haveLoop(), readonly, root(), storage::Volume::setCryptPwd(), storage::Volume::setEncryption(), storage::Volume::setFormat(), storage::STORAGE_CHANGE_READONLY, storage::STORAGE_CREATED_LOOP_NOT_FOUND, storage::STORAGE_MEMORY_EXHAUSTED, y2mil, and y2milestone.
| int Storage::modifyFileLoop | ( | const string & | device, | |
| const string & | lname, | |||
| bool | reuseExisting, | |||
| unsigned long long | sizeK | |||
| ) | [virtual] |
Modify size and pathname of a file based loop device. This function can only be used between the creation of a device and the next call to commit(). Containers that are already created cannot have these properties changed. The size has only a meaning if reuseExisting is true, otherwise it is ignored.
| device | device name of the loop device | |
| lname | name of file the loop device is based on | |
| reuseExisting | if true an already existing file will be reused. if false the file will be created new. if false the format flag for the device is set by default. | |
| sizeK | size of the created file, this parameter is ignored if reuseExisting is false |
Implements storage::StorageInterface.
References assertInit(), checkCache(), haveLoop(), readonly, storage::STORAGE_CHANGE_READONLY, storage::STORAGE_LOOP_NOT_FOUND, storage::LoopCo::updateLoop(), and y2milestone.
| int Storage::removeFileLoop | ( | const string & | lname, | |
| bool | removeFile | |||
| ) | [virtual] |
Remove a file based loop device from the system.
| lname | name of file the loop device is based on | |
| removeFile | if true the file is removed together with the based loop device. If false the file is not touched. |
Implements storage::StorageInterface.
References assertInit(), checkCache(), haveLoop(), readonly, storage::LoopCo::removeLoop(), storage::STORAGE_CHANGE_READONLY, storage::STORAGE_LOOP_NOT_FOUND, and y2milestone.
| int Storage::removeDmraid | ( | const string & | name | ) | [virtual] |
Remove a Software raid device.
| name | name of dmraid device to remove (e.g. pdc_dabaheedj) |
Implements storage::StorageInterface.
References assertInit(), dmrCoEnd(), findDmraidCo(), and storage::STORAGE_DMRAID_CO_NOT_FOUND.
| deque< string > Storage::getCommitActions | ( | bool | mark_destructive | ) | [virtual] |
Gets a list of string describing the actions to be executed after next call to commit()
| mark_destructive | if true use <red> around </red> destructive actions (like e.g. deletion, formatting, ...) |
Implements storage::StorageInterface.
References storage::IterPair< Iter >::begin(), cPair(), storage::IterPair< Iter >::empty(), storage::IterPair< Iter >::end(), storage::Volume::getDescText(), and y2milestone.
| const string& storage::Storage::getLastAction | ( | ) | const [inline, virtual] |
Gets action performed last during previous call to commit()
Implements storage::StorageInterface.
References lastAction.
| const string& storage::Storage::getExtendedErrorMessage | ( | ) | const [inline, virtual] |
Gets a possible existing extended error message describing failure of to last call commit()
Implements storage::StorageInterface.
References extendedError.
| void Storage::eraseFreeInfo | ( | const string & | device | ) |
| int Storage::waitForDevice | ( | ) | const |
References y2milestone.
Referenced by storage::Volume::detectEncryption(), storage::DmPartCo::DmPartCo(), storage::MdCo::doCreate(), storage::LvmVg::doCreate(), storage::EvmsCo::doCreate(), storage::DmPartCo::doCreate(), storage::Disk::doCreate(), storage::DmPartCo::doCreateLabel(), storage::Disk::doCreateLabel(), storage::Volume::doCryptsetup(), storage::Dasd::doFdasd(), storage::Volume::doLosetup(), storage::DmPartCo::doRemove(), storage::DmCo::doRemove(), storage::Disk::doRemove(), storage::DmPartCo::doResize(), storage::Disk::doResize(), storage::Disk::doSetType(), storage::EvmsCo::EvmsCo(), storage::LvmVg::LvmVg(), removeDmMapsTo(), removeDmTable(), storage::Volume::triggerUdevUpdate(), and waitForDevice().
| int Storage::waitForDevice | ( | const string & | device | ) | const |
References storage::STORAGE_DEVICE_NODE_NOT_FOUND, waitForDevice(), and y2milestone.
| void Storage::checkDeviceExclusive | ( | const string & | device, | |
| unsigned | secs | |||
| ) |
References storage::delay(), and y2mil.
References storage::IterPair< Iter >::begin(), dPair(), storage::IterPair< Iter >::end(), and y2mil.
Referenced by storage::Dasd::doDasdfmt().
| void Storage::changeDeviceName | ( | const string & | old, | |
| const string & | nw | |||
| ) |
References storage::IterPair< Iter >::begin(), cPair(), storage::IterPair< Iter >::end(), and y2mil.
Referenced by storage::Partition::changeNumber().
| int Storage::commit | ( | ) | [virtual] |
Commit the current state to the system. Only useful in caching mode.
Implements storage::StorageInterface.
References assertInit(), storage::IterPair< Iter >::begin(), commitPair(), cPair(), dumpObjectList(), storage::IterPair< Iter >::empty(), storage::IterPair< Iter >::end(), extendedError, fstabAdded(), isLoop(), lastAction, notLoop(), vPair(), and y2milestone.
Referenced by checkCache().
| void Storage::handleHald | ( | bool | stop | ) |
References storage::extractNthWord(), storage::SystemCmd::getLine(), hald_pid, storage::SystemCmd::numLines(), and y2mil.
Referenced by storage::Disk::execCheckFailed().
| void Storage::activateHld | ( | bool | val = true |
) | [virtual] |
Activate or deactivate higher level devices as MD,LVM,DM,EVMS
| val | flag if devices should be activated or deactivated |
Implements storage::StorageInterface.
References storage::EvmsCo::activate(), storage::LvmVg::activate(), storage::MdCo::activate(), storage::Dm::activate(), tmpDir(), and y2milestone.
Referenced by commitPair().
| void Storage::removeDmTableTo | ( | const Volume & | vol | ) |
References storage::Volume::cType(), storage::decString(), storage::Container::device(), storage::Volume::device(), storage::Dm::devToTable(), storage::DISK, storage::Volume::getContainer(), storage::SystemCmd::getLine(), storage::Container::majorNr(), storage::MD, storage::Container::minorNr(), storage::SystemCmd::numLines(), removeDmMapsTo(), removeDmTable(), and y2mil.
Referenced by storage::MdCo::doCreate(), storage::LvmVg::doCreatePv(), storage::Volume::doCryptsetup(), storage::Volume::doFormat(), storage::Volume::doLosetup(), storage::Volume::doMount(), evmsActivateDevices(), getFreeInfo(), storage::Volume::prepareRemove(), and removeDmTableTo().
| void Storage::removeDmTableTo | ( | const string & | device | ) | [virtual] |
Remove all possibly existing dm maps to a given device
| device | device name for which dm maps should be removed |
Implements storage::StorageInterface.
References findVolume(), removeDmTableTo(), and y2mil.
| bool Storage::removeDmTable | ( | const string & | table | ) |
References storage::SystemCmd::execute(), logProcData(), storage::SystemCmd::retcode(), waitForDevice(), and y2milestone.
Referenced by storage::LvmVg::doRemove(), evmsActivateDevices(), and removeDmTableTo().
| bool Storage::removeDmMapsTo | ( | const string & | dev, | |
| bool | also_evms = false | |||
| ) |
References storage::Volume::created(), dEnd(), findDisk(), findVolume(), isDmContainer(), storage::Dm::mapsTo(), storage::Dm::removeTable(), storage::Volume::setDeleted(), storage::Volume::setSilent(), storage::UB_EVMS, vPair(), waitForDevice(), y2mil, y2milestone, and y2warning.
Referenced by storage::DmPartCo::doCreateLabel(), storage::Disk::doCreateLabel(), storage::Disk::doRemove(), evmsActivateDevices(), and removeDmTableTo().
| bool Storage::checkDmMapsTo | ( | const string & | device | ) | [virtual] |
Check if there are dm maps to a given device
| device | device name for which dm maps should be checked |
Implements storage::StorageInterface.
References isDmContainer(), storage::Dm::mapsTo(), vPair(), and y2milestone.
| void Storage::updateDmEmptyPeMap | ( | ) |
| void Storage::dumpObjectList | ( | ) | [virtual] |
Dump list of all objects to log file.
Implements storage::StorageInterface.
References printInfo(), storage::splitString(), and y2milestone.
Referenced by commit(), and initialize().
| void storage::Storage::setCallbackProgressBar | ( | storage::CallbackProgressBar | pfnc | ) | [inline, virtual] |
Sets the callback function called on progress bar events
| pfnc | pointer to function |
Implements storage::StorageInterface.
References progress_bar_cb.
| storage::CallbackProgressBar storage::Storage::getCallbackProgressBar | ( | ) | const [inline, virtual] |
Query the callback function called on progress bar events
Implements storage::StorageInterface.
References progress_bar_cb.
| void storage::Storage::setCallbackShowInstallInfo | ( | storage::CallbackShowInstallInfo | pfnc | ) | [inline, virtual] |
Sets the callback function called to display install info
| pfnc | pointer to function |
Implements storage::StorageInterface.
References install_info_cb.
| storage::CallbackShowInstallInfo storage::Storage::getCallbackShowInstallInfo | ( | ) | const [inline, virtual] |
Query the callback function called to display install info
Implements storage::StorageInterface.
References install_info_cb.
| void storage::Storage::setCallbackInfoPopup | ( | storage::CallbackInfoPopup | pfnc | ) | [inline, virtual] |
Sets the callback function called to display a info popup to the user
| pfnc | pointer to function |
Implements storage::StorageInterface.
References info_popup_cb.
| storage::CallbackInfoPopup storage::Storage::getCallbackInfoPopup | ( | ) | const [inline, virtual] |
Query the callback function called to display info popup to the user
Implements storage::StorageInterface.
References info_popup_cb.
| void storage::Storage::setCallbackYesNoPopup | ( | storage::CallbackYesNoPopup | pfnc | ) | [inline, virtual] |
Sets the callback function called to get a Yes/No decision by the user.
| pfnc | pointer to function |
Implements storage::StorageInterface.
References yesno_popup_cb.
| storage::CallbackYesNoPopup storage::Storage::getCallbackYesNoPopup | ( | ) | const [inline, virtual] |
Query the callback function called to get a Yes/No decision by the user.
Implements storage::StorageInterface.
References yesno_popup_cb.
| void Storage::addInfoPopupText | ( | const string & | disk, | |
| const string | txt | |||
| ) |
References infoPopupTxts, and y2mil.
Referenced by storage::Dasd::checkFdasdOutput(), and storage::Disk::checkPartedOutput().
| static void storage::Storage::setCallbackProgressBarYcp | ( | storage::CallbackProgressBar | pfnc | ) | [inline, static] |
References progress_bar_cb_ycp.
| static storage::CallbackProgressBar storage::Storage::getCallbackProgressBarYcp | ( | ) | [inline, static] |
References progress_bar_cb_ycp.
| static void storage::Storage::setCallbackShowInstallInfoYcp | ( | storage::CallbackShowInstallInfo | pfnc | ) | [inline, static] |
References install_info_cb_ycp.
| static storage::CallbackShowInstallInfo storage::Storage::getCallbackShowInstallInfoYcp | ( | ) | [inline, static] |
References install_info_cb_ycp.
| static void storage::Storage::setCallbackInfoPopupYcp | ( | storage::CallbackInfoPopup | pfnc | ) | [inline, static] |
References info_popup_cb_ycp.
| static storage::CallbackInfoPopup storage::Storage::getCallbackInfoPopupYcp | ( | ) | [inline, static] |
References info_popup_cb_ycp.
| static void storage::Storage::setCallbackYesNoPopupYcp | ( | storage::CallbackYesNoPopup | pfnc | ) | [inline, static] |
References yesno_popup_cb_ycp.
| static storage::CallbackYesNoPopup storage::Storage::getCallbackYesNoPopupYcp | ( | ) | [inline, static] |
References yesno_popup_cb_ycp.
| storage::CallbackProgressBar storage::Storage::getCallbackProgressBarTheOne | ( | ) | const [inline] |
References progress_bar_cb, and progress_bar_cb_ycp.
Referenced by storage::Dasd::doDasdfmt(), storage::Volume::doFormat(), and progressBarCb().
| storage::CallbackShowInstallInfo storage::Storage::getCallbackShowInstallInfoTheOne | ( | ) | const [inline] |
| storage::CallbackInfoPopup storage::Storage::getCallbackInfoPopupTheOne | ( | ) | const [inline] |
| storage::CallbackYesNoPopup storage::Storage::getCallbackYesNoPopupTheOne | ( | ) | const [inline] |
| void Storage::progressBarCb | ( | const string & | id, | |
| unsigned | cur, | |||
| unsigned | max | |||
| ) |
References getCallbackProgressBarTheOne(), and y2milestone.
| void Storage::showInfoCb | ( | const string & | info | ) |
References getCallbackShowInstallInfoTheOne(), lastAction, and y2milestone.
Referenced by storage::MdCo::doCreate(), storage::LvmVg::doCreate(), storage::LoopCo::doCreate(), storage::EvmsCo::doCreate(), storage::DmPartCo::doCreate(), storage::Disk::doCreate(), storage::EvmsCo::doCreateCo(), storage::DmPartCo::doCreateLabel(), storage::Disk::doCreateLabel(), storage::LvmVg::doCreateVg(), storage::Volume::doCryptsetup(), storage::Dasd::doDasdfmt(), storage::EvmsCo::doExtendCo(), storage::LvmVg::doExtendVg(), storage::Dasd::doFdasd(), storage::Volume::doFormat(), storage::Volume::doFstabUpdate(), storage::Volume::doLosetup(), storage::Volume::doMount(), storage::EvmsCo::doReduceCo(), storage::LvmVg::doReduceVg(), storage::NfsCo::doRemove(), storage::MdCo::doRemove(), storage::LvmVg::doRemove(), storage::LoopCo::doRemove(), storage::EvmsCo::doRemove(), storage::DmraidCo::doRemove(), storage::DmPartCo::doRemove(), storage::DmCo::doRemove(), storage::Disk::doRemove(), storage::EvmsCo::doRemoveCo(), storage::LvmVg::doRemoveVg(), storage::LvmVg::doResize(), storage::EvmsCo::doResize(), storage::DmPartCo::doResize(), storage::Disk::doResize(), storage::Volume::doSetLabel(), storage::DmPartCo::doSetType(), and storage::Disk::doSetType().
| void Storage::infoPopupCb | ( | const string & | info | ) |
| bool Storage::yesnoPopupCb | ( | const string & | info | ) |
References getCallbackYesNoPopupTheOne(), and y2milestone.
| ConstContPair storage::Storage::contPair | ( | bool(*)(const Container &) | CheckFnc = NULL |
) | const [inline] |
References contBegin(), and contEnd().
Referenced by dmBegin(), dmCondBegin(), dmCondEnd(), dmEnd(), getContainers(), loopBegin(), loopCondBegin(), loopCondEnd(), loopEnd(), mdBegin(), mdCondBegin(), mdCondEnd(), mdEnd(), nfsBegin(), nfsCondBegin(), nfsCondEnd(), nfsEnd(), volBegin(), volCondBegin(), volCondEnd(), and volEnd().
| ConstContIterator storage::Storage::contBegin | ( | bool(*)(const Container &) | CheckFnc = NULL |
) | const [inline] |
| ConstContIterator storage::Storage::contEnd | ( | bool(*)(const Container &) | CheckFnc = NULL |
) | const [inline] |
| ContCondIPair<Pred>::type storage::Storage::contCondPair | ( | const Pred & | p | ) | const [inline] |
References contCondBegin(), and contCondEnd().
| ConstContainerI<Pred>::type storage::Storage::contCondBegin | ( | const Pred & | p | ) | const [inline] |
| ConstContainerI<Pred>::type storage::Storage::contCondEnd | ( | const Pred & | p | ) | const [inline] |
References cBegin(), and cEnd().
Referenced by changeDeviceName(), commit(), commitPair(), evmsActivateDevices(), findContainer(), findVolume(), getCommitActions(), haveEvms(), haveLoop(), haveMd(), haveNfs(), vBegin(), and vEnd().
| ContIterator storage::Storage::cBegin | ( | bool(*)(const Container &) | CheckFnc = NULL |
) | [inline, protected] |
| ContIterator storage::Storage::cEnd | ( | bool(*)(const Container &) | CheckFnc = NULL |
) | [inline, protected] |
| ConstDiskPair storage::Storage::diskPair | ( | bool(*)(const Disk &) | CheckFnc = NULL |
) | const [inline] |
References diskBegin(), and diskEnd().
Referenced by deviceByNumber(), storage::EvmsCo::getNormalVolumes(), partBegin(), partCondBegin(), partCondEnd(), and partEnd().
| ConstDiskIterator storage::Storage::diskBegin | ( | bool(*)(const Disk &) | CheckFnc = NULL |
) | const [inline] |
| ConstDiskIterator storage::Storage::diskEnd | ( | bool(*)(const Disk &) | CheckFnc = NULL |
) | const [inline] |
| DiskCondIPair<Pred>::type storage::Storage::diskCondPair | ( | const Pred & | p | ) | const [inline] |
References diskCondBegin(), and diskCondEnd().
| ConstDiskI<Pred>::type storage::Storage::diskCondBegin | ( | const Pred & | p | ) | const [inline] |
| ConstDiskI<Pred>::type storage::Storage::diskCondEnd | ( | const Pred & | p | ) | const [inline] |
References dBegin(), and dEnd().
Referenced by findDisk(), findDiskId(), findDiskPath(), and getDiskList().
| DiskIterator storage::Storage::dBegin | ( | bool(*)(const Disk &) | CheckFnc = NULL |
) | [inline, protected] |
| DiskIterator storage::Storage::dEnd | ( | bool(*)(const Disk &) | CheckFnc = NULL |
) | [inline, protected] |
References cont.
Referenced by canUseDevice(), createPartition(), createPartitionAny(), createPartitionKb(), createPartitionMax(), cylinderToKb(), destroyPartitionTable(), detectMultipath(), deviceSize(), dPair(), getContDiskInfo(), getContVolInfo(), getDiskInfo(), getMountBy(), getPartitionInfo(), handleEvmsRemoveDevice(), initializeDisk(), isDisk(), kbToCylinder(), knownDevice(), nextFreePartition(), removeDmMapsTo(), setUsedBy(), and usedBy().
| ConstLvmVgPair storage::Storage::lvmVgPair | ( | bool(*)(const LvmVg &) | CheckFnc = NULL |
) | const [inline] |
References lvmVgBegin(), and lvmVgEnd().
Referenced by lvmLvBegin(), lvmLvCondBegin(), lvmLvCondEnd(), and lvmLvEnd().
| ConstLvmVgIterator storage::Storage::lvmVgBegin | ( | bool(*)(const LvmVg &) | CheckFnc = NULL |
) | const [inline] |
| ConstLvmVgIterator storage::Storage::lvmVgEnd | ( | bool(*)(const LvmVg &) | CheckFnc = NULL |
) | const [inline] |
| LvmVgCondIPair<Pred>::type storage::Storage::lvmVgCondPair | ( | const Pred & | p | ) | const [inline] |
References lvmVgCondBegin(), and lvmVgCondEnd().
| ConstLvmVgI<Pred>::type storage::Storage::lvmVgCondBegin | ( | const Pred & | p | ) | const [inline] |
| ConstLvmVgI<Pred>::type storage::Storage::lvmVgCondEnd | ( | const Pred & | p | ) | const [inline] |
| LvmVgIterator storage::Storage::lvgBegin | ( | bool(*)(const LvmVg &) | CheckFnc = NULL |
) | [inline, protected] |
| LvmVgIterator storage::Storage::lvgEnd | ( | bool(*)(const LvmVg &) | CheckFnc = NULL |
) | [inline, protected] |
References cont.
Referenced by changeLvStripeCount(), changeLvStripeSize(), createLvmLv(), createLvmVg(), extendLvmVg(), getContLvmVgInfo(), getLvmLvInfo(), getLvmVgInfo(), lvgPair(), removeEvmsContainer(), removeLvmLv(), removeLvmVg(), and shrinkLvmVg().
| ConstEvmsCoPair storage::Storage::evmsCoPair | ( | bool(*)(const EvmsCo &) | CheckFnc = NULL |
) | const [inline] |
References evmsCoBegin(), and evmsCoEnd().
Referenced by evmsBegin(), evmsCondBegin(), evmsCondEnd(), and evmsEnd().
| ConstEvmsCoIterator storage::Storage::evmsCoBegin | ( | bool(*)(const EvmsCo &) | CheckFnc = NULL |
) | const [inline] |
| ConstEvmsCoIterator storage::Storage::evmsCoEnd | ( | bool(*)(const EvmsCo &) | CheckFnc = NULL |
) | const [inline] |
| EvmsCoCondIPair<Pred>::type storage::Storage::evmsCoCondPair | ( | const Pred & | p | ) | const [inline] |
References evmsCoCondBegin(), and evmsCoCondEnd().
| ConstEvmsCoI<Pred>::type storage::Storage::evmsCoCondBegin | ( | const Pred & | p | ) | const [inline] |
| ConstEvmsCoI<Pred>::type storage::Storage::evmsCoCondEnd | ( | const Pred & | p | ) | const [inline] |
| EvmsCoPair storage::Storage::evCoPair | ( | bool(*)(const EvmsCo &) | CheckFnc = NULL |
) | [inline, protected] |
| EvmsCoIterator storage::Storage::evCoBegin | ( | bool(*)(const EvmsCo &) | CheckFnc = NULL |
) | [inline, protected] |
| EvmsCoIterator storage::Storage::evCoEnd | ( | bool(*)(const EvmsCo &) | CheckFnc = NULL |
) | [inline, protected] |
References cont.
Referenced by changeEvmsStripeCount(), changeEvmsStripeSize(), createEvmsContainer(), createEvmsVolume(), detectEvms(), detectObjects(), evCoPair(), extendEvmsContainer(), getContEvmsCoInfo(), getEvmsCoInfo(), getEvmsInfo(), modifyEvmsContainer(), removeEvmsContainer(), removeEvmsVolume(), removeLvmVg(), and shrinkEvmsContainer().
| ConstDmPartCoPair storage::Storage::dmpartCoPair | ( | bool(*)(const DmPartCo &) | CheckFnc = NULL |
) | const [inline] |
References dmpartCoBegin(), and dmpartCoEnd().
| ConstDmPartCoIterator storage::Storage::dmpartCoBegin | ( | bool(*)(const DmPartCo &) | CheckFnc = NULL |
) | const [inline] |
| ConstDmPartCoIterator storage::Storage::dmpartCoEnd | ( | bool(*)(const DmPartCo &) | CheckFnc = NULL |
) | const [inline] |
| DmPartCoCondIPair<Pred>::type storage::Storage::dmPartCoCondPair | ( | const Pred & | p | ) | const [inline] |
References dmpartCoCondBegin(), and dmpartCoCondEnd().
| ConstDmPartCoI<Pred>::type storage::Storage::dmpartCoCondBegin | ( | const Pred & | p | ) | const [inline] |
| ConstDmPartCoI<Pred>::type storage::Storage::dmpartCoCondEnd | ( | const Pred & | p | ) | const [inline] |
| DmPartCoPair storage::Storage::dmpCoPair | ( | bool(*)(const DmPartCo &) | CheckFnc = NULL |
) | [inline, protected] |
| DmPartCoIterator storage::Storage::dmpCoBegin | ( | bool(*)(const DmPartCo &) | CheckFnc = NULL |
) | [inline, protected] |
| DmPartCoIterator storage::Storage::dmpCoEnd | ( | bool(*)(const DmPartCo &) | CheckFnc = NULL |
) | [inline, protected] |
References cont.
Referenced by createPartition(), createPartitionAny(), createPartitionKb(), createPartitionMax(), cylinderToKb(), destroyPartitionTable(), dmpCoPair(), initializeDisk(), kbToCylinder(), and nextFreePartition().
| ConstDmraidCoPair storage::Storage::dmraidCoPair | ( | bool(*)(const DmraidCo &) | CheckFnc = NULL |
) | const [inline] |
References dmraidCoBegin(), and dmraidCoEnd().
Referenced by deviceByNumber(), dmrBegin(), dmrCondBegin(), dmrEnd(), and storage::DmCo::getDmData().
| ConstDmraidCoIterator storage::Storage::dmraidCoBegin | ( | bool(*)(const DmraidCo &) | CheckFnc = NULL |
) | const [inline] |
| ConstDmraidCoIterator storage::Storage::dmraidCoEnd | ( | bool(*)(const DmraidCo &) | CheckFnc = NULL |
) | const [inline] |
| DmraidCoCondIPair<Pred>::type storage::Storage::dmraidCoCondPair | ( | const Pred & | p | ) | const [inline] |
References dmraidCoCondBegin(), and dmraidCoCondEnd().
| ConstDmraidCoI<Pred>::type storage::Storage::dmraidCoCondBegin | ( | const Pred & | p | ) | const [inline] |
| ConstDmraidCoI<Pred>::type storage::Storage::dmraidCoCondEnd | ( | const Pred & | p | ) | const [inline] |
| DmraidCoPair storage::Storage::dmrCoPair | ( | bool(*)(const DmraidCo &) | CheckFnc = NULL |
) | [inline, protected] |
| DmraidCoIterator storage::Storage::dmrCoBegin | ( | bool(*)(const DmraidCo &) | CheckFnc = NULL |
) | [inline, protected] |
| DmraidCoIterator storage::Storage::dmrCoEnd | ( | bool(*)(const DmraidCo &) | CheckFnc = NULL |
) | [inline, protected] |
References cont.
Referenced by dmrCoPair(), getContDmraidCoInfo(), getContVolInfo(), getDmraidCoInfo(), getDmraidInfo(), and removeDmraid().
| ConstVolPair storage::Storage::volPair | ( | bool(*)(const Container &) | CheckCnt | ) | const [inline] |
References volBegin(), and volEnd().
Referenced by deviceByNumber(), getAllUsedFs(), getVolumes(), and storage::Volume::loopInUse().
| ConstVolPair storage::Storage::volPair | ( | bool(*)(const Volume &) | CheckVol = NULL, |
|
| bool(*)(const Container &) | CheckCnt = NULL | |||
| ) | const [inline] |
References volBegin(), and volEnd().
| ConstVolIterator storage::Storage::volBegin | ( | bool(*)(const Container &) | CheckCnt | ) | const [inline] |
Referenced by volPair().
| ConstVolIterator storage::Storage::volBegin | ( | bool(*)(const Volume &) | CheckVol = NULL, |
|
| bool(*)(const Container &) | CheckCnt = NULL | |||
| ) | const [inline] |
References contPair().
| ConstVolIterator storage::Storage::volEnd | ( | bool(*)(const Container &) | CheckCnt | ) | const [inline] |
Referenced by volPair().
| ConstVolIterator storage::Storage::volEnd | ( | bool(*)(const Volume &) | CheckVol = NULL, |
|
| bool(*)(const Container &) | CheckCnt = NULL | |||
| ) | const [inline] |
References contPair().
| VolCondIPair<Pred>::type storage::Storage::volCondPair | ( | const Pred & | p | ) | const [inline] |
References volCondBegin(), and volCondEnd().
| ConstVolumeI<Pred>::type storage::Storage::volCondBegin | ( | const Pred & | p | ) | const [inline] |
| ConstVolumeI<Pred>::type storage::Storage::volCondEnd | ( | const Pred & | p | ) | const [inline] |
References vBegin(), and vEnd().
Referenced by checkDmMapsTo(), commit(), deletedDevice(), evmsActivate(), findVolume(), removeDmMapsTo(), and updateDmEmptyPeMap().
| VolIterator storage::Storage::vBegin | ( | bool(*)(const Container &) | CheckCnt | ) | [inline, protected] |
Referenced by detectObjects(), logVolumes(), and vPair().
| VolIterator storage::Storage::vBegin | ( | bool(*)(const Volume &) | CheckVol = NULL, |
|
| bool(*)(const Container &) | CheckCnt = NULL | |||
| ) | [inline, protected] |
References cPair().
| VolIterator storage::Storage::vEnd | ( | bool(*)(const Container &) | CheckCnt | ) | [inline, protected] |
Referenced by detectObjects(), logVolumes(), and vPair().
| VolIterator storage::Storage::vEnd | ( | bool(*)(const Volume &) | CheckVol = NULL, |
|
| bool(*)(const Container &) | CheckCnt = NULL | |||
| ) | [inline, protected] |
References cPair().
| ConstPartPair storage::Storage::partPair | ( | bool(*)(const Disk &) | CheckCnt | ) | const [inline] |
References partBegin(), and partEnd().
| ConstPartPair storage::Storage::partPair | ( | bool(*)(const Partition &) | CheckPart = NULL, |
|
| bool(*)(const Disk &) | CheckCnt = NULL | |||
| ) | const [inline] |
References partBegin(), and partEnd().
| ConstPartIterator storage::Storage::partBegin | ( | bool(*)(const Disk &) | CheckDisk | ) | const [inline] |
Referenced by partPair().
| ConstPartIterator storage::Storage::partBegin | ( | bool(*)(const Partition &) | CheckPart = NULL, |
|
| bool(*)(const Disk &) | CheckDisk = NULL | |||
| ) | const [inline] |
References diskPair().
| ConstPartIterator storage::Storage::partEnd | ( | bool(*)(const Disk &) | CheckDisk | ) | const [inline] |
Referenced by partPair().
| ConstPartIterator storage::Storage::partEnd | ( | bool(*)(const Partition &) | CheckPart = NULL, |
|
| bool(*)(const Disk &) | CheckDisk = NULL | |||
| ) | const [inline] |
References diskPair().
| PartCondIPair<Pred>::type storage::Storage::partCondPair | ( | const Pred & | p | ) | const [inline] |
References partCondBegin(), and partCondEnd().
| ConstPartitionI<Pred>::type storage::Storage::partCondBegin | ( | const Pred & | p | ) | const [inline] |
| ConstPartitionI<Pred>::type storage::Storage::partCondEnd | ( | const Pred & | p | ) | const [inline] |
| ConstLvmLvPair storage::Storage::lvmLvPair | ( | bool(*)(const LvmVg &) | CheckLvmVg | ) | const [inline] |
| ConstLvmLvPair storage::Storage::lvmLvPair | ( | bool(*)(const LvmLv &) | CheckLvmLv = NULL, |
|
| bool(*)(const LvmVg &) | CheckLvmVg = NULL | |||
| ) | const [inline] |
References lvmLvBegin(), and lvmLvEnd().
| ConstLvmLvIterator storage::Storage::lvmLvBegin | ( | bool(*)(const LvmVg &) | CheckLvmVg | ) | const [inline] |
Referenced by lvmLvPair().
| ConstLvmLvIterator storage::Storage::lvmLvBegin | ( | bool(*)(const LvmLv &) | CheckLvmLv = NULL, |
|
| bool(*)(const LvmVg &) | CheckLvmVg = NULL | |||
| ) | const [inline] |
References lvmVgPair().
| ConstLvmLvIterator storage::Storage::lvmLvEnd | ( | bool(*)(const LvmVg &) | CheckLvmVg | ) | const [inline] |
Referenced by lvmLvPair().
| ConstLvmLvIterator storage::Storage::lvmLvEnd | ( | bool(*)(const LvmLv &) | CheckLvmLv = NULL, |
|
| bool(*)(const LvmVg &) | CheckLvmVg = NULL | |||
| ) | const [inline] |
References lvmVgPair().
| LvmLvCondIPair<Pred>::type storage::Storage::lvmLvCondPair | ( | const Pred & | p | ) | const [inline] |
References lvmLvCondBegin(), and lvmLvCondEnd().
| ConstLvmLvI<Pred>::type storage::Storage::lvmLvCondBegin | ( | const Pred & | p | ) | const [inline] |
| ConstLvmLvI<Pred>::type storage::Storage::lvmLvCondEnd | ( | const Pred & | p | ) | const [inline] |
| ConstEvmsPair storage::Storage::evmsPair | ( | bool(*)(const EvmsCo &) | CheckEvmsCo | ) | const [inline] |
References evmsBegin(), and evmsEnd().
Referenced by evmsActivate(), and storage::DmCo::getDmData().
| ConstEvmsPair storage::Storage::evmsPair | ( | bool(*)(const Evms &) | CheckEvms = NULL, |
|
| bool(*)(const EvmsCo &) | CheckEvmsCo = NULL | |||
| ) | const [inline] |
References evmsBegin(), and evmsEnd().
| ConstEvmsIterator storage::Storage::evmsBegin | ( | bool(*)(const EvmsCo &) | CheckEvmsCo | ) | const [inline] |
Referenced by evmsPair().
| ConstEvmsIterator storage::Storage::evmsBegin | ( | bool(*)(const Evms &) | CheckEvms = NULL, |
|
| bool(*)(const EvmsCo &) | CheckEvmsCo = NULL | |||
| ) | const [inline] |
References evmsCoPair().
| ConstEvmsIterator storage::Storage::evmsEnd | ( | bool(*)(const EvmsCo &) | CheckEvmsCo | ) | const [inline] |
Referenced by evmsPair().
| ConstEvmsIterator storage::Storage::evmsEnd | ( | bool(*)(const Evms &) | CheckEvms = NULL, |
|
| bool(*)(const EvmsCo &) | CheckEvmsCo = NULL | |||
| ) | const [inline] |
References evmsCoPair().
| EvmsCondIPair<Pred>::type storage::Storage::evmsCondPair | ( | const Pred & | p | ) | const [inline] |
References evmsCondBegin(), and evmsCondEnd().
| ConstEvmsI<Pred>::type storage::Storage::evmsCondBegin | ( | const Pred & | p | ) | const [inline] |
| ConstEvmsI<Pred>::type storage::Storage::evmsCondEnd | ( | const Pred & | p | ) | const [inline] |
| ConstMdPair storage::Storage::mdPair | ( | bool(*)(const Md &) | CheckMd = NULL |
) | const [inline] |
| ConstMdIterator storage::Storage::mdBegin | ( | bool(*)(const Md &) | CheckMd = NULL |
) | const [inline] |
| ConstMdIterator storage::Storage::mdEnd | ( | bool(*)(const Md &) | CheckMd = NULL |
) | const [inline] |
| MdCondIPair<Pred>::type storage::Storage::mdCondPair | ( | const Pred & | p | ) | const [inline] |
References mdCondBegin(), and mdCondEnd().
| ConstMdI<Pred>::type storage::Storage::mdCondBegin | ( | const Pred & | p | ) | const [inline] |
| ConstMdI<Pred>::type storage::Storage::mdCondEnd | ( | const Pred & | p | ) | const [inline] |
| ConstLoopPair storage::Storage::loopPair | ( | bool(*)(const Loop &) | CheckLoop = NULL |
) | const [inline] |
| ConstLoopIterator storage::Storage::loopBegin | ( | bool(*)(const Loop &) | CheckLoop = NULL |
) | const [inline] |
| ConstLoopIterator storage::Storage::loopEnd | ( | bool(*)(const Loop &) | CheckLoop = NULL |
) | const [inline] |
| LoopCondIPair<Pred>::type storage::Storage::loopCondPair | ( | const Pred & | p | ) | const [inline] |
References loopCondBegin(), and loopCondEnd().
| ConstLoopI<Pred>::type storage::Storage::loopCondBegin | ( | const Pred & | p | ) | const [inline] |
| ConstLoopI<Pred>::type storage::Storage::loopCondEnd | ( | const Pred & | p | ) | const [inline] |
| ConstNfsPair storage::Storage::nfsPair | ( | bool(*)(const Nfs &) | CheckNfs = NULL |
) | const [inline] |
| ConstNfsIterator storage::Storage::nfsBegin | ( | bool(*)(const Nfs &) | CheckNfs = NULL |
) | const [inline] |
| ConstNfsIterator storage::Storage::nfsEnd | ( | bool(*)(const Nfs &) | CheckNfs = NULL |
) | const [inline] |
| NfsCondIPair<Pred>::type storage::Storage::nfsCondPair | ( | const Pred & | p | ) | const [inline] |
References nfsCondBegin(), and nfsCondEnd().
| ConstNfsI<Pred>::type storage::Storage::nfsCondBegin | ( | const Pred & | p | ) | const [inline] |
| ConstNfsI<Pred>::type storage::Storage::nfsCondEnd | ( | const Pred & | p | ) | const [inline] |
| ConstDmPair storage::Storage::dmPair | ( | bool(*)(const Dm &) | CheckDm = NULL |
) | const [inline] |
| ConstDmIterator storage::Storage::dmBegin | ( | bool(*)(const Dm &) | CheckDm = NULL |
) | const [inline] |
| ConstDmIterator storage::Storage::dmEnd | ( | bool(*)(const Dm &) | CheckDm = NULL |
) | const [inline] |
| DmCondIPair<Pred>::type storage::Storage::dmCondPair | ( | const Pred & | p | ) | const [inline] |
References dmCondBegin(), and dmCondEnd().
| ConstDmI<Pred>::type storage::Storage::dmCondBegin | ( | const Pred & | p | ) | const [inline] |
| ConstDmI<Pred>::type storage::Storage::dmCondEnd | ( | const Pred & | p | ) | const [inline] |
| ConstDmraidPair storage::Storage::dmrPair | ( | bool(*)(const DmraidCo &) | CheckDmraidCo | ) | const [inline] |
| ConstDmraidPair storage::Storage::dmrPair | ( | bool(*)(const Dmraid &) | CheckDmraid = NULL, |
|
| bool(*)(const DmraidCo &) | CheckDmraidCo = NULL | |||
| ) | const [inline] |
References dmrBegin(), and dmrEnd().
| ConstDmraidIterator storage::Storage::dmrBegin | ( | bool(*)(const DmraidCo &) | CheckDmraidCo | ) | const [inline] |
Referenced by dmrPair().
| ConstDmraidIterator storage::Storage::dmrBegin | ( | bool(*)(const Dmraid &) | CheckDmraid = NULL, |
|
| bool(*)(const DmraidCo &) | CheckDmraidCo = NULL | |||
| ) | const [inline] |
References dmraidCoPair().
| ConstDmraidIterator storage::Storage::dmrEnd | ( | bool(*)(const DmraidCo &) | CheckDmraidCo | ) | const [inline] |
Referenced by dmrPair().
| ConstDmraidIterator storage::Storage::dmrEnd | ( | bool(*)(const Dmraid &) | CheckDmraid = NULL, |
|
| bool(*)(const DmraidCo &) | CheckDmraidCo = NULL | |||
| ) | const [inline] |
References dmraidCoPair().
| DmraidCondIPair<Pred>::type storage::Storage::dmrCondPair | ( | const Pred & | p | ) | const [inline] |
References dmrCondBegin(), and dmrCondEnd().
| ConstDmraidI<Pred>::type storage::Storage::dmrCondBegin | ( | const Pred & | p | ) | const [inline] |
| ConstDmraidI<Pred>::type storage::Storage::dmrCondEnd | ( | const Pred & | p | ) | const [inline] |
| void Storage::initialize | ( | ) | [protected] |
References autodetect, detectArch(), detectObjects(), dumpObjectList(), storage::AsciiFile::find(), infoPopupCb(), infoPopupTxts, initialized, inst_sys, logdir, logProcData(), storage::MOUNTBY_DEVICE, storage::MOUNTBY_ID, storage::MOUNTBY_LABEL, storage::MOUNTBY_PATH, storage::MOUNTBY_UUID, setCacheChanges(), setDefaultMountBy(), storage::splitString(), tempdir, testdir, testmode, storage::tolower(), storage::usedBy::type(), storage::UB_NONE, usedBy(), storage::Regex::ws, y2mil, and y2milestone.
Referenced by assertInit().
| void Storage::detectDisks | ( | ProcPart & | ppart | ) | [protected] |
References addToList(), autodetect, autodetectDisks(), detectMultipath(), test(), and testdir.
Referenced by detectObjects().
| void Storage::autodetectDisks | ( | ProcPart & | ppart | ) | [protected] |
References addToList(), storage::DiskData::DASD, storage::DiskData::DISK, storage::getFindMap(), initDisk(), sysfs_dir, storage::DiskData::XEN, y2mil, y2milestone, and y2warning.
Referenced by detectDisks().
| void Storage::detectMultipath | ( | ) | [protected] |
References dEnd(), deviceByNumber(), storage::extractNthWord(), findDisk(), storage::SystemCmd::getLine(), storage::SystemCmd::numLines(), y2mil, and y2war.
Referenced by detectDisks().
| void Storage::detectMds | ( | ) | [protected] |
References addToList(), storage::Container::isEmpty(), test(), and testdir.
Referenced by detectObjects().
| void Storage::detectLoops | ( | ProcPart & | ppart | ) | [protected] |
References addToList(), storage::Container::isEmpty(), test(), and testdir.
Referenced by detectObjects().
| void Storage::detectNfs | ( | ProcMounts & | mounts | ) | [protected] |
References addToList(), storage::Container::isEmpty(), test(), and testdir.
Referenced by detectObjects().
| void Storage::detectLvmVgs | ( | ) | [protected] |
References addToList(), storage::PeContainer::checkConsistency(), storage::LvmVg::getVgs(), storage::LvmVg::inactive(), test(), testdir, storage::PeContainer::unuseDev(), and y2milestone.
Referenced by detectObjects().
| void Storage::detectEvms | ( | ) | [protected] |
References storage::EvmsCo::activate(), addToList(), storage::EvmsCo::canDoEvms(), storage::EvmsCo::checkConsistency(), storage::EvmsTree::cont, evCoEnd(), findEvmsCo(), storage::EvmsCo::getEvmsList(), isEvmsMd(), storage::EvmsCo::isValid(), storage::IterPair< Iter >::length(), storage::Container::numVolumes(), removeContainer(), test(), testdir, storage::Container::volPair(), storage::EvmsTree::volumes, and y2mil.
Referenced by detectObjects(), and evmsActivate().
| void Storage::detectDmraid | ( | ProcPart & | ppart | ) | [protected] |
| void Storage::detectDm | ( | ProcPart & | ppart | ) | [protected] |
References addToList(), storage::Container::isEmpty(), test(), testdir, and storage::DmCo::updateDmMaps().
Referenced by detectObjects().
| void Storage::detectFsData | ( | const VolIterator & | begin, | |
| const VolIterator & | end, | |||
| ProcMounts & | mounts | |||
| ) | [protected] |
References detectMounted, storage::ENC_NONE, fstab, storage::FSUNKNOWN, logdir, logVolumes(), max_log_num, storage::UB_NONE, y2mil, and y2milestone.
Referenced by detectObjects(), and evmsActivate().
| void Storage::detectFsDataTestMode | ( | const string & | file, | |
| const VolIterator & | begin, | |||
| const VolIterator & | end | |||
| ) | [protected] |
| int Storage::resizeVolume | ( | const string & | device, | |
| unsigned long long | newSizeMb, | |||
| bool | ignore_fs | |||
| ) | [protected] |
| int Storage::resizePartition | ( | const string & | device, | |
| unsigned long | sizeCyl, | |||
| bool | ignore_fs | |||
| ) | [protected] |
References assertInit(), checkCache(), cont, storage::DISK, storage::DMRAID, findVolume(), readonly, storage::DmPartCo::resizePartition(), storage::Disk::resizePartition(), storage::Volume::setIgnoreFs(), storage::STORAGE_CHANGE_READONLY, storage::STORAGE_RESIZE_INVALID_CONTAINER, storage::STORAGE_VOLUME_NOT_FOUND, and y2milestone.
| void Storage::detectArch | ( | ) | [static, protected] |
References storage::extractNthWord(), storage::AsciiFile::find(), is_ppc_mac, is_ppc_pegasos, proc_arch, and y2milestone.
Referenced by initialize().
| void storage::Storage::addToList | ( | Container * | e | ) | [inline, protected] |
References cont.
Referenced by addNfsDevice(), autodetectDisks(), createEvmsContainer(), createFileLoop(), createLvmVg(), createMd(), createMdAny(), detectDisks(), detectDm(), detectDmraid(), detectEvms(), detectLoops(), detectLvmVgs(), detectMds(), detectNfs(), and modifyEvmsContainer().
| Storage::DiskIterator Storage::findDisk | ( | const string & | disk | ) | [protected] |
References assertInit(), storage::IterPair< Iter >::begin(), dPair(), storage::IterPair< Iter >::end(), and storage::normalizeDevice().
Referenced by canUseDevice(), createPartition(), createPartitionAny(), createPartitionKb(), createPartitionMax(), cylinderToKb(), destroyPartitionTable(), detectMultipath(), deviceSize(), getContDiskInfo(), getContVolInfo(), getDiskInfo(), getMountBy(), getPartitionInfo(), handleEvmsRemoveDevice(), initializeDisk(), isDisk(), kbToCylinder(), knownDevice(), nextFreePartition(), removeDmMapsTo(), setUsedBy(), and usedBy().
| Storage::DiskIterator Storage::findDiskId | ( | const string & | id | ) | [protected] |
References assertInit(), storage::IterPair< Iter >::begin(), dPair(), storage::IterPair< Iter >::end(), and y2mil.
Referenced by getContVolInfo().
| Storage::DiskIterator Storage::findDiskPath | ( | const string & | path | ) | [protected] |
References assertInit(), storage::IterPair< Iter >::begin(), dPair(), storage::IterPair< Iter >::end(), and y2mil.
Referenced by getContVolInfo().
| Storage::LvmVgIterator Storage::findLvmVg | ( | const string & | name | ) | [protected] |
References assertInit(), storage::IterPair< Iter >::begin(), storage::IterPair< Iter >::end(), and lvgPair().
Referenced by changeLvStripeCount(), changeLvStripeSize(), createLvmLv(), createLvmVg(), extendLvmVg(), getContLvmVgInfo(), getLvmLvInfo(), getLvmVgInfo(), removeEvmsContainer(), removeLvmLv(), removeLvmVg(), and shrinkLvmVg().
| Storage::EvmsCoIterator Storage::findEvmsCo | ( | const string & | name | ) | [protected] |
References assertInit(), storage::IterPair< Iter >::begin(), storage::IterPair< Iter >::end(), and evCoPair().
Referenced by changeEvmsStripeCount(), changeEvmsStripeSize(), createEvmsContainer(), createEvmsVolume(), detectEvms(), detectObjects(), extendEvmsContainer(), getContEvmsCoInfo(), getEvmsCoInfo(), getEvmsInfo(), modifyEvmsContainer(), removeEvmsContainer(), removeEvmsVolume(), removeLvmVg(), and shrinkEvmsContainer().
| Storage::DmraidCoIterator Storage::findDmraidCo | ( | const string & | name | ) | [protected] |
References assertInit(), storage::IterPair< Iter >::begin(), dmrCoPair(), storage::IterPair< Iter >::end(), and storage::DmPartCo::undevName().
Referenced by getContDmraidCoInfo(), getContVolInfo(), getDmraidCoInfo(), getDmraidInfo(), and removeDmraid().
| Storage::DmPartCoIterator Storage::findDmPartCo | ( | const string & | name | ) | [protected] |
References assertInit(), storage::IterPair< Iter >::begin(), dmpCoPair(), storage::IterPair< Iter >::end(), and storage::DmPartCo::undevName().
Referenced by createPartition(), createPartitionAny(), createPartitionKb(), createPartitionMax(), cylinderToKb(), destroyPartitionTable(), initializeDisk(), kbToCylinder(), and nextFreePartition().
| bool Storage::findVolume | ( | const string & | device, | |
| ContIterator & | c, | |||
| VolIterator & | v | |||
| ) | [protected] |
References storage::IterPair< Iter >::begin(), cPair(), storage::IterPair< Iter >::end(), findVolume(), and y2milestone.
| bool Storage::findVolume | ( | const string & | device, | |
| VolIterator & | v, | |||
| bool | also_del = false | |||
| ) | [protected] |
| bool Storage::findContainer | ( | const string & | device, | |
| ContIterator & | c | |||
| ) | [protected] |
References storage::IterPair< Iter >::begin(), cPair(), and storage::IterPair< Iter >::end().
Referenced by evmsActivate(), handleEvmsCreateDevice(), handleEvmsRemoveDevice(), haveEvms(), logCo(), and removeDm().
| bool Storage::haveMd | ( | MdCo *& | md | ) | [protected] |
References storage::IterPair< Iter >::begin(), cPair(), storage::IterPair< Iter >::end(), and storage::MD.
Referenced by changeMdChunk(), changeMdParity(), changeMdType(), checkMd(), createMd(), createMdAny(), extendMd(), removeMd(), rootMounted(), and shrinkMd().
| bool Storage::haveNfs | ( | NfsCo *& | co | ) | [protected] |
References storage::IterPair< Iter >::begin(), cPair(), storage::IterPair< Iter >::end(), and storage::NFSC.
Referenced by addNfsDevice().
| bool Storage::haveLoop | ( | LoopCo *& | loop | ) | [protected] |
References storage::IterPair< Iter >::begin(), cPair(), storage::IterPair< Iter >::end(), and storage::LOOP.
Referenced by createFileLoop(), modifyFileLoop(), and removeFileLoop().
| bool Storage::haveEvms | ( | ) | [protected] |
References cPair(), storage::IterPair< Iter >::empty(), findContainer(), isEvmsContainer(), storage::IterPair< Iter >::length(), y2mil, and y2milestone.
Referenced by commitPair(), createPartition(), createPartitionAny(), createPartitionKb(), createPartitionMax(), removeLvmVg(), removePartition(), and removeVolume().
| void Storage::handleEvmsRemoveDevice | ( | const Disk * | disk, | |
| const string & | d, | |||
| bool | rename | |||
| ) | [protected] |
References storage::EvmsCo::addLv(), storage::IterPair< Iter >::begin(), storage::decString(), dEnd(), storage::Container::device(), storage::EvmsCo::devToEvms(), storage::Partition::disk(), storage::IterPair< Iter >::end(), storage::EXTENDED, findContainer(), findDisk(), findVolume(), storage::Container::isEmpty(), logCo(), storage::LOGICAL, storage::Container::name(), storage::Container::sizeK(), storage::Partition::type(), and y2mil.
Referenced by evmsActivate(), removePartition(), and removeVolume().
| void Storage::handleEvmsCreateDevice | ( | const string & | disk, | |
| const string & | dev, | |||
| bool | extended = false | |||
| ) | [protected] |
References storage::EvmsCo::addVolume(), storage::EvmsCo::devToEvms(), storage::EVMS, findContainer(), findVolume(), logCo(), and y2mil.
Referenced by createPartition(), createPartitionAny(), createPartitionKb(), createPartitionMax(), and evmsActivate().
| int Storage::removeContainer | ( | Container * | val, | |
| bool | call_del = true | |||
| ) | [protected] |
References cont, storage::Container::name(), storage::STORAGE_CONTAINER_NOT_FOUND, and y2milestone.
Referenced by commitPair(), detectEvms(), evmsActivate(), modifyEvmsContainer(), removeDm(), removeEvmsContainer(), and removeLvmVg().
| void Storage::logVolumes | ( | const string & | Dir | ) | [protected] |
References storage::FSUNKNOWN, handleLogFile(), vBegin(), and vEnd().
Referenced by detectFsData(), and ~Storage().
References activateHld(), storage::IterPair< Iter >::begin(), storage::Container::commitChanges(), cont, cPair(), storage::DECREASE, storage::Container::deleted(), storage::DISK, storage::IterPair< Iter >::end(), storage::EVMS, evmsActivateDevices(), storage::SystemCmd::execute(), storage::FORMAT, haveEvms(), ignoreError(), storage::INCREASE, instsys(), storage::IterPair< Iter >::length(), storage::lengthof(), logProcData(), storage::LVM, storage::MD, storage::MOUNT, removeContainer(), sortCommitLists(), y2mil, and y2milestone.
Referenced by commit().
| void storage::Storage::sortCommitLists | ( | storage::CommitStage | stage, | |
| std::list< Container * > & | co, | |||
| std::list< Volume * > & | vl, | |||
| std::list< storage::commitAction * > & | todo | |||
| ) | [protected] |
Referenced by commitPair().
| bool storage::Storage::ignoreError | ( | std::list< commitAction * >::iterator | i, | |
| std::list< commitAction * > & | al | |||
| ) | [protected] |
Referenced by commitPair().
| void Storage::evmsActivateDevices | ( | ) | [protected] |
References storage::EvmsCo::activateDevices(), arch(), storage::IterPair< Iter >::begin(), storage::Disk::bootSpecial(), cPair(), storage::DISK, storage::IterPair< Iter >::end(), storage::SystemCmd::execute(), storage::FORMAT, storage::MOUNT, needSaveFromEvms(), storage::Disk::partPair(), removeDmMapsTo(), removeDmTable(), removeDmTableTo(), sort_vol_normal(), tmpDir(), updateDmEmptyPeMap(), y2mil, and y2milestone.
Referenced by commitPair().
| string Storage::backupStates | ( | ) | const [protected] |
| void Storage::detectObjects | ( | ) | [protected] |
References storage::DmraidCo::activate(), storage::LvmVg::activate(), storage::MdCo::activate(), storage::EvmsCo::activate(), storage::IterPair< Iter >::begin(), storage::EvmsCo::canDoEvms(), detectDisks(), detectDm(), detectDmraid(), detectEvms(), detectFsData(), detectFsDataTestMode(), detectLoops(), detectLvmVgs(), detectMds(), detectNfs(), storage::IterPair< Iter >::end(), evCoEnd(), storage::SystemCmd::execute(), storage::extractNthWord(), findEvmsCo(), fstab, storage::SystemCmd::getLine(), instsys(), isRootMounted(), storage::IterPair< Iter >::length(), lvgPair(), storage::SystemCmd::numLines(), rootprefix, storage::system_cmd_testmode, testdir, testmode, tmpDir(), vBegin(), vEnd(), and y2mil.
Referenced by initialize(), and rescanEverything().
| void Storage::deleteClist | ( | CCont & | co | ) | [protected] |
Referenced by deleteBackups(), removeBackupState(), rescanEverything(), and ~Storage().
| void Storage::deleteBackups | ( | ) | [protected] |
| void Storage::setFreeInfo | ( | const string & | device, | |
| unsigned long long | df_free, | |||
| unsigned long long | resize_free, | |||
| unsigned long long | used, | |||
| bool | win, | |||
| bool | efi, | |||
| bool | resize_ok | |||
| ) | [protected] |
| bool Storage::getFreeInf | ( | const string & | device, | |
| unsigned long long & | df_free, | |||
| unsigned long long & | resize_free, | |||
| unsigned long long & | used, | |||
| bool & | win, | |||
| bool & | efi, | |||
| bool & | resize_ok | |||
| ) | [protected] |
| std::ostream& operator<< | ( | std::ostream & | s, | |
| Storage & | v | |||
| ) | [friend] |
Storage::SkipDeleted Storage::SkipDel [static] |
bool storage::Storage::readonly [protected] |
Referenced by addFstabEntry(), addFstabOptions(), addNfsDevice(), changeDescText(), changeEvmsStripeCount(), changeEvmsStripeSize(), changeFormatVolume(), changeFstabOptions(), changeLabelVolume(), changeLvStripeCount(), changeLvStripeSize(), changeMdChunk(), changeMdParity(), changeMdType(), changeMkfsOptVolume(), changeMountBy(), changeMountPoint(), changePartitionId(), changeTunefsOptVolume(), createBackupState(), createEvmsContainer(), createEvmsVolume(), createFileLoop(), createLvmLv(), createLvmVg(), createMd(), createMdAny(), createPartition(), createPartitionAny(), createPartitionKb(), createPartitionMax(), destroyPartitionTable(), eraseLabelVolume(), evmsActivate(), extendEvmsContainer(), extendLvmVg(), extendMd(), forgetChangePartitionId(), forgetCryptPassword(), forgetResizeVolume(), initializeDisk(), modifyEvmsContainer(), modifyFileLoop(), mountDev(), removeBackupState(), removeEvmsContainer(), removeEvmsVolume(), removeFileLoop(), removeFstabOptions(), removeLvmLv(), removeLvmVg(), removeMd(), removePartition(), removeVolume(), resizePartition(), resizeVolume(), restoreBackupState(), setCryptPassword(), setCryptType(), setIgnoreFstab(), shrinkEvmsContainer(), shrinkLvmVg(), shrinkMd(), umountDevice(), and updatePartitionArea().
bool storage::Storage::testmode [protected] |
Referenced by detectObjects(), initialize(), Storage(), and test().
bool storage::Storage::inst_sys [protected] |
Referenced by initialize(), instsys(), and Storage().
bool storage::Storage::cache [protected] |
Referenced by isCacheChanges(), and setCacheChanges().
bool storage::Storage::initialized [protected] |
Referenced by assertInit(), and initialize().
bool storage::Storage::autodetect [protected] |
Referenced by detectDisks(), initialize(), and Storage().
bool storage::Storage::recursiveRemove [protected] |
Referenced by getRecursiveRemoval(), removePartition(), removeVolume(), setRecursiveRemoval(), and Storage().
bool storage::Storage::zeroNewPartitions [protected] |
Referenced by getZeroNewPartitions(), setZeroNewPartitions(), and Storage().
MountByType storage::Storage::defaultMountBy [protected] |
Referenced by getDefaultMountBy(), getMountBy(), setDefaultMountBy(), and Storage().
bool storage::Storage::detectMounted [protected] |
Referenced by detectFsData(), getDetectMountedVolumes(), setDetectMountedVolumes(), and Storage().
bool storage::Storage::root_mounted [protected] |
Referenced by isRootMounted(), rootMounted(), and Storage().
string storage::Storage::testdir [protected] |
Referenced by detectDisks(), detectDm(), detectDmraid(), detectEvms(), detectLoops(), detectLvmVgs(), detectMds(), detectNfs(), detectObjects(), initialize(), and tDir().
string storage::Storage::tempdir [protected] |
Referenced by initialize(), tmpDir(), and ~Storage().
string storage::Storage::rootprefix [protected] |
Referenced by detectObjects(), prependRoot(), root(), and setRootPrefix().
string storage::Storage::logdir [protected] |
Referenced by detectFsData(), initDisk(), initialize(), Storage(), and ~Storage().
unsigned storage::Storage::hald_pid [protected] |
Referenced by handleHald(), and Storage().
string Storage::proc_arch [static, protected] |
Referenced by arch(), and detectArch().
string Storage::sysfs_dir = "/sys/block" [static, protected] |
Referenced by autodetectDisks(), initDisk(), and sysfsDir().
bool Storage::is_ppc_mac = false [static, protected] |
Referenced by detectArch(), and isPPCMac().
bool Storage::is_ppc_pegasos = false [static, protected] |
Referenced by detectArch(), and isPPCPegasos().
bool Storage::no_evms [static, protected] |
Referenced by getNoEv(), getNoEvms(), and setNoEvms().
CCont storage::Storage::cont [protected] |
Referenced by addFstabOptions(), addToList(), cBegin(), cEnd(), changeDescText(), changeFormatVolume(), changeFstabOptions(), changeLabelVolume(), changeMkfsOptVolume(), changeMountBy(), changeMountPoint(), changePartitionId(), changeTunefsOptVolume(), commitPair(), contBegin(), contCondBegin(), contCondEnd(), contEnd(), createBackupState(), dBegin(), dEnd(), diskBegin(), diskCondBegin(), diskCondEnd(), diskEnd(), dmpartCoBegin(), dmpartCoCondBegin(), dmpartCoCondEnd(), dmpartCoEnd(), dmpCoBegin(), dmpCoEnd(), dmraidCoBegin(), dmraidCoCondBegin(), dmraidCoCondEnd(), dmraidCoEnd(), dmrCoBegin(), dmrCoEnd(), equalBackupStates(), eraseLabelVolume(), evCoBegin(), evCoEnd(), evmsCoBegin(), evmsCoCondBegin(), evmsCoCondEnd(), evmsCoEnd(), forgetChangePartitionId(), forgetResizeVolume(), getCrypt(), getFstabOptions(), getIgnoreFstab(), getMountBy(), getMountPoint(), lvgBegin(), lvgEnd(), lvmVgBegin(), lvmVgCondBegin(), lvmVgCondEnd(), lvmVgEnd(), removeContainer(), removeFstabOptions(), removePartition(), removeVolume(), rescanEverything(), resizePartition(), resizeVolume(), restoreBackupState(), setCryptType(), setIgnoreFstab(), updatePartitionArea(), and ~Storage().
EtcFstab* storage::Storage::fstab [protected] |
Referenced by addFstabEntry(), detectFsData(), detectFsDataTestMode(), detectObjects(), getFstab(), readFstab(), and rootMounted().
Referenced by getCallbackProgressBar(), getCallbackProgressBarTheOne(), setCallbackProgressBar(), and Storage().
Referenced by getCallbackShowInstallInfo(), getCallbackShowInstallInfoTheOne(), setCallbackShowInstallInfo(), and Storage().
Referenced by getCallbackInfoPopup(), getCallbackInfoPopupTheOne(), setCallbackInfoPopup(), and Storage().
Referenced by getCallbackYesNoPopup(), getCallbackYesNoPopupTheOne(), setCallbackYesNoPopup(), and Storage().
storage::CallbackProgressBar Storage::progress_bar_cb_ycp [static, protected] |
Referenced by getCallbackProgressBarTheOne(), getCallbackProgressBarYcp(), and setCallbackProgressBarYcp().
storage::CallbackShowInstallInfo Storage::install_info_cb_ycp [static, protected] |
storage::CallbackInfoPopup Storage::info_popup_cb_ycp [static, protected] |
Referenced by getCallbackInfoPopupTheOne(), getCallbackInfoPopupYcp(), and setCallbackInfoPopupYcp().
storage::CallbackYesNoPopup Storage::yesno_popup_cb_ycp [static, protected] |
Referenced by getCallbackYesNoPopupTheOne(), getCallbackYesNoPopupYcp(), and setCallbackYesNoPopupYcp().
unsigned storage::Storage::max_log_num [protected] |
Referenced by detectFsData(), handleLogFile(), initDisk(), Storage(), and ~Storage().
string storage::Storage::lastAction [protected] |
Referenced by commit(), getLastAction(), and showInfoCb().
string storage::Storage::extendedError [protected] |
Referenced by commit(), getExtendedErrorMessage(), and setExtError().
std::map<string,CCont> storage::Storage::backups [protected] |
std::map<string,FreeInfo> storage::Storage::freeInfo [protected] |
Referenced by eraseFreeInfo(), getFreeInf(), and setFreeInfo().
std::list<std::pair<string,string> > storage::Storage::infoPopupTxts [protected] |
Referenced by addInfoPopupText(), and initialize().
1.5.5