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< ConstContIteratorConstContPair
typedef DerefIterator< ConstDiskPIterator,
const Disk
ConstDiskIterator
typedef IterPair< ConstDiskIteratorConstDiskPair
typedef DerefIterator< ConstLvmVgPIterator,
const LvmVg
ConstLvmVgIterator
typedef IterPair< ConstLvmVgIteratorConstLvmVgPair
typedef DerefIterator< ConstEvmsCoPIterator,
const EvmsCo
ConstEvmsCoIterator
typedef IterPair< ConstEvmsCoIteratorConstEvmsCoPair
typedef DerefIterator< ConstVolPIterator,
const Volume
ConstVolIterator
typedef IterPair< ConstVolIteratorConstVolPair
typedef DerefIterator< ConstPartPIterator,
const Partition
ConstPartIterator
typedef IterPair< ConstPartIteratorConstPartPair
typedef DerefIterator< ConstLvmLvPIterator,
const LvmLv
ConstLvmLvIterator
typedef IterPair< ConstLvmLvIteratorConstLvmLvPair
typedef DerefIterator< ConstEvmsPIterator,
const Evms
ConstEvmsIterator
typedef IterPair< ConstEvmsIteratorConstEvmsPair
typedef DerefIterator< ConstMdPIterator,
const Md
ConstMdIterator
typedef IterPair< ConstMdIteratorConstMdPair
typedef DerefIterator< ConstLoopPIterator,
const Loop
ConstLoopIterator
typedef IterPair< ConstLoopIteratorConstLoopPair
typedef DerefIterator< ConstDmPIterator,
const Dm
ConstDmIterator
typedef IterPair< ConstDmIteratorConstDmPair

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
const string & tmpDir () const
EtcFstabgetFstab ()
void handleLogFile (const string &name)
void printInfo (std::ostream &str)
void logCo (Container *c)
void logProcData (const string &l="")
storage::UsedByType usedBy (const string &dev)
bool setUsedBy (const string &dev, storage::UsedByType typ, const string &name)
bool canUseDevice (const string &dev, bool disks_allowed=false)
bool knownDevice (const string &dev, bool disks_allowed=false)
bool 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)
virtual ~Storage ()
void getContainers (deque< storage::ContainerInfo > &infos)
int getDiskInfo (const string &disk, storage::DiskInfo &info)
int getLvmVgInfo (const string &name, storage::LvmVgInfo &info)
int getEvmsCoInfo (const string &name, storage::EvmsCoInfo &info)
int getContDiskInfo (const string &disk, storage::ContainerInfo &cinfo, storage::DiskInfo &info)
int getContLvmVgInfo (const string &name, storage::ContainerInfo &cinfo, storage::LvmVgInfo &info)
int getContEvmsCoInfo (const string &name, storage::ContainerInfo &cinfo, storage::EvmsCoInfo &info)
void getVolumes (deque< storage::VolumeInfo > &vlist)
int getVolume (const string &device, storage::VolumeInfo &info)
int getPartitionInfo (const string &disk, deque< storage::PartitionInfo > &plist)
int getLvmLvInfo (const string &name, deque< storage::LvmLvInfo > &plist)
int getEvmsInfo (const string &name, deque< storage::EvmsInfo > &plist)
int getMdInfo (deque< storage::MdInfo > &plist)
int getDmInfo (deque< storage::DmInfo > &plist)
int getLoopInfo (deque< storage::LoopInfo > &plist)
bool getFsCapabilities (storage::FsType fstype, storage::FsCapabilities &fscapabilities) 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 nextFreePartition (const string &disk, storage::PartitionType type, unsigned &nr, string &device)
int updatePartitionArea (const string &device, unsigned long start, unsigned long size)
int createPartitionKb (const string &disk, storage::PartitionType type, unsigned long long start, unsigned long long sizek, string &device)
int createPartitionAny (const string &disk, unsigned long long size, string &device)
int createPartitionMax (const string &disk, storage::PartitionType type, string &device)
unsigned long kbToCylinder (const string &disk, unsigned long long size)
unsigned long long cylinderToKb (const string &disk, unsigned long size)
int removePartition (const string &partition)
int changePartitionId (const string &partition, unsigned id)
int forgetChangePartitionId (const string &partition)
int destroyPartitionTable (const string &disk, const string &label)
int initializeDisk (const string &disk, bool value)
string defaultDiskLabel () const
int changeFormatVolume (const string &device, bool format, storage::FsType fs)
int changeLabelVolume (const string &device, const string &label)
int changeMkfsOptVolume (const string &device, const string &opts)
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 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 forgetResizeVolume (const string &device)
void setRecursiveRemoval (bool val=true)
bool getRecursiveRemoval () const
void setZeroNewPartitions (bool val=true)
bool getZeroNewPartitions () const
void setDefaultMountBy (MountByType mby=MOUNTBY_DEVICE)
MountByType getDefaultMountBy () const
void setDetectMountedVolumes (bool val=true)
bool getDetectMountedVolumes () const
void setRootPrefix (const string &root)
int removeVolume (const string &device)
int removeUsing (const string &device, const storage::usedBy &uby)
bool checkDeviceMounted (const string &device, string &mp)
bool umountDevice (const string &device)
bool mountDevice (const string &device, const string &mp)
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 use_cache)
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 changeLvStripeSize (const string &vg, const string &name, unsigned long long stripeSize)
int evmsActivate ()
int createEvmsContainer (const string &name, unsigned long long peSizeK, bool lvm1, const deque< string > &devs)
int modifyEvmsContainer (const string &old_name, const string &new_name, unsigned long long peSizeK, bool lvm1)
int removeEvmsContainer (const string &name)
int extendEvmsContainer (const string &name, const deque< string > &devs)
int shrinkEvmsContainer (const string &name, const deque< string > &devs)
int createEvmsVolume (const string &vg, const string &name, unsigned long long sizeM, unsigned stripe, string &device)
int removeEvmsVolumeByDevice (const string &device)
int removeEvmsVolume (const string &vg, const string &name)
int changeEvmsStripeSize (const string &coname, const string &name, unsigned long long stripeSize)
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 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)
deque< string > getCommitActions (bool mark_destructive)
const string & getLastAction () const
const string & getExtendedErrorMessage () const
void eraseFreeInfo (const string &device)
int waitForDevice () const
int waitForDevice (const string &device) const
void checkDeviceExclusive (const string &device, unsigned secs)
void getDiskList (bool(*CheckFnc)(const Disk &), std::list< Disk * > &dl)
int commit ()
void activateHld (bool val=true)
void removeDmTableTo (const Volume &vol)
void removeDmTableTo (const string &device)
bool removeDmTable (const string &table)
bool removeDmMapsTo (const string &dev, bool also_evms=false)
bool checkDmMapsTo (const string &dev)
void updateDmEmptyPeMap ()
void dumpObjectList ()
void setCallbackProgressBar (storage::CallbackProgressBar pfnc)
storage::CallbackProgressBar getCallbackProgressBar () const
void setCallbackShowInstallInfo (storage::CallbackShowInstallInfo pfnc)
storage::CallbackShowInstallInfo getCallbackShowInstallInfo () const
void setCallbackInfoPopup (storage::CallbackInfoPopup pfnc)
storage::CallbackInfoPopup getCallbackInfoPopup () const
void setCallbackYesNoPopup (storage::CallbackYesNoPopup pfnc)
storage::CallbackYesNoPopup getCallbackYesNoPopup () const
storage::CallbackProgressBar getCallbackProgressBarTheOne () const
storage::CallbackShowInstallInfo getCallbackShowInstallInfoTheOne () const
storage::CallbackInfoPopup getCallbackInfoPopupTheOne () const
storage::CallbackYesNoPopup getCallbackYesNoPopupTheOne () const
void progressBarCb (const string &id, unsigned cur, unsigned max)
void showInfoCb (const string &info)
void infoPopupCb (const string &info)
bool yesnoPopupCb (const string &info)
ConstContPair contPair (bool(*CheckFnc)(const Container &)=NULL) const
ConstContIterator contBegin (bool(*CheckFnc)(const Container &)=NULL) const
ConstContIterator contEnd (bool(*CheckFnc)(const Container &)=NULL) const
template<class Pred>
ContCondIPair< Pred >::type contCondPair (const Pred &p) const
template<class Pred>
ConstContainerI< Pred >::type contCondBegin (const Pred &p) const
template<class Pred>
ConstContainerI< Pred >::type contCondEnd (const Pred &p) const
ConstDiskPair diskPair (bool(*CheckFnc)(const Disk &)=NULL) const
ConstDiskIterator diskBegin (bool(*CheckFnc)(const Disk &)=NULL) const
ConstDiskIterator diskEnd (bool(*CheckFnc)(const Disk &)=NULL) const
template<class Pred>
DiskCondIPair< Pred >::type diskCondPair (const Pred &p) const
template<class Pred>
ConstDiskI< Pred >::type diskCondBegin (const Pred &p) const
template<class Pred>
ConstDiskI< Pred >::type diskCondEnd (const Pred &p) const
ConstLvmVgPair lvmVgPair (bool(*CheckFnc)(const LvmVg &)=NULL) const
ConstLvmVgIterator lvmVgBegin (bool(*CheckFnc)(const LvmVg &)=NULL) const
ConstLvmVgIterator lvmVgEnd (bool(*CheckFnc)(const LvmVg &)=NULL) const
template<class Pred>
LvmVgCondIPair< Pred >::type lvmVgCondPair (const Pred &p) const
template<class Pred>
ConstLvmVgI< Pred >::type lvmVgCondBegin (const Pred &p) const
template<class Pred>
ConstLvmVgI< Pred >::type lvmVgCondEnd (const Pred &p) const
ConstEvmsCoPair evmsCoPair (bool(*CheckFnc)(const EvmsCo &)=NULL) const
ConstEvmsCoIterator evmsCoBegin (bool(*CheckFnc)(const EvmsCo &)=NULL) const
ConstEvmsCoIterator evmsCoEnd (bool(*CheckFnc)(const EvmsCo &)=NULL) const
template<class Pred>
EvmsCoCondIPair< Pred >::type evmsCoCondPair (const Pred &p) const
template<class Pred>
ConstEvmsCoI< Pred >::type evmsCoCondBegin (const Pred &p) const
template<class Pred>
ConstEvmsCoI< Pred >::type evmsCoCondEnd (const Pred &p) const
ConstVolPair volPair (bool(*CheckCnt)(const Container &)) const
ConstVolPair volPair (bool(*CheckVol)(const Volume &)=NULL, bool(*CheckCnt)(const Container &)=NULL) const
ConstVolIterator volBegin (bool(*CheckCnt)(const Container &)) const
ConstVolIterator volBegin (bool(*CheckVol)(const Volume &)=NULL, bool(*CheckCnt)(const Container &)=NULL) const
ConstVolIterator volEnd (bool(*CheckCnt)(const Container &)) const
ConstVolIterator volEnd (bool(*CheckVol)(const Volume &)=NULL, bool(*CheckCnt)(const Container &)=NULL) const
template<class Pred>
VolCondIPair< Pred >::type volCondPair (const Pred &p) const
template<class Pred>
ConstVolumeI< Pred >::type volCondBegin (const Pred &p) const
template<class Pred>
ConstVolumeI< Pred >::type volCondEnd (const Pred &p) const
ConstPartPair partPair (bool(*CheckCnt)(const Disk &)) const
ConstPartPair partPair (bool(*CheckPart)(const Partition &)=NULL, bool(*CheckCnt)(const Disk &)=NULL) const
ConstPartIterator partBegin (bool(*CheckDisk)(const Disk &)) const
ConstPartIterator partBegin (bool(*CheckPart)(const Partition &)=NULL, bool(*CheckDisk)(const Disk &)=NULL) const
ConstPartIterator partEnd (bool(*CheckDisk)(const Disk &)) const
ConstPartIterator partEnd (bool(*CheckPart)(const Partition &)=NULL, bool(*CheckDisk)(const Disk &)=NULL) const
template<class Pred>
PartCondIPair< Pred >::type partCondPair (const Pred &p) const
template<class Pred>
ConstPartitionI< Pred >::type partCondBegin (const Pred &p) const
template<class Pred>
ConstPartitionI< Pred >::type partCondEnd (const Pred &p) const
ConstLvmLvPair lvmLvPair (bool(*CheckLvmVg)(const LvmVg &)) const
ConstLvmLvPair lvmLvPair (bool(*CheckLvmLv)(const LvmLv &)=NULL, bool(*CheckLvmVg)(const LvmVg &)=NULL) const
ConstLvmLvIterator lvmLvBegin (bool(*CheckLvmVg)(const LvmVg &)) const
ConstLvmLvIterator lvmLvBegin (bool(*CheckLvmLv)(const LvmLv &)=NULL, bool(*CheckLvmVg)(const LvmVg &)=NULL) const
ConstLvmLvIterator lvmLvEnd (bool(*CheckLvmVg)(const LvmVg &)) const
ConstLvmLvIterator lvmLvEnd (bool(*CheckLvmLv)(const LvmLv &)=NULL, bool(*CheckLvmVg)(const LvmVg &)=NULL) const
template<class Pred>
LvmLvCondIPair< Pred >::type lvmLvCondPair (const Pred &p) const
template<class Pred>
ConstLvmLvI< Pred >::type lvmLvCondBegin (const Pred &p) const
template<class Pred>
ConstLvmLvI< Pred >::type lvmLvCondEnd (const Pred &p) const
ConstEvmsPair evmsPair (bool(*CheckEvmsCo)(const EvmsCo &)) const
ConstEvmsPair evmsPair (bool(*CheckEvms)(const Evms &)=NULL, bool(*CheckEvmsCo)(const EvmsCo &)=NULL) const
ConstEvmsIterator evmsBegin (bool(*CheckEvmsCo)(const EvmsCo &)) const
ConstEvmsIterator evmsBegin (bool(*CheckEvms)(const Evms &)=NULL, bool(*CheckEvmsCo)(const EvmsCo &)=NULL) const
ConstEvmsIterator evmsEnd (bool(*CheckEvmsCo)(const EvmsCo &)) const
ConstEvmsIterator evmsEnd (bool(*CheckEvms)(const Evms &)=NULL, bool(*CheckEvmsCo)(const EvmsCo &)=NULL) const
template<class Pred>
EvmsCondIPair< Pred >::type evmsCondPair (const Pred &p) const
template<class Pred>
ConstEvmsI< Pred >::type evmsCondBegin (const Pred &p) const
template<class Pred>
ConstEvmsI< Pred >::type evmsCondEnd (const Pred &p) const
ConstMdPair mdPair (bool(*CheckMd)(const Md &)=NULL) const
ConstMdIterator mdBegin (bool(*CheckMd)(const Md &)=NULL) const
ConstMdIterator mdEnd (bool(*CheckMd)(const Md &)=NULL) const
template<class Pred>
MdCondIPair< Pred >::type mdCondPair (const Pred &p) const
template<class Pred>
ConstMdI< Pred >::type mdCondBegin (const Pred &p) const
template<class Pred>
ConstMdI< Pred >::type mdCondEnd (const Pred &p) const
ConstLoopPair loopPair (bool(*CheckLoop)(const Loop &)=NULL) const
ConstLoopIterator loopBegin (bool(*CheckLoop)(const Loop &)=NULL) const
ConstLoopIterator loopEnd (bool(*CheckLoop)(const Loop &)=NULL) const
template<class Pred>
LoopCondIPair< Pred >::type loopCondPair (const Pred &p) const
template<class Pred>
ConstLoopI< Pred >::type loopCondBegin (const Pred &p) const
template<class Pred>
ConstLoopI< Pred >::type loopCondEnd (const Pred &p) const
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

