storage::Storage Class Reference

#include <Storage.h>

Inheritance diagram for storage::Storage:

storage::StorageInterface

List of all members.

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
< ConstDmPartCoPIterator,
const DmPartCo
ConstDmPartCoIterator
typedef IterPair
< ConstDmPartCoIterator
ConstDmPartCoPair
typedef DerefIterator
< ConstDmraidCoPIterator,
const DmraidCo
ConstDmraidCoIterator
typedef IterPair
< ConstDmraidCoIterator
ConstDmraidCoPair
typedef DerefIterator
< ConstDmmultipathCoPIterator,
const DmmultipathCo
ConstDmmultipathCoIterator
typedef IterPair
< ConstDmmultipathCoIterator
ConstDmmultipathCoPair
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
< ConstMdPIterator, const Md
ConstMdIterator
typedef IterPair< ConstMdIteratorConstMdPair
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< ConstDmIteratorConstDmPair
typedef DerefIterator
< ConstDmraidPIterator, const
Dmraid
ConstDmraidIterator
typedef IterPair
< ConstDmraidIterator
ConstDmraidPair
typedef DerefIterator
< ConstDmmultipathPIterator,
const Dmmultipath
ConstDmmultipathIterator
typedef IterPair
< ConstDmmultipathIterator
ConstDmmultipathPair

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
bool efiBoot () const
EtcFstabgetFstab ()
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 (const 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 clearUsedBy (const string &dev)
bool setUsedBy (const string &dev, storage::UsedByType ub_type, const string &ub_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 VolumegetVolume (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 getDmraidCoInfo (const string &name, storage::DmraidCoInfo &info)
int getDmmultipathCoInfo (const string &name, storage::DmmultipathCoInfo &info)
int getContDiskInfo (const string &disk, storage::ContainerInfo &cinfo, storage::DiskInfo &info)
int getContLvmVgInfo (const string &name, storage::ContainerInfo &cinfo, storage::LvmVgInfo &info)
int getContDmraidCoInfo (const string &name, storage::ContainerInfo &cinfo, storage::DmraidCoInfo &info)
int getContDmmultipathCoInfo (const string &name, storage::ContainerInfo &cinfo, storage::DmmultipathCoInfo &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 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 getDmmultipathInfo (const string &name, deque< storage::DmmultipathInfo > &plist)
int getContVolInfo (const string &dev, ContVolInfo &info)
bool getFsCapabilities (storage::FsType fstype, storage::FsCapabilities &fscapabilities) const
list< 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 freeCylindersAfterPartition (const string &device, unsigned long &freeCyls)
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 getUnusedPartitionSlots (const string &disk, list< PartitionSlotInfo > &slots)
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 setEfiBoot (bool val)
bool getEfiBoot () const
void setRootPrefix (const string &root)
string getRootPrefix () const
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 createLvmLvSnapshot (const string &vg, const string &origin, const string &name, unsigned long long cowSizeK, string &device)
int removeLvmLvSnapshot (const string &vg, const string &name)
int getLvmLvSnapshotStateInfo (const string &vg, const string &name, LvmLvSnapshotStateInfo &info)
int nextFreeMd (int &nr, string &device)
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 getMdStateInfo (const string &name, MdStateInfo &info)
int computeMdSize (MdType md_type, list< string > devices, unsigned long long &sizeK)
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
void getCommitInfo (bool mark_destructive, CommitInfo &info) const
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)
int zeroDevice (const string &device, unsigned long long sizeK, bool random=false, unsigned long long beginK=200, unsigned long long endK=10)
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 activateMultipath (bool val=true)
void removeDmTableTo (const Volume &vol)
void removeDmTableTo (const string &device)
bool removeDmTable (const string &table)
bool removeDmMapsTo (const string &dev)
bool checkDmMapsTo (const string &dev)
void updateDmEmptyPeMap ()
void dumpObjectList ()
string byteToHumanString (unsigned long long size, bool classic, int precision, bool omit_zeroes) const
bool humanStringToByte (const string &str, bool classic, unsigned long long &size) const
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
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
ConstDmmultipathCoPair dmmultipathCoPair (bool(*CheckFnc)(const DmmultipathCo &)=NULL) const
ConstDmmultipathCoIterator dmmultipathCoBegin (bool(*CheckFnc)(const DmmultipathCo &)=NULL) const
ConstDmmultipathCoIterator dmmultipathCoEnd (bool(*CheckFnc)(const DmmultipathCo &)=NULL) const
template<class Pred>
DmmultipathCoCondIPair< Pred >
::type 
dmmultipathCoCondPair (const Pred &p) const
template<class Pred>
ConstDmmultipathCoI< Pred >::type dmmultipathCoCondBegin (const Pred &p) const
template<class Pred>
ConstDmmultipathCoI< Pred >::type dmmultipathCoCondEnd (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
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
ConstDmmultipathPair dmmPair (bool(*CheckDmmultipathCo)(const DmmultipathCo &)) const
ConstDmmultipathPair dmmPair (bool(*CheckDmmultipath)(const Dmmultipath &)=NULL, bool(*CheckDmmultipathCo)(const DmmultipathCo &)=NULL) const
ConstDmmultipathIterator dmmBegin (bool(*CheckDmmultipathCo)(const DmmultipathCo &)) const
ConstDmmultipathIterator dmmBegin (bool(*CheckDmmultipath)(const Dmmultipath &)=NULL, bool(*CheckDmmultipathCo)(const DmmultipathCo &)=NULL) const
ConstDmmultipathIterator dmmEnd (bool(*CheckDmmultipathCo)(const DmmultipathCo &)) const
ConstDmmultipathIterator dmmEnd (bool(*CheckDmmultipath)(const Dmmultipath &)=NULL, bool(*CheckDmmultipathCo)(const DmmultipathCo &)=NULL) const
template<class Pred>
DmmultipathCondIPair< Pred >::type dmmCondPair (const Pred &p) const
template<class Pred>
ConstDmmultipathI< Pred >::type dmmCondBegin (const Pred &p) const
template<class Pred>
ConstDmmultipathI< Pred >::type dmmCondEnd (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 bool isPPCMac ()
static bool isPPCPegasos ()
static bool testFilesEqual (const string &n1, const string &n2)
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 ContainerCheckFncCont
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< ContIteratorCPair
typedef CastCheckIterator
< CCIter, storage::DISK, const
Disk * > 
ContainerCDiskIter
typedef CastCheckIterator
< CIter, storage::DISK, Disk * > 
ContainerDiskIter
typedef CheckFnc< const DiskCheckFncDisk
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< DiskIteratorDiskPair
typedef CastCheckIterator
< CCIter, storage::LVM, const
LvmVg * > 
ContainerCLvmVgIter
typedef CastCheckIterator
< CIter, storage::LVM, LvmVg * > 
ContainerLvmVgIter
typedef CheckFnc< const LvmVgCheckFncLvmVg
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< LvmVgIteratorLvmVgPair
typedef CastCheckFncIterator
< CCIter, isDmPart, const
DmPartCo * > 
ContainerCDmPartIter
typedef CastCheckFncIterator
< CIter, isDmPart, DmPartCo * > 
ContainerDmPartIter
typedef CheckFnc< const DmPartCoCheckFncDmPartCo
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 DmraidCoCheckFncDmraidCo
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 CastCheckIterator
< CCIter, storage::DMMULTIPATH,
const DmmultipathCo * > 
ContainerCDmmultipathIter
typedef CastCheckIterator
< CIter, storage::DMMULTIPATH,
DmmultipathCo * > 
ContainerDmmultipathIter
typedef CheckFnc< const
DmmultipathCo
CheckFncDmmultipathCo
typedef CheckerIterator
< CheckFncDmmultipathCo,
ConstDmmultipathCoPI
< CheckFncDmmultipathCo >
::type,
ContainerCDmmultipathIter,
DmmultipathCo
ConstDmmultipathCoPIterator
typedef CheckerIterator
< CheckFncDmmultipathCo,
DmmultipathCoPI
< CheckFncDmmultipathCo >
::type,
ContainerDmmultipathIter,
DmmultipathCo
DmmultipathCoPIterator
typedef DerefIterator
< DmmultipathCoPIterator,
DmmultipathCo
DmmultipathCoIterator
typedef IterPair
< DmmultipathCoIterator
DmmultipathCoPair
typedef ListListIterator
< Container::ConstPlainIterator,
ConstContIterator
ConstVolInter
typedef CheckFnc< const VolumeCheckFncVol
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< VolIteratorVPair
typedef ListListIterator
< Container::ConstPlainIterator,
ConstDiskIterator
ConstPartInter
typedef CastIterator
< ConstPartInter, Partition * > 
ConstPartInter2
typedef CheckFnc< const PartitionCheckFncPartition
typedef CheckerIterator
< CheckFncPartition,
ConstPartitionPI
< CheckFncPartition >::type,
ConstPartInter2, Partition
ConstPartPIterator
typedef ListListIterator
< Container::ConstPlainIterator,
ConstLvmVgIterator
ConstLvmLvInter
typedef CastIterator
< ConstLvmLvInter, LvmLv * > 
ConstLvmLvInter2
typedef CheckFnc< const LvmLvCheckFncLvmLv
typedef CheckerIterator
< CheckFncLvmLv, ConstLvmLvPI
< CheckFncLvmLv >::type,
ConstLvmLvInter2, LvmLv
ConstLvmLvPIterator
typedef CastIterator
< ConstVolInter, Md * > 
ConstMdInter
typedef CheckFnc< const MdCheckFncMd
typedef CheckerIterator
< CheckFncMd, ConstMdPI
< CheckFncMd >::type,
ConstMdInter, Md
ConstMdPIterator
typedef CastIterator
< ConstVolInter, Loop * > 
ConstLoopInter
typedef CheckFnc< const LoopCheckFncLoop
typedef CheckerIterator
< CheckFncLoop, ConstLoopPI
< CheckFncLoop >::type,
ConstLoopInter, Loop
ConstLoopPIterator
typedef CastIterator
< ConstVolInter, Nfs * > 
ConstNfsInter
typedef CheckFnc< const NfsCheckFncNfs
typedef CheckerIterator
< CheckFncNfs, ConstNfsPI
< CheckFncNfs >::type,
ConstNfsInter, Nfs
ConstNfsPIterator
typedef CastIterator
< ConstVolInter, Dm * > 
ConstDmInter
typedef CheckFnc< const DmCheckFncDm
typedef CheckerIterator
< CheckFncDm, ConstDmPI
< CheckFncDm >::type,
ConstDmInter, Dm
ConstDmPIterator
typedef ListListIterator
< Container::ConstPlainIterator,
ConstDmraidCoIterator
ConstDmraidInter
typedef CastIterator
< ConstDmraidInter, Dmraid * > 
ConstDmraidInter2
typedef CheckFnc< const DmraidCheckFncDmraid
typedef CheckerIterator
< CheckFncDmraid,
ConstDmraidPI< CheckFncDmraid >
::type, ConstDmraidInter2,
Dmraid
ConstDmraidPIterator
typedef ListListIterator
< Container::ConstPlainIterator,
ConstDmmultipathCoIterator
ConstDmmultipathInter
typedef CastIterator
< ConstDmmultipathInter,
Dmmultipath * > 
ConstDmmultipathInter2
typedef CheckFnc< const
Dmmultipath
CheckFncDmmultipath
typedef CheckerIterator
< CheckFncDmmultipath,
ConstDmmultipathPI
< CheckFncDmmultipath >::type,
ConstDmmultipathInter2,
Dmmultipath
ConstDmmultipathPIterator

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)
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)
DmmultipathCoPair dmmCoPair (bool(*CheckFnc)(const DmmultipathCo &)=NULL)
DmmultipathCoIterator dmmCoBegin (bool(*CheckFnc)(const DmmultipathCo &)=NULL)
DmmultipathCoIterator dmmCoEnd (bool(*CheckFnc)(const DmmultipathCo &)=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 logSystemInfo () const
void detectDisks (ProcPart &ppart)
void autodetectDisks (ProcPart &ppart)
void detectMultipath ()
void detectMds ()
void detectLoops (ProcPart &ppart)
void detectNfs (ProcMounts &mounts)
void detectLvmVgs ()
void detectDmraid (ProcPart &ppart)
void detectDmmultipath (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)
DmraidCoIterator findDmraidCo (const string &name)
DmmultipathCoIterator findDmmultipathCo (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)
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)
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

Lock lock
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
bool efiboot
CCont cont
EtcFstabfstab
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, CContbackups
std::map< string, FreeInfofreeInfo
std::list< std::pair< string,
string > > 
infoPopupTxts

Static Protected Attributes

static string proc_arch
static bool is_ppc_mac = false
static bool is_ppc_pegasos = false
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  ConstDmmultipathCoI
struct  ConstDmmultipathCoPI
struct  ConstDmmultipathI
struct  ConstDmmultipathPI
struct  ConstDmPartCoI
struct  ConstDmPartCoPI
struct  ConstDmPI
struct  ConstDmraidCoI
struct  ConstDmraidCoPI
struct  ConstDmraidI
struct  ConstDmraidPI
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  DmmultipathCoCondIPair
struct  DmmultipathCoI
struct  DmmultipathCondIPair
struct  DmmultipathCoPI
struct  DmPartCoCondIPair
struct  DmPartCoI
struct  DmPartCoPI
struct  DmraidCoCondIPair
struct  DmraidCoI
struct  DmraidCondIPair
struct  DmraidCoPI
struct  FreeInfo
struct  LoopCondIPair
struct  LvmLvCondIPair
struct  LvmVgCondIPair
struct  LvmVgI
struct  LvmVgPI
struct  MdCondIPair
struct  NfsCondIPair
struct  PartCondIPair
struct  SkipDeleted
struct  VolCondIPair
struct  VolumeI


Member Typedef Documentation

typedef std::list<Container*> storage::Storage::CCont [protected]

typedef CCont::iterator storage::Storage::CIter [protected]

typedef CCont::const_iterator storage::Storage::CCIter [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 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 CastCheckIterator<CCIter, storage::DMRAID, const DmraidCo *> storage::Storage::ContainerCDmraidIter [protected]

typedef CastCheckIterator<CIter, storage::DMRAID, DmraidCo *> storage::Storage::ContainerDmraidIter [protected]

typedef CastCheckIterator<CCIter, storage::DMMULTIPATH, const DmmultipathCo *> storage::Storage::ContainerCDmmultipathIter [protected]

typedef CheckFnc<const Volume> storage::Storage::CheckFncVol [protected]

typedef CheckFnc<const LvmLv> storage::Storage::CheckFncLvmLv [protected]

typedef CheckFnc<const Md> storage::Storage::CheckFncMd [protected]

typedef CheckFnc<const Loop> storage::Storage::CheckFncLoop [protected]

typedef CheckFnc<const Nfs> storage::Storage::CheckFncNfs [protected]

typedef CheckFnc<const Dm> storage::Storage::CheckFncDm [protected]

typedef CheckFnc<const Dmraid> storage::Storage::CheckFncDmraid [protected]


Constructor & Destructor Documentation

Storage::Storage ( bool  ronly = false,
bool  testmode = false,
bool  autodetect = true 
)

Storage::~Storage (  )  [virtual]


Member Function Documentation

static bool storage::Storage::isMd ( const Container d  )  [inline, static, protected]

static bool storage::Storage::isLoop ( const Container d  )  [inline, static, protected]

static bool storage::Storage::isNfs ( const Container d  )  [inline, static, protected]

static bool storage::Storage::isDm ( const Container d  )  [inline, static, protected]

static bool storage::Storage::notDeleted ( const Container d  )  [inline, static]

static bool storage::Storage::isDmPart ( const Container d  )  [inline, static]

void Storage::initDefaultLogger (  )  [static]

bool storage::Storage::test (  )  const [inline]

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 commit().

void Storage::rescanEverything (  )  [virtual]

Rescan all disks. All currently detected objects are forgotten and a new scan for all type of objects (disks, LVM, 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(), detectObjects(), and y2mil.

int Storage::checkCache (  ) 

References commit(), and isCacheChanges().

const string& storage::Storage::tDir (  )  const [inline]

References testdir.

const string& storage::Storage::root (  )  const [inline]

string storage::Storage::prependRoot ( const string &  mp  )  const

const string & Storage::tmpDir (  )  const

bool storage::Storage::efiBoot (  )  const [inline]

References efiboot.

Referenced by storage::Disk::defaultLabel().

static const string& storage::Storage::arch (  )  [inline, static]

static bool storage::Storage::isPPCMac (  )  [inline, static]

References is_ppc_mac.

Referenced by storage::Disk::defaultLabel().

static bool storage::Storage::isPPCPegasos (  )  [inline, static]

References is_ppc_pegasos.

Referenced by storage::Disk::defaultLabel().

EtcFstab* storage::Storage::getFstab (  )  [inline]

void storage::Storage::handleLogFile ( const string &  name  ) 

static bool storage::Storage::testFilesEqual ( const string &  n1,
const string &  n2 
) [static]

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.

Parameters:
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]

References printInfo().

void Storage::logCo ( const Container c  )  const

void storage::Storage::logCo ( const string &  device  ) 

void storage::Storage::logProcData ( const string &  l = ""  ) 

storage::UsedByType storage::Storage::usedBy ( const string &  dev  ) 

Referenced by initialize().

bool storage::Storage::usedBy ( const string &  dev,
storage::usedBy ub 
)

bool storage::Storage::clearUsedBy ( const string &  dev  ) 

bool storage::Storage::setUsedBy ( const string &  dev,
storage::UsedByType  ub_type,
const string &  ub_name 
)

bool storage::Storage::canUseDevice ( const string &  dev,
bool  disks_allowed = false 
)

bool storage::Storage::knownDevice ( const string &  dev,
bool  disks_allowed = false 
)

bool storage::Storage::setDmcryptData ( const string &  dev,
const string &  dm,
unsigned  dmnum,
unsigned long long  siz,
storage::EncryptType  typ 
)

bool storage::Storage::deletedDevice ( const string &  dev  ) 

bool storage::Storage::isDisk ( const string &  dev  ) 

const Volume* storage::Storage::getVolume ( const string &  dev  ) 

unsigned long long storage::Storage::deviceSize ( const string &  dev  ) 

string storage::Storage::deviceByNumber ( const string &  majmin  ) 

void Storage::rootMounted (  ) 

bool storage::Storage::isRootMounted (  )  const [inline]

string storage::Storage::findNormalDevice ( const string &  device  ) 

bool storage::Storage::findVolume ( const string &  device,
Volume const *&  vol 
)

bool storage::Storage::findDm ( const string &  device,
const Dm *&  dm 
)

bool storage::Storage::findDmUsing ( const string &  device,
const Dm *&  dm 
)

bool storage::Storage::removeDm ( const string &  device  ) 

void storage::Storage::getContainers ( deque< storage::ContainerInfo > &  infos  ) 

int storage::Storage::getDiskInfo ( const string &  disk,
storage::DiskInfo info 
)

int storage::Storage::getLvmVgInfo ( const string &  name,
storage::LvmVgInfo info 
)

int storage::Storage::getDmraidCoInfo ( const string &  name,
storage::DmraidCoInfo info 
)

int storage::Storage::getDmmultipathCoInfo ( const string &  name,
storage::DmmultipathCoInfo info 
)

int storage::Storage::getContDiskInfo ( const string &  disk,
storage::ContainerInfo cinfo,
storage::DiskInfo info 
)

int storage::Storage::getContLvmVgInfo ( const string &  name,
storage::ContainerInfo cinfo,
storage::LvmVgInfo info 
)

int storage::Storage::getContDmraidCoInfo ( const string &  name,
storage::ContainerInfo cinfo,
storage::DmraidCoInfo info 
)

int storage::Storage::getContDmmultipathCoInfo ( const string &  name,
storage::ContainerInfo cinfo,
storage::DmmultipathCoInfo info 
)

void storage::Storage::getVolumes ( deque< storage::VolumeInfo > &  vlist  ) 

int storage::Storage::getVolume ( const string &  device,
storage::VolumeInfo info 
)

int storage::Storage::getPartitionInfo ( const string &  disk,
deque< storage::PartitionInfo > &  plist 
)

int storage::Storage::getLvmLvInfo ( const string &  name,
deque< storage::LvmLvInfo > &  plist 
)

int storage::Storage::getMdInfo ( deque< storage::MdInfo > &  plist  ) 

int storage::Storage::getDmInfo ( deque< storage::DmInfo > &  plist  ) 

int storage::Storage::getNfsInfo ( deque< storage::NfsInfo > &  plist  ) 

int storage::Storage::getLoopInfo ( deque< storage::LoopInfo > &  plist  ) 

int storage::Storage::getDmraidInfo ( const string &  name,
deque< storage::DmraidInfo > &  plist 
)

int storage::Storage::getDmmultipathInfo ( const string &  name,
deque< storage::DmmultipathInfo > &  plist 
)

int storage::Storage::getContVolInfo ( const string &  dev,
ContVolInfo info 
)

bool Storage::getFsCapabilities ( storage::FsType  fstype,
storage::FsCapabilities fscapabilities 
) const [virtual]

list< string > Storage::getAllUsedFs (  )  const [virtual]

void storage::Storage::setExtError ( const string &  txt  ) 

int storage::Storage::createPartition ( const string &  disk,
storage::PartitionType  type,
unsigned long  start,
unsigned long  size,
string &  device 
)

int storage::Storage::resizePartition ( const string &  device,
unsigned long  sizeCyl 
)

int storage::Storage::resizePartitionNoFs ( const string &  device,
unsigned long  sizeCyl 
)

int storage::Storage::nextFreePartition ( const string &  disk,
storage::PartitionType  type,
unsigned &  nr,
string &  device 
)

int storage::Storage::updatePartitionArea ( const string &  device,
unsigned long  start,
unsigned long  size 
)

int storage::Storage::freeCylindersAfterPartition ( const string &  device,
unsigned long &  freeCyls 
)

int storage::Storage::createPartitionKb ( const string &  disk,
storage::PartitionType  type,
unsigned long long  start,
unsigned long long  sizek,
string &  device 
)

int storage::Storage::createPartitionAny ( const string &  disk,
unsigned long long  size,
string &  device 
)

int storage::Storage::createPartitionMax ( const string &  disk,
storage::PartitionType  type,
string &  device 
)

unsigned long storage::Storage::kbToCylinder ( const string &  disk,
unsigned long long  size 
)

unsigned long long storage::Storage::cylinderToKb ( const string &  disk,
unsigned long  size 
)

int storage::Storage::removePartition ( const string &  partition  ) 

int storage::Storage::changePartitionId ( const string &  partition,
unsigned  id 
)

int storage::Storage::forgetChangePartitionId ( const string &  partition  ) 

int storage::Storage::getUnusedPartitionSlots ( const string &  disk,
list< PartitionSlotInfo > &  slots 
)

int storage::Storage::destroyPartitionTable ( const string &  disk,
const string &  label 
)

int storage::Storage::initializeDisk ( const string &  disk,
bool  value 
)

string Storage::defaultDiskLabel (  )  const [virtual]

Query the default disk label of the architecture of the machine (e.g. msdos for ix86, gpt for ia64, ...)

Returns:
default disk label of the architecture

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

Parameters:
size_k size of disk in kilobyte
Returns:
default disk label of the disk

Implements storage::StorageInterface.

References storage::Disk::defaultLabel().

unsigned long long storage::Storage::maxSizeLabelK ( const string &  label  )  const

int storage::Storage::changeFormatVolume ( const string &  device,
bool  format,
storage::FsType  fs 
)

int storage::Storage::changeLabelVolume ( const string &  device,
const string &  label 
)

int storage::Storage::eraseLabelVolume ( const string &  device  ) 

int storage::Storage::changeMkfsOptVolume ( const string &  device,
const string &  opts 
)

int storage::Storage::changeTunefsOptVolume ( const string &  device,
const string &  opts 
)

int storage::Storage::changeDescText ( const string &  device,
const string &  txt 
)

int storage::Storage::changeMountPoint ( const string &  device,
const string &  mount 
)

int storage::Storage::getMountPoint ( const string &  device,
string &  mount 
)

int storage::Storage::changeMountBy ( const string &  device,
storage::MountByType  mby 
)

int storage::Storage::getMountBy ( const string &  device,
storage::MountByType mby 
)

int storage::Storage::changeFstabOptions ( const string &  ,
const string &  options 
)

int storage::Storage::getFstabOptions ( const string &  device,
string &  options 
)

int storage::Storage::addFstabOptions ( const string &  ,
const string &  options 
)

int storage::Storage::removeFstabOptions ( const string &  ,
const string &  options 
)

int storage::Storage::setCryptPassword ( const string &  device,
const string &  pwd 
)

int storage::Storage::forgetCryptPassword ( const string &  device  ) 

int storage::Storage::getCryptPassword ( const string &  device,
string &  pwd 
)

int storage::Storage::setCrypt ( const string &  device,
bool  val 
)

int storage::Storage::setCryptType ( const string &  device,
bool  val,
EncryptType  typ 
)

int storage::Storage::getCrypt ( const string &  device,
bool &  val 
)

int storage::Storage::setIgnoreFstab ( const string &  device,
bool  val 
)

int storage::Storage::getIgnoreFstab ( const string &  device,
bool &  val 
)

int storage::Storage::addFstabEntry ( const string &  device,
const string &  mount,
const string &  vfs,
const string &  options,
unsigned  freq,
unsigned  passno 
)

int storage::Storage::resizeVolume ( const string &  device,
unsigned long long  newSizeMb 
)

int storage::Storage::resizeVolumeNoFs ( const string &  device,
unsigned long long  newSizeMb 
)

int storage::Storage::forgetResizeVolume ( const string &  device  ) 

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.

Parameters:
val flag if removal is done recursive

Implements storage::StorageInterface.

References recursiveRemove, and y2milestone.

bool storage::Storage::getRecursiveRemoval (  )  const [inline, virtual]

Get value of the flag for recursive removal

Returns:
value of the flag for recursive removal

Implements storage::StorageInterface.

References recursiveRemove.

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.

Parameters:
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

Returns:
value of the flag for zeroing newly created partitions

Implements storage::StorageInterface.

References zeroNewPartitions.

void Storage::setDefaultMountBy ( MountByType  val = MOUNTBY_DEVICE  )  [virtual]

Set default value for mount by.

Parameters:
val new default mount by value.

Implements storage::StorageInterface.

References defaultMountBy, storage::Volume::mbyTypeString(), and y2mil.

Referenced by initialize().

MountByType storage::Storage::getDefaultMountBy (  )  const [inline, virtual]

Set default value for mount by.

Returns:
default value for mount by

Implements storage::StorageInterface.

References defaultMountBy.

void Storage::setDetectMountedVolumes ( bool  val = true  )  [virtual]

Determine of libstorage should detect mounted volumes.

Parameters:
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.

Returns:
value of the flag for detection of mounted volumes

Implements storage::StorageInterface.

References detectMounted.

void Storage::setEfiBoot ( bool  val  )  [virtual]

Set value for EFI boot.

Currently this value affects the default disk label.

Parameters:
val new efi boot value

Implements storage::StorageInterface.

References efiboot, and y2milestone.

bool storage::Storage::getEfiBoot (  )  const [inline, virtual]

Get value for EFI boot.

Returns:
value for efi boot

Implements storage::StorageInterface.

References efiboot.

void storage::Storage::setRootPrefix ( const string &  root  ) 

string storage::Storage::getRootPrefix (  )  const [inline, virtual]

Get value for root prefix.

Returns:
value for root prefix

Implements storage::StorageInterface.

References rootprefix.

int storage::Storage::removeVolume ( const string &  device  ) 

int storage::Storage::removeUsing ( const string &  device,
const storage::usedBy uby 
)

bool storage::Storage::checkDeviceMounted ( const string &  device,
string &  mp 
)

bool storage::Storage::umountDevice ( const string &  device  ) 

bool storage::Storage::mountDev ( const string &  device,
const string &  mp,
bool  ro = true,
const string &  opts = "" 
)

bool storage::Storage::mountDevice ( const string &  device,
const string &  mp 
) [inline]

References mountDev().

bool storage::Storage::mountDeviceOpts ( const string &  device,
const string &  mp,
const string &  opts 
) [inline]

References mountDev().

bool storage::Storage::mountDeviceRo ( const string &  device,
const string &  mp,
const string &  opts 
) [inline]

References mountDev().

bool storage::Storage::readFstab ( const string &  dir,
deque< storage::VolumeInfo > &  infos 
)

bool storage::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 
)

unsigned long long storage::Storage::getDfSize ( const string &  mp  ) 

int storage::Storage::createBackupState ( const string &  name  ) 

int storage::Storage::removeBackupState ( const string &  name  ) 

int storage::Storage::restoreBackupState ( const string &  name  ) 

bool storage::Storage::checkBackupState ( const string &  name  ) 

bool storage::Storage::equalBackupStates ( const string &  lhs,
const string &  rhs,
bool  verbose_log 
) const

int storage::Storage::createLvmVg ( const string &  name,
unsigned long long  peSizeK,
bool  lvm1,
const deque< string > &  devs 
)

int storage::Storage::removeLvmVg ( const string &  name  ) 

int storage::Storage::extendLvmVg ( const string &  name,
const deque< string > &  devs 
)

int storage::Storage::shrinkLvmVg ( const string &  name,
const deque< string > &  devs 
)

int storage::Storage::createLvmLv ( const string &  vg,
const string &  name,
unsigned long long  sizeM,
unsigned  stripe,
string &  device 
)

int storage::Storage::removeLvmLvByDevice ( const string &  device  ) 

int storage::Storage::removeLvmLv ( const string &  vg,
const string &  name 
)

int storage::Storage::changeLvStripeCount ( const string &  vg,
const string &  name,
unsigned long  stripes 
)

int storage::Storage::changeLvStripeSize ( const string &  vg,
const string &  name,
unsigned long long  stripeSize 
)

int storage::Storage::createLvmLvSnapshot ( const string &  vg,
const string &  origin,
const string &  name,
unsigned long long  cowSizeK,
string &  device 
)

int storage::Storage::removeLvmLvSnapshot ( const string &  vg,
const string &  name 
)

int storage::Storage::getLvmLvSnapshotStateInfo ( const string &  vg,
const string &  name,
LvmLvSnapshotStateInfo info 
)

int storage::Storage::nextFreeMd ( int &  nr,
string &  device 
)

int storage::Storage::createMd ( const string &  name,
storage::MdType  rtype,
const deque< string > &  devs 
)

int storage::Storage::createMdAny ( storage::MdType  rtype,
const deque< string > &  devs,
string &  device 
)

int storage::Storage::removeMd ( const string &  name,
bool  destroySb = true 
)

int storage::Storage::extendMd ( const string &  name,
const string &  dev 
)

int storage::Storage::shrinkMd ( const string &  name,
const string &  dev 
)

int storage::Storage::changeMdType ( const string &  name,
storage::MdType  rtype 
)

int storage::Storage::changeMdChunk ( const string &  name,
unsigned long  chunk 
)

int storage::Storage::changeMdParity ( const string &  name,
storage::MdParity  ptype 
)

int storage::Storage::checkMd ( const string &  name  ) 

int storage::Storage::getMdStateInfo ( const string &  name,
MdStateInfo info 
)

int storage::Storage::computeMdSize ( MdType  md_type,
list< string >  devices,
unsigned long long &  sizeK 
)

int storage::Storage::addNfsDevice ( const string &  nfsDev,
const string &  opts,
unsigned long long  sizeK,
const string &  mp 
)

int storage::Storage::checkNfsDevice ( const string &  nfsDev,
const string &  opts,
unsigned long long &  sizeK 
)

int storage::Storage::createFileLoop ( const string &  lname,
bool  reuseExisting,
unsigned long long  sizeK,
const string &  mp,
const string &  pwd,
string &  device 
)

int storage::Storage::modifyFileLoop ( const string &  device,
const string &  lname,
bool  reuseExisting,
unsigned long long  sizeK 
)

int storage::Storage::removeFileLoop ( const string &  lname,
bool  removeFile 
)

int storage::Storage::removeDmraid ( const string &  name  ) 

deque< string > Storage::getCommitActions ( bool  mark_destructive  )  const [virtual]

Gets a list of string describing the actions to be executed after next call to commit().

Deprecated, use getCommitInfo().

Parameters:
mark_destructive if true use <red> around </red> destructive actions (like e.g. deletion, formatting, ...)
Returns:
list of strings presentable to the user

Implements storage::StorageInterface.

References storage::CommitInfo::actions, and getCommitInfo().

void Storage::getCommitInfo ( bool  mark_destructive,
CommitInfo info 
) const [virtual]

Gets info about actions to be executed after next call to commit().

Parameters:
mark_destructive if true use <red> around </red> destructive actions (like e.g. deletion, formatting, ...)
info record that gets filled with data

Implements storage::StorageInterface.

References storage::CommitInfo::actions, storage::IterPair< Iter >::begin(), contPair(), storage::CommitInfo::destructive, storage::IterPair< Iter >::empty(), storage::IterPair< Iter >::end(), storage::Volume::getDescText(), and y2mil.

Referenced by getCommitActions().

const string& storage::Storage::getLastAction (  )  const [inline, virtual]

Gets action performed last during previous call to commit()

Returns:
string presentable to the user

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()

Returns:
string error text provided by external program

Implements storage::StorageInterface.

References extendedError.

void storage::Storage::eraseFreeInfo ( const string &  device  ) 

int Storage::waitForDevice (  )  const

int storage::Storage::waitForDevice ( const string &  device  )  const

void storage::Storage::checkDeviceExclusive ( const string &  device,
unsigned  secs 
)

int storage::Storage::zeroDevice ( const string &  device,
unsigned long long  sizeK,
bool  random = false,
unsigned long long  beginK = 200,
unsigned long long  endK = 10 
)

void Storage::getDiskList ( bool(*)(const Disk &)  CheckFnc,
std::list< Disk * > &  dl 
)

void storage::Storage::changeDeviceName ( const string &  old,
const string &  nw 
)

int Storage::commit (  )  [virtual]

void Storage::handleHald ( bool  stop  ) 

void Storage::activateHld ( bool  val = true  )  [virtual]

Activate or deactivate higher level devices as MD, LVM, DM

Multipath is not activate by this function.

Parameters:
val flag if devices should be activated or deactivated
Returns:
bool if values could be successfully determined

Implements storage::StorageInterface.

References storage::LvmVg::activate(), storage::MdCo::activate(), storage::Dm::activate(), tmpDir(), and y2mil.

Referenced by commitPair().

void Storage::activateMultipath ( bool  val = true  )  [virtual]

Activate or deactivate multipath

Parameters:
val flag if multipath should be activated or deactivated
Returns:
bool if values could be successfully determined

Implements storage::StorageInterface.

References storage::DmmultipathCo::activate(), and y2mil.

void Storage::removeDmTableTo ( const Volume vol  ) 

void storage::Storage::removeDmTableTo ( const string &  device  ) 

bool storage::Storage::removeDmTable ( const string &  table  ) 

bool storage::Storage::removeDmMapsTo ( const string &  dev  ) 

bool storage::Storage::checkDmMapsTo ( const string &  dev  ) 

void Storage::updateDmEmptyPeMap (  ) 

void Storage::dumpObjectList (  )  [virtual]

Dump list of all objects to log file.

Implements storage::StorageInterface.

References storage::classic(), printInfo(), storage::splitString(), and y2mil.

Referenced by commit(), and initialize().

string Storage::byteToHumanString ( unsigned long long  size,
bool  classic,
int  precision,
bool  omit_zeroes 
) const [virtual]

Return a pretty description of a size with required precision and using B, kB, MB, GB, TB or PB as unit as appropriate.

Parameters:
size size in bytes
classic use classic locale
precision number of fraction digits in output
omit_zeroes if true omit trailing zeroes for exact values
Returns:
formatted string

Implements storage::StorageInterface.

References storage::byteToHumanString().

bool storage::Storage::humanStringToByte ( const string &  str,
bool  classic,
unsigned long long &  size 
) const

void storage::Storage::setCallbackProgressBar ( storage::CallbackProgressBar  pfnc  )  [inline, virtual]

Sets the callback function called on progress bar events

Parameters:
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

Returns:
pointer to function currently called for 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

Parameters:
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

Returns:
pointer to function currently called for progress bar events

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

Parameters:
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

Returns:
pointer to function currently called for progress bar events

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.

Parameters:
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.

Returns:
pointer to function currently called for progress bar events

Implements storage::StorageInterface.

References yesno_popup_cb.

void storage::Storage::addInfoPopupText ( const string &  disk,
const string  txt 
)

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]

storage::CallbackShowInstallInfo storage::Storage::getCallbackShowInstallInfoTheOne (  )  const [inline]

storage::CallbackInfoPopup storage::Storage::getCallbackInfoPopupTheOne (  )  const [inline]

References info_popup_cb, and info_popup_cb_ycp.

storage::CallbackYesNoPopup storage::Storage::getCallbackYesNoPopupTheOne (  )  const [inline]

void storage::Storage::progressBarCb ( const string &  id,
unsigned  cur,
unsigned  max 
)

void storage::Storage::showInfoCb ( const string &  info  ) 

void storage::Storage::infoPopupCb ( const string &  info  ) 

Referenced by initialize().

bool storage::Storage::yesnoPopupCb ( const string &  info  ) 

ConstContPair storage::Storage::contPair ( bool(*)(const Container &)  CheckFnc = NULL  )  const [inline]

ConstContIterator storage::Storage::contBegin ( bool(*)(const Container &)  CheckFnc = NULL  )  const [inline]

References cont.

Referenced by contPair().

ConstContIterator storage::Storage::contEnd ( bool(*)(const Container &)  CheckFnc = NULL  )  const [inline]

References cont.

Referenced by contPair().

template<class Pred>
ContCondIPair<Pred>::type storage::Storage::contCondPair ( const Pred &  p  )  const [inline]

References contCondBegin(), and contCondEnd().

template<class Pred>
ConstContainerI<Pred>::type storage::Storage::contCondBegin ( const Pred &  p  )  const [inline]

References cont.

Referenced by contCondPair().

template<class Pred>
ConstContainerI<Pred>::type storage::Storage::contCondEnd ( const Pred &  p  )  const [inline]

References cont.

Referenced by contCondPair().

CPair storage::Storage::cPair ( bool(*)(const Container &)  CheckFnc = NULL  )  [inline, protected]

References cBegin(), and cEnd().

Referenced by commit(), commitPair(), haveLoop(), haveMd(), haveNfs(), vBegin(), and vEnd().

ContIterator storage::Storage::cBegin ( bool(*)(const Container &)  CheckFnc = NULL  )  [inline, protected]

References cont.

Referenced by cPair().

ContIterator storage::Storage::cEnd ( bool(*)(const Container &)  CheckFnc = NULL  )  [inline, protected]

References cont.

Referenced by cPair().

ConstDiskPair storage::Storage::diskPair ( bool(*)(const Disk &)  CheckFnc = NULL  )  const [inline]

References diskBegin(), and diskEnd().

Referenced by partBegin(), partCondBegin(), partCondEnd(), and partEnd().

ConstDiskIterator storage::Storage::diskBegin ( bool(*)(const Disk &)  CheckFnc = NULL  )  const [inline]

References cont.

Referenced by diskPair().

ConstDiskIterator storage::Storage::diskEnd ( bool(*)(const Disk &)  CheckFnc = NULL  )  const [inline]

References cont.

Referenced by diskPair().

template<class Pred>
DiskCondIPair<Pred>::type storage::Storage::diskCondPair ( const Pred &  p  )  const [inline]

References diskCondBegin(), and diskCondEnd().

template<class Pred>
ConstDiskI<Pred>::type storage::Storage::diskCondBegin ( const Pred &  p  )  const [inline]

References cont.

Referenced by diskCondPair().

template<class Pred>
ConstDiskI<Pred>::type storage::Storage::diskCondEnd ( const Pred &  p  )  const [inline]

References cont.

Referenced by diskCondPair().

DiskPair storage::Storage::dPair ( bool(*)(const Disk &)  CheckFnc = NULL  )  [inline, protected]

References dBegin(), and dEnd().

Referenced by getDiskList().

DiskIterator storage::Storage::dBegin ( bool(*)(const Disk &)  CheckFnc = NULL  )  [inline, protected]

References cont.

Referenced by dPair().

DiskIterator storage::Storage::dEnd ( bool(*)(const Disk &)  CheckFnc = NULL  )  [inline, protected]

References cont.

Referenced by dPair().

ConstLvmVgPair storage::Storage::lvmVgPair ( bool(*)(const LvmVg &)  CheckFnc = NULL  )  const [inline]

ConstLvmVgIterator storage::Storage::lvmVgBegin ( bool(*)(const LvmVg &)  CheckFnc = NULL  )  const [inline]

References cont.

Referenced by lvmVgPair().

ConstLvmVgIterator storage::Storage::lvmVgEnd ( bool(*)(const LvmVg &)  CheckFnc = NULL  )  const [inline]

References cont.

Referenced by lvmVgPair().

template<class Pred>
LvmVgCondIPair<Pred>::type storage::Storage::lvmVgCondPair ( const Pred &  p  )  const [inline]

References lvmVgCondBegin(), and lvmVgCondEnd().

template<class Pred>
ConstLvmVgI<Pred>::type storage::Storage::lvmVgCondBegin ( const Pred &  p  )  const [inline]

References cont.

Referenced by lvmVgCondPair().

template<class Pred>
ConstLvmVgI<Pred>::type storage::Storage::lvmVgCondEnd ( const Pred &  p  )  const [inline]

References cont.

Referenced by lvmVgCondPair().

LvmVgPair storage::Storage::lvgPair ( bool(*)(const LvmVg &)  CheckFnc = NULL  )  [inline, protected]

References lvgBegin(), and lvgEnd().

Referenced by detectObjects().

LvmVgIterator storage::Storage::lvgBegin ( bool(*)(const LvmVg &)  CheckFnc = NULL  )  [inline, protected]

References cont.

Referenced by lvgPair().

LvmVgIterator storage::Storage::lvgEnd ( bool(*)(const LvmVg &)  CheckFnc = NULL  )  [inline, protected]

References cont.

Referenced by lvgPair().

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]

References cont.

Referenced by dmpartCoPair().

ConstDmPartCoIterator storage::Storage::dmpartCoEnd ( bool(*)(const DmPartCo &)  CheckFnc = NULL  )  const [inline]

References cont.

Referenced by dmpartCoPair().

template<class Pred>
DmPartCoCondIPair<Pred>::type storage::Storage::dmPartCoCondPair ( const Pred &  p  )  const [inline]

template<class Pred>
ConstDmPartCoI<Pred>::type storage::Storage::dmpartCoCondBegin ( const Pred &  p  )  const [inline]

References cont.

Referenced by dmPartCoCondPair().

template<class Pred>
ConstDmPartCoI<Pred>::type storage::Storage::dmpartCoCondEnd ( const Pred &  p  )  const [inline]

References cont.

Referenced by dmPartCoCondPair().

DmPartCoPair storage::Storage::dmpCoPair ( bool(*)(const DmPartCo &)  CheckFnc = NULL  )  [inline, protected]

References dmpCoBegin(), and dmpCoEnd().

DmPartCoIterator storage::Storage::dmpCoBegin ( bool(*)(const DmPartCo &)  CheckFnc = NULL  )  [inline, protected]

References cont.

Referenced by dmpCoPair().

DmPartCoIterator storage::Storage::dmpCoEnd ( bool(*)(const DmPartCo &)  CheckFnc = NULL  )  [inline, protected]

References cont.

Referenced by dmpCoPair().

ConstDmraidCoPair storage::Storage::dmraidCoPair ( bool(*)(const DmraidCo &)  CheckFnc = NULL  )  const [inline]

ConstDmraidCoIterator storage::Storage::dmraidCoBegin ( bool(*)(const DmraidCo &)  CheckFnc = NULL  )  const [inline]

References cont.

Referenced by dmraidCoPair().

ConstDmraidCoIterator storage::Storage::dmraidCoEnd ( bool(*)(const DmraidCo &)  CheckFnc = NULL  )  const [inline]

References cont.

Referenced by dmraidCoPair().

template<class Pred>
DmraidCoCondIPair<Pred>::type storage::Storage::dmraidCoCondPair ( const Pred &  p  )  const [inline]

template<class Pred>
ConstDmraidCoI<Pred>::type storage::Storage::dmraidCoCondBegin ( const Pred &  p  )  const [inline]

References cont.

Referenced by dmraidCoCondPair().

template<class Pred>
ConstDmraidCoI<Pred>::type storage::Storage::dmraidCoCondEnd ( const Pred &  p  )  const [inline]

References cont.

Referenced by dmraidCoCondPair().

DmraidCoPair storage::Storage::dmrCoPair ( bool(*)(const DmraidCo &)  CheckFnc = NULL  )  [inline, protected]

References dmrCoBegin(), and dmrCoEnd().

Referenced by dmrCondEnd().

DmraidCoIterator storage::Storage::dmrCoBegin ( bool(*)(const DmraidCo &)  CheckFnc = NULL  )  [inline, protected]

References cont.

Referenced by dmrCoPair().

DmraidCoIterator storage::Storage::dmrCoEnd ( bool(*)(const DmraidCo &)  CheckFnc = NULL  )  [inline, protected]

References cont.

Referenced by dmrCoPair().

ConstDmmultipathCoPair storage::Storage::dmmultipathCoPair ( bool(*)(const DmmultipathCo &)  CheckFnc = NULL  )  const [inline]

ConstDmmultipathCoIterator storage::Storage::dmmultipathCoBegin ( bool(*)(const DmmultipathCo &)  CheckFnc = NULL  )  const [inline]

References cont.

Referenced by dmmultipathCoPair().

ConstDmmultipathCoIterator storage::Storage::dmmultipathCoEnd ( bool(*)(const DmmultipathCo &)  CheckFnc = NULL  )  const [inline]

References cont.

Referenced by dmmultipathCoPair().

template<class Pred>
DmmultipathCoCondIPair<Pred>::type storage::Storage::dmmultipathCoCondPair ( const Pred &  p  )  const [inline]

template<class Pred>
ConstDmmultipathCoI<Pred>::type storage::Storage::dmmultipathCoCondBegin ( const Pred &  p  )  const [inline]

References cont.

Referenced by dmmultipathCoCondPair().

template<class Pred>
ConstDmmultipathCoI<Pred>::type storage::Storage::dmmultipathCoCondEnd ( const Pred &  p  )  const [inline]

References cont.

Referenced by dmmultipathCoCondPair().

DmmultipathCoPair storage::Storage::dmmCoPair ( bool(*)(const DmmultipathCo &)  CheckFnc = NULL  )  [inline, protected]

References dmmCoBegin(), and dmmCoEnd().

Referenced by dmmCondEnd().

DmmultipathCoIterator storage::Storage::dmmCoBegin ( bool(*)(const DmmultipathCo &)  CheckFnc = NULL  )  [inline, protected]

References cont.

Referenced by dmmCoPair().

DmmultipathCoIterator storage::Storage::dmmCoEnd ( bool(*)(const DmmultipathCo &)  CheckFnc = NULL  )  [inline, protected]

References cont.

Referenced by dmmCoPair().

ConstVolPair storage::Storage::volPair ( bool(*)(const Container &)  CheckCnt  )  const [inline]

References volBegin(), and volEnd().

Referenced by getAllUsedFs(), and storage::Volume::getFreeLoop().

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().

template<class Pred>
VolCondIPair<Pred>::type storage::Storage::volCondPair ( const Pred &  p  )  const [inline]

References volCondBegin(), and volCondEnd().

template<class Pred>
ConstVolumeI<Pred>::type storage::Storage::volCondBegin ( const Pred &  p  )  const [inline]

References contPair().

Referenced by volCondPair().

template<class Pred>
ConstVolumeI<Pred>::type storage::Storage::volCondEnd ( const Pred &  p  )  const [inline]

References contPair().

Referenced by volCondPair().

VPair storage::Storage::vPair ( bool(*)(const Container &)  CheckCnt  )  [inline, protected]

References vBegin(), and vEnd().

Referenced by commit(), and updateDmEmptyPeMap().

VPair storage::Storage::vPair ( bool(*)(const Volume &)  CheckVol = NULL,
bool(*)(const Container &)  CheckCnt = NULL 
) [inline, protected]

References vBegin(), and vEnd().

VolIterator storage::Storage::vBegin ( bool(*)(const Container &)  CheckCnt  )  [inline, protected]

Referenced by detectObjects(), 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(), 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().

template<class Pred>
PartCondIPair<Pred>::type storage::Storage::partCondPair ( const Pred &  p  )  const [inline]

References partCondBegin(), and partCondEnd().

template<class Pred>
ConstPartitionI<Pred>::type storage::Storage::partCondBegin ( const Pred &  p  )  const [inline]

References diskPair().

Referenced by partCondPair().

template<class Pred>
ConstPartitionI<Pred>::type storage::Storage::partCondEnd ( const Pred &  p  )  const [inline]

References diskPair().

Referenced by partCondPair().

ConstLvmLvPair storage::Storage::lvmLvPair ( bool(*)(const LvmVg &)  CheckLvmVg  )  const [inline]

References lvmLvBegin(), and lvmLvEnd().

Referenced by storage::DmCo::getDmData().

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().

template<class Pred>
LvmLvCondIPair<Pred>::type storage::Storage::lvmLvCondPair ( const Pred &  p  )  const [inline]

References lvmLvCondBegin(), and lvmLvCondEnd().

template<class Pred>
ConstLvmLvI<Pred>::type storage::Storage::lvmLvCondBegin ( const Pred &  p  )  const [inline]

References lvmVgPair().

Referenced by lvmLvCondPair().

template<class Pred>
ConstLvmLvI<Pred>::type storage::Storage::lvmLvCondEnd ( const Pred &  p  )  const [inline]

References lvmVgPair().

Referenced by lvmLvCondPair().

ConstMdPair storage::Storage::mdPair ( bool(*)(const Md &)  CheckMd = NULL  )  const [inline]

References mdBegin(), and mdEnd().

ConstMdIterator storage::Storage::mdBegin ( bool(*)(const Md &)  CheckMd = NULL  )  const [inline]

References contPair(), and isMd().

Referenced by mdPair().

ConstMdIterator storage::Storage::mdEnd ( bool(*)(const Md &)  CheckMd = NULL  )  const [inline]

References contPair(), and isMd().

Referenced by mdPair().

template<class Pred>
MdCondIPair<Pred>::type storage::Storage::mdCondPair ( const Pred &  p  )  const [inline]

References mdCondBegin(), and mdCondEnd().

template<class Pred>
ConstMdI<Pred>::type storage::Storage::mdCondBegin ( const Pred &  p  )  const [inline]

References contPair(), and isMd().

Referenced by mdCondPair().

template<class Pred>
ConstMdI<Pred>::type storage::Storage::mdCondEnd ( const Pred &  p  )  const [inline]

References contPair(), and isMd().

Referenced by mdCondPair().

ConstLoopPair storage::Storage::loopPair ( bool(*)(const Loop &)  CheckLoop = NULL  )  const [inline]

References loopBegin(), and loopEnd().

ConstLoopIterator storage::Storage::loopBegin ( bool(*)(const Loop &)  CheckLoop = NULL  )  const [inline]

References contPair(), and isLoop().

Referenced by loopPair().

ConstLoopIterator storage::Storage::loopEnd ( bool(*)(const Loop &)  CheckLoop = NULL  )  const [inline]

References contPair(), and isLoop().

Referenced by loopPair().

template<class Pred>
LoopCondIPair<Pred>::type storage::Storage::loopCondPair ( const Pred &  p  )  const [inline]

References loopCondBegin(), and loopCondEnd().

template<class Pred>
ConstLoopI<Pred>::type storage::Storage::loopCondBegin ( const Pred &  p  )  const [inline]

References contPair(), and isLoop().

Referenced by loopCondPair().

template<class Pred>
ConstLoopI<Pred>::type storage::Storage::loopCondEnd ( const Pred &  p  )  const [inline]

References contPair(), and isLoop().

Referenced by loopCondPair().

ConstNfsPair storage::Storage::nfsPair ( bool(*)(const Nfs &)  CheckNfs = NULL  )  const [inline]

References nfsBegin(), and nfsEnd().

ConstNfsIterator storage::Storage::nfsBegin ( bool(*)(const Nfs &)  CheckNfs = NULL  )  const [inline]

References contPair(), and isNfs().

Referenced by nfsPair().

ConstNfsIterator storage::Storage::nfsEnd ( bool(*)(const Nfs &)  CheckNfs = NULL  )  const [inline]

References contPair(), and isNfs().

Referenced by nfsPair().

template<class Pred>
NfsCondIPair<Pred>::type storage::Storage::nfsCondPair ( const Pred &  p  )  const [inline]

References nfsCondBegin(), and nfsCondEnd().

template<class Pred>
ConstNfsI<Pred>::type storage::Storage::nfsCondBegin ( const Pred &  p  )  const [inline]

References contPair(), and isNfs().

Referenced by nfsCondPair().

template<class Pred>
ConstNfsI<Pred>::type storage::Storage::nfsCondEnd ( const Pred &  p  )  const [inline]

References contPair(), and isNfs().

Referenced by nfsCondPair().

ConstDmPair storage::Storage::dmPair ( bool(*)(const Dm &)  CheckDm = NULL  )  const [inline]

References dmBegin(), and dmEnd().

ConstDmIterator storage::Storage::dmBegin ( bool(*)(const Dm &)  CheckDm = NULL  )  const [inline]

References contPair(), and isDm().

Referenced by dmPair().

ConstDmIterator storage::Storage::dmEnd ( bool(*)(const Dm &)  CheckDm = NULL  )  const [inline]

References contPair(), and isDm().

Referenced by dmPair().

template<class Pred>
DmCondIPair<Pred>::type storage::Storage::dmCondPair ( const Pred &  p  )  const [inline]

References dmCondBegin(), and dmCondEnd().

template<class Pred>
ConstDmI<Pred>::type storage::Storage::dmCondBegin ( const Pred &  p  )  const [inline]

References contPair(), and isDm().

Referenced by dmCondPair().

template<class Pred>
ConstDmI<Pred>::type storage::Storage::dmCondEnd ( const Pred &  p  )  const [inline]

References contPair(), and isDm().

Referenced by dmCondPair().

ConstDmraidPair storage::Storage::dmrPair ( bool(*)(const DmraidCo &)  CheckDmraidCo  )  const [inline]

References dmrBegin(), and dmrEnd().

Referenced by storage::DmCo::getDmData().

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().

template<class Pred>
DmraidCondIPair<Pred>::type storage::Storage::dmrCondPair ( const Pred &  p  )  const [inline]

References dmrCondBegin(), and dmrCondEnd().

template<class Pred>
ConstDmraidI<Pred>::type storage::Storage::dmrCondBegin ( const Pred &  p  )  const [inline]

References dmraidCoPair().

Referenced by dmrCondPair().

template<class Pred>
ConstDmraidI<Pred>::type storage::Storage::dmrCondEnd ( const Pred &  p  )  const [inline]

References dmrCoPair().

Referenced by dmrCondPair().

ConstDmmultipathPair storage::Storage::dmmPair ( bool(*)(const DmmultipathCo &)  CheckDmmultipathCo  )  const [inline]

References dmmBegin(), and dmmEnd().

Referenced by storage::DmCo::getDmData().

ConstDmmultipathPair storage::Storage::dmmPair ( bool(*)(const Dmmultipath &)  CheckDmmultipath = NULL,
bool(*)(const DmmultipathCo &)  CheckDmmultipathCo = NULL 
) const [inline]

References dmmBegin(), and dmmEnd().

ConstDmmultipathIterator storage::Storage::dmmBegin ( bool(*)(const DmmultipathCo &)  CheckDmmultipathCo  )  const [inline]

Referenced by dmmPair().

ConstDmmultipathIterator storage::Storage::dmmBegin ( bool(*)(const Dmmultipath &)  CheckDmmultipath = NULL,
bool(*)(const DmmultipathCo &)  CheckDmmultipathCo = NULL 
) const [inline]

References dmmultipathCoPair().

ConstDmmultipathIterator storage::Storage::dmmEnd ( bool(*)(const DmmultipathCo &)  CheckDmmultipathCo  )  const [inline]

Referenced by dmmPair().

ConstDmmultipathIterator storage::Storage::dmmEnd ( bool(*)(const Dmmultipath &)  CheckDmmultipath = NULL,
bool(*)(const DmmultipathCo &)  CheckDmmultipathCo = NULL 
) const [inline]

References dmmultipathCoPair().

template<class Pred>
DmmultipathCondIPair<Pred>::type storage::Storage::dmmCondPair ( const Pred &  p  )  const [inline]

References dmmCondBegin(), and dmmCondEnd().

template<class Pred>
ConstDmmultipathI<Pred>::type storage::Storage::dmmCondBegin ( const Pred &  p  )  const [inline]

References dmmultipathCoPair().

Referenced by dmmCondPair().

template<class Pred>
ConstDmmultipathI<Pred>::type storage::Storage::dmmCondEnd ( const Pred &  p  )  const [inline]

References dmmCoPair().

Referenced by dmmCondPair().

void Storage::initialize (  )  [protected]

void Storage::logSystemInfo (  )  const [protected]

References storage::classic(), getline(), and y2mil.

Referenced by Storage().

void Storage::detectDisks ( ProcPart ppart  )  [protected]

void Storage::autodetectDisks ( ProcPart ppart  )  [protected]

void storage::Storage::detectMultipath (  )  [protected]

void Storage::detectMds (  )  [protected]

void Storage::detectLoops ( ProcPart ppart  )  [protected]

void Storage::detectNfs ( ProcMounts mounts  )  [protected]

void Storage::detectLvmVgs (  )  [protected]

void Storage::detectDmraid ( ProcPart ppart  )  [protected]

void Storage::detectDmmultipath ( ProcPart ppart  )  [protected]

void Storage::detectDm ( ProcPart ppart  )  [protected]

void Storage::initDisk ( DiskData data,
ProcPart pp 
) [protected]

void Storage::detectFsData ( const VolIterator begin,
const VolIterator end,
ProcMounts mounts 
) [protected]

void storage::Storage::detectFsDataTestMode ( const string &  file,
const VolIterator begin,
const VolIterator end 
) [protected]

Referenced by detectObjects().

int storage::Storage::resizeVolume ( const string &  device,
unsigned long long  newSizeMb,
bool  ignore_fs 
) [protected]

int storage::Storage::resizePartition ( const string &  device,
unsigned long  sizeCyl,
bool  ignore_fs 
) [protected]

void Storage::detectArch (  )  [static, protected]

void storage::Storage::addToList ( Container e  )  [inline, protected]

DiskIterator storage::Storage::findDisk ( const string &  disk  )  [protected]

DiskIterator storage::Storage::findDiskId ( const string &  id  )  [protected]

DiskIterator storage::Storage::findDiskPath ( const string &  path  )  [protected]

LvmVgIterator storage::Storage::findLvmVg ( const string &  name  )  [protected]

DmraidCoIterator storage::Storage::findDmraidCo ( const string &  name  )  [protected]

DmmultipathCoIterator storage::Storage::findDmmultipathCo ( const string &  name  )  [protected]

DmPartCoIterator storage::Storage::findDmPartCo ( const string &  name  )  [protected]

bool storage::Storage::findVolume ( const string &  device,
ContIterator c,
VolIterator v 
) [protected]

bool storage::Storage::findVolume ( const string &  device,
VolIterator v,
bool  also_del = false 
) [protected]

bool storage::Storage::findContainer ( const string &  device,
ContIterator c 
) [protected]

bool Storage::haveMd ( MdCo *&  md  )  [protected]

bool Storage::haveNfs ( NfsCo *&  co  )  [protected]

bool Storage::haveLoop ( LoopCo *&  loop  )  [protected]

int Storage::removeContainer ( Container val,
bool  call_del = true 
) [protected]

void storage::Storage::logVolumes ( const string &  Dir  )  [protected]

Referenced by detectFsData(), and ~Storage().

int Storage::commitPair ( CPair p,
bool(*)(const Container &)  fnc 
) [protected]

void Storage::sortCommitLists ( storage::CommitStage  stage,
std::list< Container * > &  co,
std::list< Volume * > &  vl,
std::list< storage::commitAction * > &  todo 
) [protected]

bool Storage::ignoreError ( std::list< commitAction * >::iterator  i,
std::list< commitAction * > &  al 
) [protected]

References storage::DECREASE, storage::DISK, and y2mil.

Referenced by commitPair().

string Storage::backupStates (  )  const [protected]

References backups.

void Storage::detectObjects (  )  [protected]

void Storage::deleteClist ( CCont co  )  [protected]

void Storage::deleteBackups (  )  [protected]

References backups, and deleteClist().

Referenced by ~Storage().

void storage::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::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]


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  s,
Storage v 
) [friend]


