|
Public Types |
typedef DerefIterator< ConstContPIterator,
const Container > | ConstContIterator |
typedef IterPair< ConstContIterator > | ConstContPair |
typedef DerefIterator< ConstDiskPIterator,
const Disk > | ConstDiskIterator |
typedef IterPair< ConstDiskIterator > | ConstDiskPair |
typedef DerefIterator< ConstLvmVgPIterator,
const LvmVg > | ConstLvmVgIterator |
typedef IterPair< ConstLvmVgIterator > | ConstLvmVgPair |
typedef DerefIterator< ConstEvmsCoPIterator,
const EvmsCo > | ConstEvmsCoIterator |
typedef IterPair< ConstEvmsCoIterator > | ConstEvmsCoPair |
typedef DerefIterator< ConstVolPIterator,
const Volume > | ConstVolIterator |
typedef IterPair< ConstVolIterator > | ConstVolPair |
typedef DerefIterator< ConstPartPIterator,
const Partition > | ConstPartIterator |
typedef IterPair< ConstPartIterator > | ConstPartPair |
typedef DerefIterator< ConstLvmLvPIterator,
const LvmLv > | ConstLvmLvIterator |
typedef IterPair< ConstLvmLvIterator > | ConstLvmLvPair |
typedef DerefIterator< ConstEvmsPIterator,
const Evms > | ConstEvmsIterator |
typedef IterPair< ConstEvmsIterator > | ConstEvmsPair |
typedef DerefIterator< ConstMdPIterator,
const Md > | ConstMdIterator |
typedef IterPair< ConstMdIterator > | ConstMdPair |
typedef DerefIterator< ConstLoopPIterator,
const Loop > | ConstLoopIterator |
typedef IterPair< ConstLoopIterator > | ConstLoopPair |
typedef DerefIterator< ConstDmPIterator,
const Dm > | ConstDmIterator |
typedef IterPair< ConstDmIterator > | ConstDmPair |
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 |
EtcFstab * | getFstab () |
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 Volume * | getVolume (const string &dev) |
unsigned long long | deviceSize (const string &dev) |
string | deviceByNumber (const string &majmin) |
void | rootMounted () |
bool | isRootMounted () const |
string | findNormalDevice (const string &device) |
bool | findVolume (const string &device, Volume const *&vol) |
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 Container > | CheckFncCont |
typedef CheckerIterator< CheckFncCont,
ConstContainerPI< CheckFncCont
>::type, CCIter, Container > | ConstContPIterator |
typedef CheckerIterator< CheckFncCont,
ContainerPI< CheckFncCont
>::type, CIter, Container > | ContPIterator |
typedef DerefIterator< ContPIterator,
Container > | ContIterator |
typedef IterPair< ContIterator > | CPair |
typedef CastCheckIterator<
CCIter, storage::DISK, const
Disk * > | ContainerCDiskIter |
typedef CastCheckIterator<
CIter, storage::DISK, Disk * > | ContainerDiskIter |
typedef CheckFnc< const Disk > | CheckFncDisk |
typedef CheckerIterator< CheckFncDisk,
ConstDiskPI< CheckFncDisk
>::type, ContainerCDiskIter,
Disk > | ConstDiskPIterator |
typedef CheckerIterator< CheckFncDisk,
DiskPI< CheckFncDisk >::type,
ContainerDiskIter, Disk > | DiskPIterator |
typedef DerefIterator< DiskPIterator,
Disk > | DiskIterator |
typedef IterPair< DiskIterator > | DiskPair |
typedef CastCheckIterator<
CCIter, storage::LVM, const
LvmVg * > | ContainerCLvmVgIter |
typedef CastCheckIterator<
CIter, storage::LVM, LvmVg * > | ContainerLvmVgIter |
typedef CheckFnc< const LvmVg > | CheckFncLvmVg |
typedef CheckerIterator< CheckFncLvmVg,
ConstLvmVgPI< CheckFncLvmVg
>::type, ContainerCLvmVgIter,
LvmVg > | ConstLvmVgPIterator |
typedef CheckerIterator< CheckFncLvmVg,
LvmVgPI< CheckFncLvmVg
>::type, ContainerLvmVgIter,
LvmVg > | LvmVgPIterator |
typedef DerefIterator< LvmVgPIterator,
LvmVg > | LvmVgIterator |
typedef IterPair< LvmVgIterator > | LvmVgPair |
typedef CastCheckIterator<
CCIter, storage::EVMS, const
EvmsCo * > | ContainerCEvmsIter |
typedef CastCheckIterator<
CIter, storage::EVMS, EvmsCo * > | ContainerEvmsIter |
typedef CheckFnc< const EvmsCo > | CheckFncEvmsCo |
typedef CheckerIterator< CheckFncEvmsCo,
ConstEvmsCoPI< CheckFncEvmsCo
>::type, ContainerCEvmsIter,
EvmsCo > | ConstEvmsCoPIterator |
typedef CheckerIterator< CheckFncEvmsCo,
EvmsCoPI< CheckFncEvmsCo
>::type, ContainerEvmsIter,
EvmsCo > | EvmsCoPIterator |
typedef DerefIterator< EvmsCoPIterator,
EvmsCo > | EvmsCoIterator |
typedef IterPair< EvmsCoIterator > | EvmsCoPair |
typedef ListListIterator<
Container::ConstPlainIterator,
ConstContIterator > | ConstVolInter |
typedef CheckFnc< const Volume > | CheckFncVol |
typedef CheckerIterator< CheckFncVol,
ConstVolumePI< CheckFncVol
>::type, ConstVolInter, Volume > | ConstVolPIterator |
typedef ListListIterator<
Container::PlainIterator,
ContIterator > | VolPart |
typedef CheckerIterator< CheckFncVol,
VolumeI< CheckFncVol >::type,
VolPart, Volume > | VolPIterator |
typedef DerefIterator< VolPIterator,
Volume > | VolIterator |
typedef IterPair< VolIterator > | VPair |
typedef ListListIterator<
Container::ConstPlainIterator,
ConstDiskIterator > | ConstPartInter |
typedef CastIterator< ConstPartInter,
Partition * > | ConstPartInter2 |
typedef CheckFnc< const Partition > | CheckFncPartition |
typedef CheckerIterator< CheckFncPartition,
ConstPartitionPI< CheckFncPartition
>::type, ConstPartInter2,
Partition > | ConstPartPIterator |
typedef ListListIterator<
Container::ConstPlainIterator,
ConstLvmVgIterator > | ConstLvmLvInter |
typedef CastIterator< ConstLvmLvInter,
LvmLv * > | ConstLvmLvInter2 |
typedef CheckFnc< const LvmLv > | CheckFncLvmLv |
typedef CheckerIterator< CheckFncLvmLv,
ConstLvmLvPI< CheckFncLvmLv
>::type, ConstLvmLvInter2,
LvmLv > | ConstLvmLvPIterator |
typedef ListListIterator<
Container::ConstPlainIterator,
ConstEvmsCoIterator > | ConstEvmsInter |
typedef CastIterator< ConstEvmsInter,
Evms * > | ConstEvmsInter2 |
typedef CheckFnc< const Evms > | CheckFncEvms |
typedef CheckerIterator< CheckFncEvms,
ConstEvmsPI< CheckFncEvms
>::type, ConstEvmsInter2,
Evms > | ConstEvmsPIterator |
typedef CastIterator< ConstVolInter,
Md * > | ConstMdInter |
typedef CheckFnc< const Md > | CheckFncMd |
typedef CheckerIterator< CheckFncMd,
ConstMdPI< CheckFncMd
>::type, ConstMdInter, Md > | ConstMdPIterator |
typedef CastIterator< ConstVolInter,
Loop * > | ConstLoopInter |
typedef CheckFnc< const Loop > | CheckFncLoop |
typedef CheckerIterator< CheckFncLoop,
ConstLoopPI< CheckFncLoop
>::type, ConstLoopInter, Loop > | ConstLoopPIterator |
typedef CastIterator< ConstVolInter,
Dm * > | ConstDmInter |
typedef CheckFnc< const Dm > | CheckFncDm |
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 |
EtcFstab * | fstab |
storage::CallbackProgressBar | progress_bar_cb |
storage::CallbackShowInstallInfo | install_info_cb |
storage::CallbackInfoPopup | info_popup_cb |
storage::CallbackYesNoPopup | yesno_popup_cb |
unsigned | max_log_num |
string | lastAction |
string | extendedError |
std::map< string, CCont > | backups |
std::map< string, FreeInfo > | freeInfo |
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 |