Static Public Member Functions

static bool notDeleted (const Container &d)
static void initDefaultLogger ()
static const string & arch ()
static const string & sysfsDir ()
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 CastCheckIterator<
CCIter, storage::EVMS, const
EvmsCo * > 
ContainerCEvmsIter
typedef CastCheckIterator<
CIter, storage::EVMS, EvmsCo * > 
ContainerEvmsIter
typedef CheckFnc< const EvmsCoCheckFncEvmsCo
typedef CheckerIterator< CheckFncEvmsCo,
ConstEvmsCoPI< CheckFncEvmsCo
>::type, ContainerCEvmsIter,
EvmsCo
ConstEvmsCoPIterator
typedef CheckerIterator< CheckFncEvmsCo,
EvmsCoPI< CheckFncEvmsCo
>::type, ContainerEvmsIter,
EvmsCo
EvmsCoPIterator
typedef DerefIterator< EvmsCoPIterator,
EvmsCo
EvmsCoIterator
typedef IterPair< EvmsCoIteratorEvmsCoPair
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 ListListIterator<
Container::ConstPlainIterator,
ConstEvmsCoIterator
ConstEvmsInter
typedef CastIterator< ConstEvmsInter,
Evms * > 
ConstEvmsInter2
typedef CheckFnc< const EvmsCheckFncEvms
typedef CheckerIterator< CheckFncEvms,
ConstEvmsPI< CheckFncEvms
>::type, ConstEvmsInter2,
Evms
ConstEvmsPIterator
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,
Dm * > 
ConstDmInter
typedef CheckFnc< const DmCheckFncDm
typedef CheckerIterator< CheckFncDm,
ConstDmPI< CheckFncDm
>::type, ConstDmInter, Dm
ConstDmPIterator