Member Data Documentation

bool storage::Storage::readonly [protected]

bool storage::Storage::testmode [protected]

bool storage::Storage::inst_sys [protected]

Referenced by initialize(), instsys(), and Storage().

bool storage::Storage::cache [protected]

Referenced by isCacheChanges(), and setCacheChanges().

Referenced by assertInit(), and initialize().

bool storage::Storage::autodetect [protected]

Referenced by detectDisks(), initialize(), and Storage().

Referenced by isRootMounted(), rootMounted(), and Storage().

string storage::Storage::testdir [protected]

string storage::Storage::tempdir [protected]

Referenced by initialize(), tmpDir(), and ~Storage().

string storage::Storage::rootprefix [protected]

Referenced by detectObjects(), getRootPrefix(), and root().

string storage::Storage::logdir [protected]

unsigned storage::Storage::hald_pid [protected]

Referenced by handleHald(), and Storage().

bool storage::Storage::efiboot [protected]

string Storage::proc_arch [static, protected]

Referenced by arch(), and detectArch().

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().

unsigned storage::Storage::max_log_num [protected]

string storage::Storage::lastAction [protected]

Referenced by commit(), and getLastAction().

string storage::Storage::extendedError [protected]

Referenced by commit(), and getExtendedErrorMessage().

std::map<string,CCont> storage::Storage::backups [protected]

Referenced by backupStates(), and deleteBackups().

std::map<string,FreeInfo> storage::Storage::freeInfo [protected]

std::list<std::pair<string,string> > storage::Storage::infoPopupTxts [protected]

Referenced by initialize().


The documentation for this class was generated from the following files:

Generated on Sun Dec 7 21:01:51 2008 for yast2-storage by  doxygen 1.5.6