Protected Member Functions

CPair cPair (bool(*CheckFnc)(const Container &)=NULL)
ContIterator cBegin (bool(*CheckFnc)(const Container &)=NULL)
ContIterator cEnd (bool(*CheckFnc)(const Container &)=NULL)
DiskPair dPair (bool(*CheckFnc)(const Disk &)=NULL)
DiskIterator dBegin (bool(*CheckFnc)(const Disk &)=NULL)
DiskIterator dEnd (bool(*CheckFnc)(const Disk &)=NULL)
LvmVgPair lvgPair (bool(*CheckFnc)(const LvmVg &)=NULL)
LvmVgIterator lvgBegin (bool(*CheckFnc)(const LvmVg &)=NULL)
LvmVgIterator lvgEnd (bool(*CheckFnc)(const LvmVg &)=NULL)
EvmsCoPair evCoPair (bool(*CheckFnc)(const EvmsCo &)=NULL)
EvmsCoIterator evCoBegin (bool(*CheckFnc)(const EvmsCo &)=NULL)
EvmsCoIterator evCoEnd (bool(*CheckFnc)(const EvmsCo &)=NULL)
VPair vPair (bool(*CheckCnt)(const Container &))
VPair vPair (bool(*CheckVol)(const Volume &)=NULL, bool(*CheckCnt)(const Container &)=NULL)
VolIterator vBegin (bool(*CheckCnt)(const Container &))
VolIterator vBegin (bool(*CheckVol)(const Volume &)=NULL, bool(*CheckCnt)(const Container &)=NULL)
VolIterator vEnd (bool(*CheckCnt)(const Container &))
VolIterator vEnd (bool(*CheckVol)(const Volume &)=NULL, bool(*CheckCnt)(const Container &)=NULL)
void initialize ()
void detectDisks (ProcPart &ppart)
void autodetectDisks (ProcPart &ppart)
void detectMultipath ()
void detectMds ()
void detectLoops (ProcPart &ppart)
void detectLvmVgs ()
void detectEvms ()
void detectDm (ProcPart &ppart)
void initDisk (DiskData &data, ProcPart &pp)
void detectFsData (const VolIterator &begin, const VolIterator &end)
void detectFsDataTestMode (const string &file, const VolIterator &begin, const VolIterator &end)
void addToList (Container *e)
DiskIterator findDisk (const string &disk)
LvmVgIterator findLvmVg (const string &name)
EvmsCoIterator findEvmsCo (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 haveLoop (LoopCo *&loop)
bool haveEvms ()
void handleEvmsRemoveDevice (const Disk *disk, const string &d, bool rename)
void handleEvmsCreateDevice (const string &disk, const string &dev, bool extended=false)
int removeContainer (Container *val, bool call_del=true)
void logVolumes (const string &Dir)
int commitPair (CPair &p, bool(*fnc)(const Container &))
void sortCommitLists (storage::CommitStage stage, std::list< Container * > &co, std::list< Volume * > &vl, std::list< storage::commitAction * > &todo)
bool ignoreError (std::list< commitAction * >::iterator i, std::list< commitAction * > &al)
void evmsActivateDevices ()
string backupStates () const
void detectObjects ()
void deleteClist (CCont &co)
void deleteBackups ()
void setFreeInfo (const string &device, unsigned long long df_free, unsigned long long resize_free, unsigned long long used, bool win)
bool getFreeInfo (const string &device, unsigned long long &df_free, unsigned long long &resize_free, unsigned long long &used, bool &win)

Static Protected Member Functions

static bool isMd (const Container &d)
static bool isLoop (const Container &d)
static bool isDm (const Container &d)
static void detectArch ()

Protected Attributes

bool readonly
bool testmode
bool inst_sys
bool cache
bool initialized
bool autodetect
bool recursiveRemove
bool zeroNewPartitions
MountByType defaultMountBy
bool detectMounted
bool root_mounted
string testdir
string tempdir
string rootprefix
string logdir
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

Static Protected Attributes

static string proc_arch
static string sysfs_dir = "/sys/block"
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  ConstDmPI
struct  ConstEvmsCoI
struct  ConstEvmsCoPI
struct  ConstEvmsI
struct  ConstEvmsPI
struct  ConstLoopI
struct  ConstLoopPI
struct  ConstLvmLvI
struct  ConstLvmLvPI
struct  ConstLvmVgI
struct  ConstLvmVgPI
struct  ConstMdI
struct  ConstMdPI
struct  ConstPartitionI
struct  ConstPartitionPI
struct  ConstVolumeI
struct  ConstVolumePI
struct  ContainerI
struct  ContainerPI
struct  ContCondIPair
struct  DiskCondIPair
struct  DiskI
struct  DiskPI
struct  DmCondIPair
struct  EvmsCoCondIPair
struct  EvmsCoI
struct  EvmsCondIPair
struct  EvmsCoPI
struct  FreeInfo
struct  LoopCondIPair
struct  LvmLvCondIPair
struct  LvmVgCondIPair
struct  LvmVgI
struct  LvmVgPI
struct  MdCondIPair
struct  PartCondIPair
struct  SkipDeleted
struct  VolCondIPair
struct  VolumeI

Member Typedef Documentation

typedef CCont::const_iterator storage::Storage::CCIter [protected]
 

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

typedef CheckFnc<const Container> storage::Storage::CheckFncCont [protected]
 

typedef CheckFnc<const Disk> storage::Storage::CheckFncDisk [protected]
 

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

typedef CheckFnc<const Evms> storage::Storage::CheckFncEvms [protected]
 

typedef CheckFnc<const EvmsCo> storage::Storage::CheckFncEvmsCo [protected]
 

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

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

typedef CheckFnc<const LvmVg> storage::Storage::CheckFncLvmVg [protected]
 

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

typedef CheckFnc<const Partition> storage::Storage::CheckFncPartition [protected]
 

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

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

typedef DerefIterator<ConstContPIterator,const Container> storage::Storage::ConstContIterator
 

typedef IterPair<ConstContIterator> storage::Storage::ConstContPair
 

typedef CheckerIterator< CheckFncCont, ConstContainerPI<CheckFncCont>::type, CCIter, Container > storage::Storage::ConstContPIterator [protected]
 

typedef DerefIterator<ConstDiskPIterator,const Disk> storage::Storage::ConstDiskIterator
 

typedef IterPair<ConstDiskIterator> storage::Storage::ConstDiskPair
 

typedef CheckerIterator< CheckFncDisk, ConstDiskPI<CheckFncDisk>::type, ContainerCDiskIter, Disk > storage::Storage::ConstDiskPIterator [protected]
 

typedef CastIterator<ConstVolInter, Dm *> storage::Storage::ConstDmInter [protected]
 

typedef DerefIterator<ConstDmPIterator, const Dm> storage::Storage::ConstDmIterator
 

typedef IterPair<ConstDmIterator> storage::Storage::ConstDmPair
 

typedef CheckerIterator< CheckFncDm, ConstDmPI<CheckFncDm>::type, ConstDmInter, Dm > storage::Storage::ConstDmPIterator [protected]
 

typedef DerefIterator<ConstEvmsCoPIterator,const EvmsCo> storage::Storage::ConstEvmsCoIterator
 

typedef IterPair<ConstEvmsCoIterator> storage::Storage::ConstEvmsCoPair
 

typedef CheckerIterator< CheckFncEvmsCo, ConstEvmsCoPI<CheckFncEvmsCo>::type, ContainerCEvmsIter, EvmsCo > storage::Storage::ConstEvmsCoPIterator [protected]
 

typedef ListListIterator<Container::ConstPlainIterator, ConstEvmsCoIterator> storage::Storage::ConstEvmsInter [protected]
 

typedef CastIterator<ConstEvmsInter, Evms *> storage::Storage::ConstEvmsInter2 [protected]
 

typedef DerefIterator<ConstEvmsPIterator, const Evms> storage::Storage::ConstEvmsIterator
 

typedef IterPair<ConstEvmsIterator> storage::Storage::ConstEvmsPair
 

typedef CheckerIterator< CheckFncEvms, ConstEvmsPI<CheckFncEvms>::type, ConstEvmsInter2, Evms > storage::Storage::ConstEvmsPIterator [protected]
 

typedef CastIterator<ConstVolInter, Loop *> storage::Storage::ConstLoopInter [protected]
 

typedef DerefIterator<ConstLoopPIterator, const Loop> storage::Storage::ConstLoopIterator
 

typedef IterPair<ConstLoopIterator> storage::Storage::ConstLoopPair
 

typedef CheckerIterator< CheckFncLoop, ConstLoopPI<CheckFncLoop>::type, ConstLoopInter, Loop > storage::Storage::ConstLoopPIterator [protected]
 

typedef ListListIterator<Container::ConstPlainIterator, ConstLvmVgIterator> storage::Storage::ConstLvmLvInter [protected]
 

typedef CastIterator<ConstLvmLvInter, LvmLv *> storage::Storage::ConstLvmLvInter2 [protected]
 

typedef DerefIterator<ConstLvmLvPIterator, const LvmLv> storage::Storage::ConstLvmLvIterator
 

typedef IterPair<ConstLvmLvIterator> storage::Storage::ConstLvmLvPair
 

typedef CheckerIterator< CheckFncLvmLv, ConstLvmLvPI<CheckFncLvmLv>::type, ConstLvmLvInter2, LvmLv > storage::Storage::ConstLvmLvPIterator [protected]
 

typedef DerefIterator<ConstLvmVgPIterator,const LvmVg> storage::Storage::ConstLvmVgIterator
 

typedef IterPair<ConstLvmVgIterator> storage::Storage::ConstLvmVgPair
 

typedef CheckerIterator< CheckFncLvmVg, ConstLvmVgPI<CheckFncLvmVg>::type, ContainerCLvmVgIter, LvmVg > storage::Storage::ConstLvmVgPIterator [protected]
 

typedef CastIterator<ConstVolInter, Md *> storage::Storage::ConstMdInter [protected]
 

typedef DerefIterator<ConstMdPIterator, const Md> storage::Storage::ConstMdIterator
 

typedef IterPair<ConstMdIterator> storage::Storage::ConstMdPair
 

typedef CheckerIterator< CheckFncMd, ConstMdPI<CheckFncMd>::type, ConstMdInter, Md > storage::Storage::ConstMdPIterator [protected]
 

typedef ListListIterator<Container::ConstPlainIterator, ConstDiskIterator> storage::Storage::ConstPartInter [protected]
 

typedef CastIterator<ConstPartInter, Partition *> storage::Storage::ConstPartInter2 [protected]
 

typedef DerefIterator<ConstPartPIterator, const Partition> storage::Storage::ConstPartIterator
 

typedef IterPair<ConstPartIterator> storage::Storage::ConstPartPair
 

typedef CheckerIterator< CheckFncPartition, ConstPartitionPI<CheckFncPartition>::type, ConstPartInter2, Partition > storage::Storage::ConstPartPIterator [protected]
 

typedef ListListIterator<Container::ConstPlainIterator, ConstContIterator> storage::Storage::ConstVolInter [protected]
 

typedef DerefIterator<ConstVolPIterator,const Volume> storage::Storage::ConstVolIterator
 

typedef IterPair<ConstVolIterator> storage::Storage::ConstVolPair
 

typedef CheckerIterator< CheckFncVol, ConstVolumePI<CheckFncVol>::type, ConstVolInter, Volume > storage::Storage::ConstVolPIterator [protected]
 

typedef CastCheckIterator<CCIter, storage::DISK, const Disk *> storage::Storage::ContainerCDiskIter [protected]
 

typedef CastCheckIterator<CCIter, storage::EVMS, const EvmsCo *> storage::Storage::ContainerCEvmsIter [protected]
 

typedef CastCheckIterator<CCIter, storage::LVM, const LvmVg *> storage::Storage::ContainerCLvmVgIter [protected]
 

typedef CastCheckIterator<CIter, storage::DISK, Disk *> storage::Storage::ContainerDiskIter [protected]
 

typedef CastCheckIterator<CIter, storage::EVMS, EvmsCo *> storage::Storage::ContainerEvmsIter [protected]
 

typedef CastCheckIterator<CIter, storage::LVM, LvmVg *> storage::Storage::ContainerLvmVgIter [protected]
 

typedef DerefIterator<ContPIterator,Container> storage::Storage::ContIterator [protected]
 

typedef CheckerIterator< CheckFncCont, ContainerPI<CheckFncCont>::type, CIter, Container > storage::Storage::ContPIterator [protected]
 

typedef IterPair<ContIterator> storage::Storage::CPair [protected]
 

typedef DerefIterator<DiskPIterator,Disk> storage::Storage::DiskIterator [protected]
 

typedef IterPair<DiskIterator> storage::Storage::DiskPair [protected]
 

typedef CheckerIterator< CheckFncDisk, DiskPI<CheckFncDisk>::type, ContainerDiskIter, Disk > storage::Storage::DiskPIterator [protected]
 

typedef DerefIterator<EvmsCoPIterator,EvmsCo> storage::Storage::EvmsCoIterator [protected]
 

typedef IterPair<EvmsCoIterator> storage::Storage::EvmsCoPair [protected]
 

typedef CheckerIterator< CheckFncEvmsCo, EvmsCoPI<CheckFncEvmsCo>::type, ContainerEvmsIter, EvmsCo > storage::Storage::EvmsCoPIterator [protected]
 

typedef DerefIterator<LvmVgPIterator,LvmVg> storage::Storage::LvmVgIterator [protected]
 

typedef IterPair<LvmVgIterator> storage::Storage::LvmVgPair [protected]
 

typedef CheckerIterator< CheckFncLvmVg, LvmVgPI<CheckFncLvmVg>::type, ContainerLvmVgIter, LvmVg > storage::Storage::LvmVgPIterator [protected]
 

typedef DerefIterator<VolPIterator,Volume> storage::Storage::VolIterator [protected]
 

typedef ListListIterator<Container::PlainIterator, ContIterator> storage::Storage::VolPart [protected]
 

typedef CheckerIterator< CheckFncVol, VolumeI<CheckFncVol>::type, VolPart, Volume > storage::Storage::VolPIterator [protected]
 

typedef IterPair<VolIterator> storage::Storage::VPair [protected]
 


Constructor & Destructor Documentation

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

Storage::~Storage  )  [virtual]
 


Member Function Documentation

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

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

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

Implements storage::StorageInterface.

int Storage::addFstabEntry const string &  device,
const string &  mount,
const string &  vfs,
const string &  options,
unsigned  freq,
unsigned  passno
[virtual]
 

Adds the specified entry to /etc/fstab

Parameters:
device name of volume, e.g. /dev/hda1
mount mount point, e.g. /home
vfs virtual filesystem type, e.g. reiserfs or ext3
options fstab options e.g. noauto,user,sync
freq value for fifth fstab field
passno value for sixth fstab field
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::addFstabOptions const string &  ,
const string &  options
[virtual]
 

Add to the fstab options of a volume

Parameters:
device name of volume, e.g. /dev/hda1
options fstab options to add to already exiting options of the volume (e.g. noauto,user,sync). Multiple options are separated by ",".
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

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

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

void storage::Storage::assertInit  )  [inline]
 

void Storage::autodetectDisks ProcPart ppart  )  [protected]
 

string Storage::backupStates  )  const [protected]
 

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

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

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

int Storage::changeEvmsStripeSize const string &  coname,
const string &  name,
unsigned long long  stripeSize
[virtual]
 

Change strip size of a EVMS volume. This can only be before the volume is created on disk.

Parameters:
coname name of EVMS container
name of volume
stripeSize new stripe size of volume
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::changeFormatVolume const string &  device,
bool  format,
storage::FsType  fs
[virtual]
 

Sets or unsets the format flag for the given volume.

Parameters:
device name of volume, e.g. /dev/hda1
format flag if format is set on or off
fs type of filesystem to create if format is true
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::changeFstabOptions const string &  ,
const string &  options
[virtual]
 

Changes the fstab options of a volume

Parameters:
device name of volume, e.g. /dev/hda1
options new fstab options of the volume (e.g. noauto,user,sync). Multiple options are separated by ",". It is valid to set an empty fstab option.
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::changeLabelVolume const string &  device,
const string &  label
[virtual]
 

Sets the value of the filesystem label.

Parameters:
device name of volume, e.g. /dev/hda1
label value of the label
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::changeLvStripeSize const string &  vg,
const string &  name,
unsigned long long  stripeSize
[virtual]
 

Change stripe size of a LVM logical volume. This can only be before the volume is created on disk.

Parameters:
vg name of volume group
name of logical volume
stripeSize new stripe size of logical volume
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::changeMdChunk const string &  name,
unsigned long  chunk
[virtual]
 

Change chunk size of a raid device. This can only be done before the raid is created on disk.

Parameters:
name name of software raid device (e.g. /dev/md0)
chunk new chunk size of the software raid
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::changeMdParity const string &  name,
storage::MdParity  ptype
[virtual]
 

Change parity of a raid device with raid type raid5. This can only be done before the raid is created on disk.

Parameters:
name name of software raid device (e.g. /dev/md0)
ptype new parity of the software raid
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::changeMdType const string &  name,
storage::MdType  rtype
[virtual]
 

Change raid type of a raid device. This can only be done before the raid is created on disk.

Parameters:
name name of software raid device (e.g. /dev/md0)
rtype new raid personality of the software raid
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::changeMkfsOptVolume const string &  device,
const string &  opts
[virtual]
 

Sets the value of mkfs options.

Parameters:
device name of volume, e.g. /dev/hda1
opts options for mkfs command
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::changeMountBy const string &  device,
storage::MountByType  mby
[virtual]
 

Changes mount by value in fstab of a volume

Parameters:
device name of volume, e.g. /dev/hda1
options new mount by value of the volume.
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::changeMountPoint const string &  device,
const string &  mount
[virtual]
 

Changes the mount point of a volume

Parameters:
device name of volume, e.g. /dev/hda1
mount new mount point of the volume (e.g. /home). it is valid to set an empty mount point
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::changePartitionId const string &  partition,
unsigned  id
[virtual]
 

Change partition id of a partition

Parameters:
partition name of partition, e.g. /dev/hda1
new partition id (e.g. 0x82 swap, 0x8e for lvm, ...)
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

bool Storage::checkBackupState const string &  name  )  [virtual]
 

Checks if a backup with a certain name already exists

Parameters:
name name of the backup to check
Returns:
boolean if the backup exists

Implements storage::StorageInterface.

int Storage::checkCache  ) 
 

void Storage::checkDeviceExclusive const string &  device,
unsigned  secs
 

bool Storage::checkDeviceMounted const string &  device,
string &  mp
[virtual]
 

Determine if the given device is known and mounted somewhere

Parameters:
device device name to check (checks also all alias names)
mp set to current mount moint if mounted
Returns:
bool that is true if device is mounted

Implements storage::StorageInterface.

bool Storage::checkDmMapsTo const string &  dev  )  [virtual]
 

Check if there are dm maps to a given device

Parameters:
device device name for which dm maps should be checked
Returns:
bool true if there are map to device

Implements storage::StorageInterface.

int Storage::checkMd const string &  name  )  [virtual]
 

Check if a raid device is valid

Parameters:
name name of software raid device (e.g. /dev/md0)
Returns:
true if all is ok, a false to indicate an error

Implements storage::StorageInterface.

int Storage::commit  )  [virtual]
 

Commit the current state to the system. Only useful in caching mode.

Implements storage::StorageInterface.

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

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

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

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

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

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

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

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

int Storage::createBackupState const string &  name  )  [virtual]
 

Create backup of current state of all containers

Parameters:
name name under which the backup should be created
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::createEvmsContainer const string &  name,
unsigned long long  peSizeK,
bool  lvm1,
const deque< string > &  devs
[virtual]
 

Create a EVMS container

Parameters:
name name of container, must not contain blanks, colons and shell special characters (e.g. system)
peSizeK physical extent size in kilobytes
lvm1 flag if lvm1 compatible format should be used
devs list with physical devices to add to that volume group
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::createEvmsVolume const string &  vg,
const string &  name,
unsigned long long  sizeM,
unsigned  stripe,
string &  device
[virtual]
 

Create a EVMS volume within a EVMS container

Parameters:
coname of container
name of volume
size size of volume in megabytes
stripe stripe count of volume (use 1 unless you know exactly what you are doing)
device is set to the device name of the new volume
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::createFileLoop const string &  lname,
bool  reuseExisting,
unsigned long long  sizeK,
const string &  mp,
const string &  pwd,
string &  device
[virtual]
 

Create a file based loop device. Encryption is automatically activated on the loop device.

Parameters:
lname name of file the loop device is based on
reuseExisting if true an already existing file will be reused. if false the file will be created new. if false the format flag for the device is set by default.
sizeK size of the created file, this parameter is ignored if reuseExisting is true and a file alraedy exists.
mp mount point of the file based loop device
pwd crypt password for the loop device, encryption type is determined automatically by the system
device the name of the created loop device
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::createLvmLv const string &  vg,
const string &  name,
unsigned long long  sizeM,
unsigned  stripe,
string &  device
[virtual]
 

Create a LVM logical volume

Parameters:
vg name of volume group
name of logical volume
size size of logical volume in megabytes
stripe stripe count of logical volume (use 1 unless you know exactly what you are doing)
device is set to the device name of the new LV
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::createLvmVg const string &  name,
unsigned long long  peSizeK,
bool  lvm1,
const deque< string > &  devs
[virtual]
 

Create a LVM volume group

Parameters:
name name of volume group, must not contain blanks, colons and shell special characters (e.g. system)
peSizeK physical extent size in kilobytes
lvm1 flag if lvm1 compatible format should be used
devs list with physical devices to add to that volume group
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::createMd const string &  name,
storage::MdType  rtype,
const deque< string > &  devs
[virtual]
 

Create a Software raid device by name

Parameters:
name name of software raid device to create (e.g. /dev/md0)
rtype raid personality of the new software raid
devs list with physical devices for the new software raid
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::createMdAny storage::MdType  rtype,
const deque< string > &  devs,
string &  device
[virtual]
 

Create a Software raid device. Name determined by library.

Parameters:
rtype raid personality of the new software raid
devs list with physical devices for the new software raid
device device name of created software raid device
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::createPartition const string &  disk,
storage::PartitionType  type,
unsigned long  start,
unsigned long  size,
string &  device
[virtual]
 

Create a new partition. Units given in disk cylinders.

Parameters:
disk device name of disk, e.g. /dev/hda
type type of partition to create, e.g. primary or extended
start cylinder number of partition start (cylinders are numbered starting with 0)
sizeCyl size of partition in disk cylinders
device is set to the device name of the new partition The name is returned instead of the number since creating the name from the number is not straight-forward.
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::createPartitionAny const string &  disk,
unsigned long long  size,
string &  device
[virtual]
 

Create a new partition of any type anywhere on the disk. Units given in Kilobytes.

Parameters:
disk device name of disk, e.g. /dev/hda
size size of partition in kilobytes
device is set to the device name of the new partition The name is returned instead of the number since creating the name from the number is not straight-forward.
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::createPartitionKb const string &  disk,
storage::PartitionType  type,
unsigned long long  start,
unsigned long long  sizek,
string &  device
[virtual]
 

Create a new partition. Units given in Kilobytes.

Parameters:
disk device name of disk, e.g. /dev/hda
type type of partition to create, e.g. primary or extended
start offset in kilobytes from start of disk
size size of partition in kilobytes
device is set to the device name of the new partition The name is returned instead of the number since creating the name from the number is not straight-forward.
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::createPartitionMax const string &  disk,
storage::PartitionType  type,
string &  device
[virtual]
 

Create a new partition of given type as large as possible.

Parameters:
disk device name of disk, e.g. /dev/hda
type type of partition to create, e.g. primary or extended
device is set to the device name of the new partition The name is returned instead of the number since creating the name from the number is not straight-forward.
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

unsigned long long Storage::cylinderToKb const string &  disk,
unsigned long  size
[virtual]
 

Compute number of kilobytes of a given number of disk cylinders

Parameters:
disk device name of disk, e.g. /dev/hda
size number of disk cylinders
Returns:
number of kilobytes of given cylinders

Implements storage::StorageInterface.

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

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.

void Storage::deleteBackups  )  [protected]
 

void Storage::deleteClist CCont co  )  [protected]
 

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

int Storage::destroyPartitionTable const string &  disk,
const string &  label
[virtual]
 

Destroys the partition table of a disk. An empty disk label of the given type without any partition is created.

Parameters:
disk device name of disk, e.g. /dev/hda
label disk label to create on disk , e.g. msdos, gpt, ...
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

void Storage::detectArch  )  [static, protected]
 

void Storage::detectDisks ProcPart ppart  )  [protected]
 

void Storage::detectDm ProcPart ppart  )  [protected]
 

void Storage::detectEvms  )  [protected]
 

void Storage::detectFsData const VolIterator begin,
const VolIterator end
[protected]
 

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

void Storage::detectLoops ProcPart ppart  )  [protected]
 

void Storage::detectLvmVgs  )  [protected]
 

void Storage::detectMds  )  [protected]
 

void Storage::detectMultipath  )  [protected]
 

void Storage::detectObjects  )  [protected]
 

string Storage::deviceByNumber const string &  majmin  ) 
 

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

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

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

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

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

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

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

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

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

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

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

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

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

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

void Storage::dumpObjectList  )  [virtual]
 

Dump list of all objects to log file.

Implements storage::StorageInterface.

bool Storage::equalBackupStates const string &  lhs,
const string &  rhs,
bool  verbose_log
const [virtual]
 

Compare two backup states

Parameters:
lhs name of backup to compare, empty string means active state
rhs name of backup to compare, empty string means active state
verbose_log flag if differences should be logged in detail
Returns:
true if states are equal

Implements storage::StorageInterface.

void Storage::eraseFreeInfo const string &  device  ) 
 

EvmsCoIterator storage::Storage::evCoBegin bool(*)(const EvmsCo &)  CheckFnc = NULL  )  [inline, protected]
 

EvmsCoIterator storage::Storage::evCoEnd bool(*)(const EvmsCo &)  CheckFnc = NULL  )  [inline, protected]
 

EvmsCoPair storage::Storage::evCoPair bool(*)(const EvmsCo &)  CheckFnc = NULL  )  [inline, protected]
 

int Storage::evmsActivate  )  [virtual]
 

Activate EVMS devices on the system. This is only neseccary on systems where EVMS is not activated during system startup. This command is executed immediately, there is no need for a call to commit().

Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

void Storage::evmsActivateDevices  )  [protected]
 

ConstEvmsIterator storage::Storage::evmsBegin bool(*)(const Evms &)  CheckEvms = NULL,
bool(*)(const EvmsCo &)  CheckEvmsCo = NULL
const [inline]
 

ConstEvmsIterator storage::Storage::evmsBegin bool(*)(const EvmsCo &)  CheckEvmsCo  )  const [inline]
 

ConstEvmsCoIterator storage::Storage::evmsCoBegin bool(*)(const EvmsCo &)  CheckFnc = NULL  )  const [inline]
 

template<class Pred>
ConstEvmsCoI<Pred>::type storage::Storage::evmsCoCondBegin const Pred &  p  )  const [inline]
 

template<class Pred>
ConstEvmsCoI<Pred>::type storage::Storage::evmsCoCondEnd const Pred &  p  )  const [inline]
 

template<class Pred>
EvmsCoCondIPair<Pred>::type storage::Storage::evmsCoCondPair const Pred &  p  )  const [inline]
 

ConstEvmsCoIterator storage::Storage::evmsCoEnd bool(*)(const EvmsCo &)  CheckFnc = NULL  )  const [inline]
 

template<class Pred>
ConstEvmsI<Pred>::type storage::Storage::evmsCondBegin const Pred &  p  )  const [inline]
 

template<class Pred>
ConstEvmsI<Pred>::type storage::Storage::evmsCondEnd const Pred &  p  )  const [inline]
 

template<class Pred>
EvmsCondIPair<Pred>::type storage::Storage::evmsCondPair const Pred &  p  )  const [inline]
 

ConstEvmsCoPair storage::Storage::evmsCoPair bool(*)(const EvmsCo &)  CheckFnc = NULL  )  const [inline]
 

ConstEvmsIterator storage::Storage::evmsEnd bool(*)(const Evms &)  CheckEvms = NULL,
bool(*)(const EvmsCo &)  CheckEvmsCo = NULL
const [inline]
 

ConstEvmsIterator storage::Storage::evmsEnd bool(*)(const EvmsCo &)  CheckEvmsCo  )  const [inline]
 

ConstEvmsPair storage::Storage::evmsPair bool(*)(const Evms &)  CheckEvms = NULL,
bool(*)(const EvmsCo &)  CheckEvmsCo = NULL
const [inline]
 

ConstEvmsPair storage::Storage::evmsPair bool(*)(const EvmsCo &)  CheckEvmsCo  )  const [inline]
 

int Storage::extendEvmsContainer const string &  name,
const deque< string > &  devs
[virtual]
 

Extend a EVMS container with additional physical devices

Parameters:
name name of container
devs list with physical devices to add to that container
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::extendLvmVg const string &  name,
const deque< string > &  devs
[virtual]
 

Extend a LVM volume group with additional physical devices

Parameters:
name name of volume group
devs list with physical devices to add to that volume group
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::extendMd const string &  name,
const string &  dev
[virtual]
 

Add a partition to a raid device. This can only be done before the raid is created on disk.

Parameters:
name name of software raid device (e.g. /dev/md0)
dev partition to add to that raid
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

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

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

Storage::EvmsCoIterator Storage::findEvmsCo const string &  name  )  [protected]
 

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

string Storage::findNormalDevice const string &  device  ) 
 

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

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

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

int Storage::forgetChangePartitionId const string &  partition  )  [virtual]
 

Forget previouly issued change of partition id

Parameters:
partition name of partition, e.g. /dev/hda1
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::forgetCryptPassword const string &  device  )  [virtual]
 

Mkes library forgt a crypt password of a volume

Parameters:
device name of volume, e.g. /dev/hda1
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::forgetResizeVolume const string &  device  )  [virtual]
 

Forget about possible resize of an volume.

Parameters:
device device name of volume
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

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.

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

static storage::CallbackInfoPopup storage::Storage::getCallbackInfoPopupYcp  )  [inline, static]
 

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.

storage::CallbackProgressBar storage::Storage::getCallbackProgressBarTheOne  )  const [inline]
 

static storage::CallbackProgressBar storage::Storage::getCallbackProgressBarYcp  )  [inline, static]
 

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.

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

static storage::CallbackShowInstallInfo storage::Storage::getCallbackShowInstallInfoYcp  )  [inline, static]
 

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.

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

static storage::CallbackYesNoPopup storage::Storage::getCallbackYesNoPopupYcp  )  [inline, static]
 

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

Gets a list of string describing the 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, ...)
Returns:
list of strings presentable to the user

Implements storage::StorageInterface.

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

int Storage::getContDiskInfo const string &  disk,
storage::ContainerInfo cinfo,
storage::DiskInfo info
[virtual]
 

Query disk info for a disk device

Parameters:
disk device name of disk, e.g. /dev/hda
cinfo record that gets filled with container general data
info record that gets filled with disk special data
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::getContEvmsCoInfo const string &  name,
storage::ContainerInfo cinfo,
storage::EvmsCoInfo info
[virtual]
 

Query container info for a EVMS container

Parameters:
name name of container, e.g. lvm2/system
cinfo record that gets filled with container general data
info record that gets filled with EVMS Container special data
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::getContLvmVgInfo const string &  name,
storage::ContainerInfo cinfo,
storage::LvmVgInfo info
[virtual]
 

Query info for a LVM volume group

Parameters:
name name of volume group, e.g. system
cinfo record that gets filled with container general data
info record that gets filled with LVM VG special data
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::getCrypt const string &  device,
bool &  val
[virtual]
 

Get encryption state of a volume

Parameters:
device name of volume, e.g. /dev/hda1
val will be set if encryption is activated
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::getCryptPassword const string &  device,
string &  pwd
[virtual]
 

Get crypt password of a volume

Parameters:
device name of volume, e.g. /dev/hda1
pwd crypt password for this volume
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

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

Implements storage::StorageInterface.

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.

int Storage::getDiskInfo const string &  disk,
storage::DiskInfo info
[virtual]
 

Query disk info for a disk device

Parameters:
disk device name of disk, e.g. /dev/hda
info record that get filled with disk special data
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

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

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

int Storage::getEvmsCoInfo const string &  name,
storage::EvmsCoInfo info
[virtual]
 

Query container info for a EVMS container

Parameters:
name name of container, e.g. lvm2/system
info record that gets filled with EVMS Container special data
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::getEvmsInfo const string &  name,
deque< storage::EvmsInfo > &  plist
 

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.

bool Storage::getFreeInfo const string &  device,
unsigned long long &  df_free,
unsigned long long &  resize_free,
unsigned long long &  used,
bool &  win
[protected]
 

bool Storage::getFreeInfo const string &  device,
unsigned long long &  resize_free,
unsigned long long &  df_free,
unsigned long long &  used,
bool &  win,
bool  use_cache
[virtual]
 

Detect potentially available free space on a partition

Parameters:
device device to check
resize_free free space in kilobytes available for resize
df_free free space in kilobytes available in filesystem
used used space in kilobytes for filesystem
win flag if partition contains a windows installation
use_cache function should return cached data if available
Returns:
bool if values could be succcessfully determined

Implements storage::StorageInterface.

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

Query capabilities of a filesystem type.

Implements storage::StorageInterface.

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

int Storage::getFstabOptions const string &  device,
string &  options
[virtual]
 

Get the fstab options of a volume

Parameters:
device name of volume, e.g. /dev/hda1
options will be set to the fstab options of the volume (e.g. noauto,user,sync). Multiple options are separated by ",".
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::getIgnoreFstab const string &  device,
bool &  val
[virtual]
 

Get fstab handling state of a volume.

Parameters:
device name of volume, e.g. /dev/hda1
val will be set if fstab should be ignored for this volume
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

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.

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

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

int Storage::getLvmVgInfo const string &  name,
storage::LvmVgInfo info
[virtual]
 

Query info for a LVM volume group

Parameters:
name name of volume group, e.g. system
info record that gets filled with LVM VG special data
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

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

int Storage::getMountBy const string &  device,
storage::MountByType mby
[virtual]
 

Get mount by value in fstab of a volume

Parameters:
device name of volume, e.g. /dev/hda1
options will be set to the mount by value of the volume.
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::getMountPoint const string &  device,
string &  mount
[virtual]
 

Get the mount point of a volume

Parameters:
device name of volume, e.g. /dev/hda1
mount will be set to the mount point of the volume (e.g. /home).
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

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

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.

int Storage::getVolume const string &  device,
storage::VolumeInfo info
[virtual]
 

Query a volume by device name found in system

Parameters:
device device name , e.g. /dev/hda1
info record that gets filled with data
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

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

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

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.

void Storage::handleEvmsCreateDevice const string &  disk,
const string &  dev,
bool  extended = false
[protected]
 

void Storage::handleEvmsRemoveDevice const Disk disk,
const string &  d,
bool  rename
[protected]
 

void Storage::handleLogFile const string &  name  ) 
 

bool Storage::haveEvms  )  [protected]
 

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

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

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

void Storage::infoPopupCb const string &  info  ) 
 

void Storage::initDefaultLogger  )  [static]
 

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

void Storage::initialize  )  [protected]
 

int Storage::initializeDisk const string &  disk,
bool  value
[virtual]
 

Do a what is needed for low level initialisation of a Disk. This function does nothing on normal disks but is needed e.g. on S390 DASD devices where it executes a dasdfmt. If should be considered as destroying all data on the disk.

Parameters:
disk device name of disk, e.g. /dev/hda
value toggle if disk should be initialized or not
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

bool storage::Storage::instsys  )  const [inline]
 

bool storage::Storage::isCacheChanges  )  const [inline, virtual]
 

Query the caching mode.

Implements storage::StorageInterface.

bool Storage::isDisk const string &  dev  ) 
 

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

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

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

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

unsigned long Storage::kbToCylinder const string &  disk,
unsigned long long  size
[virtual]
 

Compute number of disk cylinders needed for given space

Parameters:
disk device name of disk, e.g. /dev/hda
size number of kilobytes
Returns:
number of disk cylinders needed

Implements storage::StorageInterface.

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

void Storage::logCo Container c  ) 
 

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

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

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

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

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

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

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

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

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

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

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

ConstLvmLvIterator storage::Storage::lvmLvBegin bool(*)(const LvmLv &)  CheckLvmLv = NULL,
bool(*)(const LvmVg &)  CheckLvmVg = NULL
const [inline]
 

ConstLvmLvIterator storage::Storage::lvmLvBegin bool(*)(const LvmVg &)  CheckLvmVg  )  const [inline]
 

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

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

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

ConstLvmLvIterator storage::Storage::lvmLvEnd bool(*)(const LvmLv &)  CheckLvmLv = NULL,
bool(*)(const LvmVg &)  CheckLvmVg = NULL
const [inline]
 

ConstLvmLvIterator storage::Storage::lvmLvEnd bool(*)(const LvmVg &)  CheckLvmVg  )  const [inline]
 

ConstLvmLvPair storage::Storage::lvmLvPair bool(*)(const LvmLv &)  CheckLvmLv = NULL,
bool(*)(const LvmVg &)  CheckLvmVg = NULL
const [inline]
 

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

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

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

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

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

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

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

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

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

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

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

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

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

int Storage::modifyEvmsContainer const string &  old_name,
const string &  new_name,
unsigned long long  peSizeK,
bool  lvm1
[virtual]
 

Modify a EVMS container. This function can only be used between the creation of a EVMS container and the next call to commit(). Containers that are already written to disk cannot have these properties changed.

Parameters:
old_name name of container, must not contain blanks, colons and shell special characters (e.g. system)
new_name new name of container, same restrictions as for first parameter
peSizeK physical extent size in kilobytes
lvm1 flag if lvm1 compatible format should be used
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::modifyFileLoop const string &  device,
const string &  lname,
bool  reuseExisting,
unsigned long long  sizeK
[virtual]
 

Modify size and pathname of a file based loop device. This function can only be used between the creation of a devce and the next call to commit(). Containers that are already created cannot have these properties changed. The size has only a meaning if reuseExisting is true, otherwise it is ignored.

Parameters:
device device name of the loop device
lname name of file the loop device is based on
reuseExisting if true an already existing file will be reused. if false the file will be created new. if false the format flag for the device is set by default.
sizeK size of the created file, this parameter is ignored if reuseExisting is false
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

bool Storage::mountDevice const string &  device,
const string &  mp
[virtual]
 

Mount the given device and do what is necessary to access volume (e.g. do losetup if loop is set up) The function mounts at once, /etc/fstab is unaffected

Parameters:
device device name to mount
mp mount point to mount to
Returns:
bool if mount succeeded

Implements storage::StorageInterface.

int Storage::nextFreePartition const string &  disk,
storage::PartitionType  type,
unsigned &  nr,
string &  device
[virtual]
 

Determine the device name of the next created partition

Parameters:
disk device name of disk, e.g. /dev/hda
type type of partition to create, e.g. primary or extended
nr is set to the number of the next created partition
device is set to the device name of the next created partition
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

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

ConstPartIterator storage::Storage::partBegin bool(*)(const Partition &)  CheckPart = NULL,
bool(*)(const Disk &)  CheckDisk = NULL
const [inline]
 

ConstPartIterator storage::Storage::partBegin bool(*)(const Disk &)  CheckDisk  )  const [inline]
 

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

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

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

ConstPartIterator storage::Storage::partEnd bool(*)(const Partition &)  CheckPart = NULL,
bool(*)(const Disk &)  CheckDisk = NULL
const [inline]
 

ConstPartIterator storage::Storage::partEnd bool(*)(const Disk &)  CheckDisk  )  const [inline]
 

ConstPartPair storage::Storage::partPair bool(*)(const Partition &)  CheckPart = NULL,
bool(*)(const Disk &)  CheckCnt = NULL
const [inline]
 

ConstPartPair storage::Storage::partPair bool(*)(const Disk &)  CheckCnt  )  const [inline]
 

void storage::Storage::printInfo std::ostream &  str  )  [virtual]
 

Print detected entities on 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.

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

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

int Storage::removeBackupState const string &  name  )  [virtual]
 

Remove existing backup state

Parameters:
name name of backup to remove, empty string means to remove all existing backup states
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

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

bool Storage::removeDmMapsTo const string &  dev,
bool  also_evms = false
[virtual]
 

Remove all possibly existing dm maps to a given device

Parameters:
device device name for which dm maps should be removed
also_evms flag if maps used by evms entities should also be removed
Returns:
bool true if maps to remove existed

Implements storage::StorageInterface.

bool Storage::removeDmTable const string &  table  ) 
 

void Storage::removeDmTableTo const string &  device  ) 
 

void Storage::removeDmTableTo const Volume vol  ) 
 

int Storage::removeEvmsContainer const string &  name  )  [virtual]
 

Remove a EVMS container. If the container contains logical volumes, these are automatically also removed.

Parameters:
name name of container
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::removeEvmsVolume const string &  vg,
const string &  name
[virtual]
 

Remove a EVMS volume from a EVMS container

Parameters:
coname name of container
name name of volume
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::removeEvmsVolumeByDevice const string &  device  )  [virtual]
 

Remove a EVMS volume

Parameters:
device name of EVMS volume
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::removeFileLoop const string &  lname,
bool  removeFile
[virtual]
 

Remove a file based loop device from the system.

Parameters:
lname name of file the loop device is based on
removeFile if true the file is removed together with the based loop device. If false the file is not touched.
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::removeFstabOptions const string &  ,
const string &  options
[virtual]
 

Remove from the fstab options of a volume

Parameters:
device name of volume, e.g. /dev/hda1
options fstab options to remove from already existing options of the volume (e.g. noauto). Multiple options are separated by ",". It is possible to specify wildcards, so "uid=.*" matches every option starting with the string "uid=".
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::removeLvmLv const string &  vg,
const string &  name
[virtual]
 

Remove a LVM logical volume

Parameters:
vg name of volume group
name of logical volume
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::removeLvmLvByDevice const string &  device  )  [virtual]
 

Remove a LVM logical volume

Parameters:
device name of logical volume
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::removeLvmVg const string &  name  )  [virtual]
 

Remove a LVM volume group. If the volume group contains logical volumes, these are automatically also removed.

Parameters:
name name of volume group
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::removeMd const string &  name,
bool  destroySb = true
[virtual]
 

Remove a Software raid device.

Parameters:
name name of software raid device to remove (e.g. /dev/md0)
destroySb flag if the MD superblocks on the physcal devices should be destroyed after md device is deleted
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::removePartition const string &  partition  )  [virtual]
 

Remove a partition

Parameters:
partition name of partition, e.g. /dev/hda1
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

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

int Storage::removeVolume const string &  device  )  [virtual]
 

Removes a volume from the system. This function can be used for removing all types of volumes (partitions, LVM LVs, MD devices ...)

Parameters:
device name of volume, e.g. /dev/hda1
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

void Storage::rescanEverything  )  [virtual]
 

Rescan all disks. Alle currently detected objects are forgotten and a new scan for all type of objects (disks, LVM, EVMS, MD) is initiated. This function makes sense to be called after something outside of libstorage changed disk layout or created storage objects. Any changes already cached are lost.

Implements storage::StorageInterface.

int Storage::resizePartition const string &  device,
unsigned long  sizeCyl
[virtual]
 

Resize an existing disk partition. Units given in disk cylinders.

Parameters:
device device name of partition
sizeCyl new size of partition in disk cylinders
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::resizeVolume const string &  device,
unsigned long long  newSizeMb
[virtual]
 

Resizes a volume while keeping the data on the filesystem

Parameters:
device name of volume, e.g. /dev/hda1
newSizeMb new size desired volume in Megabyte
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::restoreBackupState const string &  name  )  [virtual]
 

Restore state to a previously created backup

Parameters:
name name of the backup to restore
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

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

void Storage::rootMounted  ) 
 

void storage::Storage::setCacheChanges bool  val = 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.

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 funtcion

Implements storage::StorageInterface.

static void storage::Storage::setCallbackInfoPopupYcp storage::CallbackInfoPopup  pfnc  )  [inline, static]
 

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

Sets the callback function called on progress bar events

Parameters:
pfnc pointer to funtcion

Implements storage::StorageInterface.

static void storage::Storage::setCallbackProgressBarYcp storage::CallbackProgressBar  pfnc  )  [inline, static]
 

void storage::Storage::setCallbackShowInstallInfo storage::CallbackShowInstallInfo  pfnc  )  [inline, virtual]
 

Sets the callback function called to display install info

Parameters:
pfnc pointer to funtcion

Implements storage::StorageInterface.

static void storage::Storage::setCallbackShowInstallInfoYcp storage::CallbackShowInstallInfo  pfnc  )  [inline, static]
 

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 funtcion

Implements storage::StorageInterface.

static void storage::Storage::setCallbackYesNoPopupYcp storage::CallbackYesNoPopup  pfnc  )  [inline, static]
 

int Storage::setCrypt const string &  device,
bool  val
[virtual]
 

Set encryption state of a volume

Parameters:
device name of volume, e.g. /dev/hda1
val flag if encryption should be activated
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::setCryptPassword const string &  device,
const string &  pwd
[virtual]
 

Set crypt password of a volume

Parameters:
device name of volume, e.g. /dev/hda1
pwd crypt password for this volume
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

void Storage::setDefaultMountBy MountByType  mby = MOUNTBY_DEVICE  )  [virtual]
 

Implements storage::StorageInterface.

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.

void Storage::setExtError const string &  txt  ) 
 

void Storage::setFreeInfo const string &  device,
unsigned long long  df_free,
unsigned long long  resize_free,
unsigned long long  used,
bool  win
[protected]
 

int Storage::setIgnoreFstab const string &  device,
bool  val
[virtual]
 

Set fstab handling state of a volume. This way one can make libstorage ignore fstab handling for a volume. Use this with care.

Parameters:
device name of volume, e.g. /dev/hda1
val flag if fstab should be ignored for this volume
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

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.

void Storage::setRootPrefix const string &  root  )  [virtual]
 

Set value for root prefix. This value is appended to all mount points of volumes, when changes are commited. Config files fstab, cryptotab, raidtab and mdadm.conf are also created relative to this prefix. This variable must be set before first call to commit.

Parameters:
root new value for root prefix

Implements storage::StorageInterface.

bool Storage::setUsedBy const string &  dev,
storage::UsedByType  typ,
const string &  name
 

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.

void Storage::showInfoCb const string &  info  ) 
 

int Storage::shrinkEvmsContainer const string &  name,
const deque< string > &  devs
[virtual]
 

Shrink a EVMS container

Parameters:
name name of container
devs list with physical devices to remove from that container
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::shrinkLvmVg const string &  name,
const deque< string > &  devs
[virtual]
 

Shrink a LVM volume group

Parameters:
name name of volume group
devs list with physical devices to remove from that volume group
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

int Storage::shrinkMd const string &  name,
const string &  dev
[virtual]
 

Remove a partition from a raid device. This can only be done before the raid is created on disk.

Parameters:
name name of software raid device (e.g. /dev/md0)
dev partition to remove from that raid
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

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

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

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

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

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

const string & Storage::tmpDir  )  const
 

bool Storage::umountDevice const string &  device  )  [virtual]
 

Umount the given device and do what is necessary to remove underlying volume (e.g. do losetup -d if loop is set up) The function umounts at once, /etc/fstab is unaffected

Parameters:
device device name to umount
Returns:
bool if umount succeeded

Implements storage::StorageInterface.

void Storage::updateDmEmptyPeMap  ) 
 

int Storage::updatePartitionArea const string &  device,
unsigned long  start,
unsigned long  size
[virtual]
 

Update area used by a new partition. Units given in disk cylinders. This function can only be used with a partition created but not yet committed.

Parameters:
device device name of partition, e.g. /dev/hda1
start cylinder number of partition start (cylinders are numbered starting with 0)
sizeCyl size of partition in disk cylinders
Returns:
zero if all is ok, a negative number to indicate an error

Implements storage::StorageInterface.

UsedByType Storage::usedBy const string &  dev  ) 
 

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

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

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

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

ConstVolIterator storage::Storage::volBegin bool(*)(const Volume &)  CheckVol = NULL,
bool(*)(const Container &)  CheckCnt = NULL
const [inline]
 

ConstVolIterator storage::Storage::volBegin bool(*)(const Container &)  CheckCnt  )  const [inline]
 

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

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

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

ConstVolIterator storage::Storage::volEnd bool(*)(const Volume &)  CheckVol = NULL,
bool(*)(const Container &)  CheckCnt = NULL
const [inline]
 

ConstVolIterator storage::Storage::volEnd bool(*)(const Container &)  CheckCnt  )  const [inline]
 

ConstVolPair storage::Storage::volPair bool(*)(const Volume &)  CheckVol = NULL,
bool(*)(const Container &)  CheckCnt = NULL
const [inline]
 

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

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

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

int Storage::waitForDevice const string &  device  )  const
 

int Storage::waitForDevice  )  const
 

bool Storage::yesnoPopupCb const string &  info  ) 
 


Friends And Related Function Documentation

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


Member Data Documentation

bool storage::Storage::autodetect [protected]
 

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

bool storage::Storage::cache [protected]
 

CCont storage::Storage::cont [protected]
 

MountByType storage::Storage::defaultMountBy [protected]
 

bool storage::Storage::detectMounted [protected]
 

string storage::Storage::extendedError [protected]
 

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

EtcFstab* storage::Storage::fstab [protected]
 

storage::CallbackInfoPopup storage::Storage::info_popup_cb [protected]
 

storage::CallbackInfoPopup Storage::info_popup_cb_ycp [static, protected]
 

bool storage::Storage::initialized [protected]
 

bool storage::Storage::inst_sys [protected]
 

storage::CallbackShowInstallInfo storage::Storage::install_info_cb [protected]
 

storage::CallbackShowInstallInfo Storage::install_info_cb_ycp [static, protected]
 

string storage::Storage::lastAction [protected]
 

string storage::Storage::logdir [protected]
 

unsigned storage::Storage::max_log_num [protected]
 

string Storage::proc_arch [static, protected]
 

storage::CallbackProgressBar storage::Storage::progress_bar_cb [protected]
 

storage::CallbackProgressBar Storage::progress_bar_cb_ycp [static, protected]
 

bool storage::Storage::readonly [protected]
 

bool storage::Storage::recursiveRemove [protected]
 

bool storage::Storage::root_mounted [protected]
 

string storage::Storage::rootprefix [protected]
 

Storage::SkipDeleted Storage::SkipDel [static]
 

string Storage::sysfs_dir = "/sys/block" [static, protected]
 

string storage::Storage::tempdir [protected]
 

string storage::Storage::testdir [protected]
 

bool storage::Storage::testmode [protected]
 

storage::CallbackYesNoPopup storage::Storage::yesno_popup_cb [protected]
 

storage::CallbackYesNoPopup Storage::yesno_popup_cb_ycp [static, protected]
 

bool storage::Storage::zeroNewPartitions [protected]
 


The documentation for this class was generated from the following files:
Generated on Thu Jul 6 00:40:25 2006 for yast2-storage by  doxygen 1.4.6