|
yast2-storage
|
Classes | |
| struct | StatVfs |
| class | UdevMap |
| class | StopWatch |
| struct | Text |
| class | ArchInfo |
| class | AsciiFile |
| class | SysconfigFile |
| class | InstallInfFile |
| class | Blkid |
| class | Btrfs |
| class | BtrfsCo |
| class | Container |
| class | Dasd |
| struct | EnumInfo< Dasd::DasdFormat > |
| class | Dasdview |
| class | Fdasd |
| class | DerefIterator |
| class | Device |
| class | Disk |
| class | Dm |
| class | CmdDmsetup |
| class | DmCo |
| class | Dmmultipath |
| class | CmdMultipath |
| class | DmmultipathCo |
| class | DmPart |
| class | DmPartCo |
| class | Dmraid |
| class | CmdDmraid |
| class | DmraidCo |
| struct | EnumInfo |
| struct | EnumInfo< FsType > |
| struct | EnumInfo< PartitionType > |
| struct | EnumInfo< MountByType > |
| struct | EnumInfo< EncryptType > |
| struct | EnumInfo< MdType > |
| struct | EnumInfo< MdParity > |
| struct | EnumInfo< MdArrayState > |
| struct | EnumInfo< UsedByType > |
| struct | EnumInfo< CType > |
| struct | EnumInfo< Transport > |
| struct | EnumInfo< ImsmDriver > |
| struct | EnumInfo< MultipathAutostart > |
| struct | EnumInfo< PartAlign > |
| struct | FstabEntry |
| struct | FstabChange |
| class | EtcFstab |
| class | EtcMdadm |
| class | FilterIterator |
| class | FreeInfo |
| struct | Geometry |
| class | Graph |
| class | DeviceGraph |
| class | MountGraph |
| class | IterPair |
| class | MakeCondIterPair |
| class | ListListIterator |
| class | LockException |
| class | Lock |
| class | Loop |
| class | LoopCo |
| class | Lsscsi |
| class | LvmLv |
| class | LvmVg |
| class | Md |
| class | MdCo |
| class | MdPart |
| class | MdPartCo |
| class | Nfs |
| class | NfsCo |
| class | OutputProcessor |
| class | ProgressBar |
| class | Mke2fsProgressBar |
| class | ReiserProgressBar |
| class | DasdfmtProgressBar |
| class | Parted |
| class | Partition |
| class | PeContainer |
| class | ProcMdstat |
| struct | MdadmDetails |
| class | ProcMounts |
| class | ProcParts |
| class | regex_error |
| class | Regex |
| class | Region |
| struct | DiskData |
| class | CheckType |
| class | CastCheckIterator |
| class | CheckByFnc |
| class | CastCheckFncIterator |
| class | Storage |
| Main class to access libstorage functionality. More... | |
| struct | FsCapabilities |
| struct | DlabelCapabilities |
| struct | UsedByInfo |
| struct | SubvolInfo |
| struct | ResizeInfo |
| struct | ContentInfo |
| struct | ContainerInfo |
| struct | DiskInfo |
| struct | LvmVgInfo |
| struct | DmPartCoInfo |
| struct | DmraidCoInfo |
| struct | DmmultipathCoInfo |
| struct | VolumeInfo |
| struct | PartitionAddInfo |
| struct | PartitionInfo |
| struct | LvmLvInfo |
| struct | LvmLvSnapshotStateInfo |
| struct | MdInfo |
| struct | MdStateInfo |
| struct | MdPartCoInfo |
| struct | MdPartCoStateInfo |
| struct | MdPartInfo |
| struct | NfsInfo |
| struct | LoopInfo |
| struct | BtrfsInfo |
| struct | TmpfsInfo |
| struct | DmInfo |
| struct | DmPartInfo |
| struct | DmraidInfo |
| struct | DmmultipathInfo |
| struct | ContVolInfo |
| struct | PartitionSlotInfo |
| struct | CommitInfo |
| class | StorageInterface |
| Abstract class defining the interface for libstorage. More... | |
| struct | Environment |
| class | CheckFnc |
| class | ContainerIter |
| class | ContainerDerIter |
| class | CastIterator |
| class | CheckerIterator |
| struct | deref_less |
| struct | deref_equal_to |
| struct | contOrder |
| struct | commitAction |
| struct | stage_is |
| class | UsedBy |
| class | Subvolume |
| struct | regex_matches |
| struct | string_starts_with |
| struct | string_contains |
| class | SystemCmd |
| class | CmdBtrfsShow |
| class | SystemInfo |
| class | Tmpfs |
| class | TmpfsCo |
| class | Volume |
| class | XmlFile |
Typedefs | |
| typedef void(* | CallbackProgressBar )(const string &id, unsigned cur, unsigned max) |
| typedef void(* | CallbackShowInstallInfo )(const string &id) |
| typedef void(* | CallbackInfoPopup )(const string &text) |
| typedef bool(* | CallbackYesNoPopup )(const string &text) |
| typedef bool(* | CallbackCommitErrorPopup )(int error, const string &last_action, const string &extended_message) |
| typedef bool(* | CallbackPasswordPopup )(const string &device, int attempts, string &password) |
Enumerations | |
| enum | LogLevel { DEBUG, MILESTONE, WARNING, ERROR } |
| enum | FsType { FSUNKNOWN, REISERFS, EXT2, EXT3, EXT4, BTRFS, VFAT, XFS, JFS, HFS, NTFS, SWAP, HFSPLUS, NFS, NFS4, TMPFS, FSNONE } |
| enum | PartitionType { PRIMARY, EXTENDED, LOGICAL, PTYPE_ANY } |
| enum | MountByType { MOUNTBY_DEVICE, MOUNTBY_UUID, MOUNTBY_LABEL, MOUNTBY_ID, MOUNTBY_PATH } |
| enum | EncryptType { ENC_NONE, ENC_TWOFISH, ENC_TWOFISH_OLD, ENC_TWOFISH256_OLD, ENC_LUKS, ENC_UNKNOWN } |
| enum | MdType { RAID_UNK, RAID0, RAID1, RAID5, RAID6, RAID10, MULTIPATH } |
| enum | MdParity { PAR_DEFAULT, LEFT_ASYMMETRIC, LEFT_SYMMETRIC, RIGHT_ASYMMETRIC, RIGHT_SYMMETRIC, PAR_FIRST, PAR_LAST, LEFT_ASYMMETRIC_6, LEFT_SYMMETRIC_6, RIGHT_ASYMMETRIC_6, RIGHT_SYMMETRIC_6, PAR_FIRST_6, PAR_NEAR_2, PAR_OFFSET_2, PAR_FAR_2, PAR_NEAR_3, PAR_OFFSET_3, PAR_FAR_3 } |
| enum | MdArrayState { UNKNOWN, CLEAR, INACTIVE, SUSPENDED, READONLY, READ_AUTO, CLEAN, ACTIVE, WRITE_PENDING, ACTIVE_IDLE } |
| enum | UsedByType { UB_NONE, UB_LVM, UB_MD, UB_MDPART, UB_DM, UB_DMRAID, UB_DMMULTIPATH, UB_BTRFS } |
| enum | CType { CUNKNOWN, DISK, MD, LOOP, LVM, DM, DMRAID, NFSC, DMMULTIPATH, MDPART, BTRFSC, TMPFSC } |
| enum | Transport { TUNKNOWN, SBP, ATA, FC, ISCSI, SAS, SATA, SPI, USB, FCOE } |
| enum | ImsmDriver { IMSM_UNDECIDED, IMSM_DMRAID, IMSM_MDADM } |
| enum | MultipathAutostart { MPAS_UNDECIDED, MPAS_ON, MPAS_OFF } |
| enum | PartAlign { ALIGN_OPTIMAL, ALIGN_CYLINDER } |
| enum | ErrorCodes { STORAGE_NO_ERROR = 0, DISK_PARTITION_OVERLAPS_EXISTING = -1000, DISK_PARTITION_EXCEEDS_DISK = -1001, DISK_CREATE_PARTITION_EXT_ONLY_ONCE = -1002, DISK_CREATE_PARTITION_EXT_IMPOSSIBLE = -1003, DISK_PARTITION_NO_FREE_NUMBER = -1004, DISK_CREATE_PARTITION_INVALID_VOLUME = -1005, DISK_CREATE_PARTITION_INVALID_TYPE = -1006, DISK_CREATE_PARTITION_PARTED_FAILED = -1007, DISK_PARTITION_NOT_FOUND = -1008, DISK_CREATE_PARTITION_LOGICAL_NO_EXT = -1009, DISK_PARTITION_LOGICAL_OUTSIDE_EXT = -1010, DISK_SET_TYPE_INVALID_VOLUME = -1011, DISK_SET_TYPE_PARTED_FAILED = -1012, DISK_SET_LABEL_PARTED_FAILED = -1013, DISK_REMOVE_PARTITION_PARTED_FAILED = -1014, DISK_REMOVE_PARTITION_INVALID_VOLUME = -1015, DISK_REMOVE_PARTITION_LIST_ERASE = -1016, DISK_DESTROY_TABLE_INVALID_LABEL = -1017, DISK_PARTITION_ZERO_SIZE = -1018, DISK_CHANGE_READONLY = -1019, DISK_RESIZE_PARTITION_INVALID_VOLUME = -1020, DISK_RESIZE_PARTITION_PARTED_FAILED = -1021, DISK_RESIZE_NO_SPACE = -1022, DISK_CHECK_RESIZE_INVALID_VOLUME = -1023, DISK_REMOVE_PARTITION_CREATE_NOT_FOUND = -1024, DISK_COMMIT_NOTHING_TODO = -1025, DISK_CREATE_PARTITION_NO_SPACE = -1026, DISK_REMOVE_USED_BY = -1027, DISK_INIT_NOT_POSSIBLE = -1028, DISK_INVALID_PARTITION_ID = -1029, STORAGE_DISK_NOT_FOUND = -2000, STORAGE_VOLUME_NOT_FOUND = -2001, STORAGE_REMOVE_PARTITION_INVALID_CONTAINER = -2002, STORAGE_CHANGE_PARTITION_ID_INVALID_CONTAINER = -2003, STORAGE_CHANGE_READONLY = -2004, STORAGE_DISK_USED_BY = -2005, STORAGE_LVM_VG_EXISTS = -2006, STORAGE_LVM_VG_NOT_FOUND = -2007, STORAGE_LVM_INVALID_DEVICE = -2008, STORAGE_CONTAINER_NOT_FOUND = -2009, STORAGE_VG_INVALID_NAME = -2010, STORAGE_REMOVE_USED_VOLUME = -2011, STORAGE_REMOVE_USING_UNKNOWN_TYPE = -2012, STORAGE_NOT_YET_IMPLEMENTED = -2013, STORAGE_MD_INVALID_NAME = -2014, STORAGE_MD_NOT_FOUND = -2015, STORAGE_MEMORY_EXHAUSTED = -2016, STORAGE_LOOP_NOT_FOUND = -2017, STORAGE_CREATED_LOOP_NOT_FOUND = -2018, STORAGE_CHANGE_AREA_INVALID_CONTAINER = -2023, STORAGE_BACKUP_STATE_NOT_FOUND = -2024, STORAGE_INVALID_FSTAB_VALUE = -2025, STORAGE_NO_FSTAB_PTR = -2026, STORAGE_DEVICE_NODE_NOT_FOUND = -2027, STORAGE_DMRAID_CO_NOT_FOUND = -2028, STORAGE_RESIZE_INVALID_CONTAINER = -2029, STORAGE_DMMULTIPATH_CO_NOT_FOUND = -2030, STORAGE_ZERO_DEVICE_FAILED = -2031, STORAGE_INVALID_BACKUP_STATE_NAME = -2032, STORAGE_MDPART_CO_NOT_FOUND = -2033, STORAGE_DEVICE_NOT_FOUND = -2034, STORAGE_BTRFS_CO_NOT_FOUND = -2035, STORAGE_TMPFS_CO_NOT_FOUND = -2036, VOLUME_COMMIT_UNKNOWN_STAGE = -3000, VOLUME_FSTAB_EMPTY_MOUNT = -3001, VOLUME_UMOUNT_FAILED = -3002, VOLUME_MOUNT_FAILED = -3003, VOLUME_FORMAT_UNKNOWN_FS = -3005, VOLUME_FORMAT_FS_UNDETECTED = -3006, VOLUME_FORMAT_FS_TOO_SMALL = -3007, VOLUME_FORMAT_FAILED = -3008, VOLUME_TUNE2FS_FAILED = -3009, VOLUME_MKLABEL_FS_UNABLE = -3010, VOLUME_MKLABEL_FAILED = -3011, VOLUME_LOSETUP_NO_LOOP = -3012, VOLUME_LOSETUP_FAILED = -3013, VOLUME_CRYPT_NO_PWD = -3014, VOLUME_CRYPT_PWD_TOO_SHORT = -3015, VOLUME_CRYPT_NOT_DETECTED = -3016, VOLUME_FORMAT_EXTENDED_UNSUPPORTED = -3017, VOLUME_MOUNT_EXTENDED_UNSUPPORTED = -3018, VOLUME_MOUNT_POINT_INVALID = -3019, VOLUME_MOUNTBY_NOT_ENCRYPTED = -3020, VOLUME_MOUNTBY_UNSUPPORTED_BY_FS = -3021, VOLUME_LABEL_NOT_SUPPORTED = -3022, VOLUME_LABEL_TOO_LONG = -3023, VOLUME_LABEL_WHILE_MOUNTED = -3024, VOLUME_RESIZE_UNSUPPORTED_BY_FS = -3025, VOLUME_RESIZE_UNSUPPORTED_BY_CONTAINER = -3026, VOLUME_RESIZE_FAILED = -3027, VOLUME_ALREADY_IN_USE = -3028, VOLUME_LOUNSETUP_FAILED = -3029, VOLUME_DEVICE_NOT_PRESENT = -3030, VOLUME_DEVICE_NOT_BLOCK = -3031, VOLUME_MOUNTBY_UNSUPPORTED_BY_VOLUME = -3032, VOLUME_CRYPTFORMAT_FAILED = -3033, VOLUME_CRYPTSETUP_FAILED = -3034, VOLUME_CRYPTUNSETUP_FAILED = -3035, VOLUME_FORMAT_NOT_IMPLEMENTED = -3036, VOLUME_FORMAT_IMPOSSIBLE = -3037, VOLUME_CRYPT_NFS_IMPOSSIBLE = -3038, VOLUME_REMOUNT_FAILED = -3039, VOLUME_TUNEREISERFS_FAILED = -3040, VOLUME_UMOUNT_NOT_MOUNTED = -3041, VOLUME_BTRFS_ADD_FAILED = -3042, VOLUME_CANNOT_TMP_MOUNT = -3043, VOLUME_CANNOT_TMP_UMOUNT = -3044, VOLUME_BTRFS_SUBVOL_INIT_FAILED = -3045, VOLUME_BTRFS_SUBVOL_DETDEFAULT = -3046, LVM_CREATE_PV_FAILED = -4000, LVM_PV_ALREADY_CONTAINED = -4001, LVM_PV_DEVICE_UNKNOWN = -4002, LVM_PV_DEVICE_USED = -4003, LVM_VG_HAS_NONE_PV = -4004, LVM_LV_INVALID_NAME = -4005, LVM_LV_DUPLICATE_NAME = -4006, LVM_LV_NO_SPACE = -4007, LVM_LV_UNKNOWN_NAME = -4008, LVM_LV_NOT_IN_LIST = -4009, LVM_VG_CREATE_FAILED = -4010, LVM_VG_EXTEND_FAILED = -4011, LVM_VG_REDUCE_FAILED = -4012, LVM_VG_REMOVE_FAILED = -4013, LVM_LV_CREATE_FAILED = -4014, LVM_LV_REMOVE_FAILED = -4015, LVM_LV_RESIZE_FAILED = -4016, LVM_PV_STILL_ADDED = -4017, LVM_PV_REMOVE_NOT_FOUND = -4018, LVM_CREATE_LV_INVALID_VOLUME = -4019, LVM_REMOVE_LV_INVALID_VOLUME = -4020, LVM_RESIZE_LV_INVALID_VOLUME = -4021, LVM_CHANGE_READONLY = -4022, LVM_CHECK_RESIZE_INVALID_VOLUME = -4023, LVM_COMMIT_NOTHING_TODO = -4024, LVM_LV_REMOVE_USED_BY = -4025, LVM_LV_ALREADY_ON_DISK = -4026, LVM_LV_NO_STRIPE_SIZE = -4027, LVM_LV_UNKNOWN_ORIGIN = -4028, LVM_LV_NOT_ON_DISK = -4029, LVM_LV_NOT_SNAPSHOT = -4030, LVM_LV_HAS_SNAPSHOTS = -4031, LVM_LV_IS_SNAPSHOT = -4032, LVM_LIST_EMPTY = -4033, LVM_LV_NO_POOL_OR_SNAP = -4034, LVM_LV_NO_POOL = -4035, LVM_LV_UNKNOWN_POOL = -4036, LVM_LV_INVALID_CHUNK_SIZE = -4037, LVM_LV_POOL_NO_FORMAT = -4038, LVM_LV_POOL_NO_MOUNT = -4039, FSTAB_ENTRY_NOT_FOUND = -5000, FSTAB_CHANGE_PREFIX_IMPOSSIBLE = -5001, FSTAB_REMOVE_ENTRY_NOT_FOUND = -5002, FSTAB_UPDATE_ENTRY_NOT_FOUND = -5003, FSTAB_ADD_ENTRY_FOUND = -5004, MD_CHANGE_READONLY = -6000, MD_DUPLICATE_NUMBER = -6001, MD_TOO_FEW_DEVICES = -6002, MD_DEVICE_UNKNOWN = -6003, MD_DEVICE_USED = -6004, MD_CREATE_INVALID_VOLUME = -6005, MD_REMOVE_FAILED = -6006, MD_NOT_IN_LIST = -6007, MD_CREATE_FAILED = -6008, MD_UNKNOWN_NUMBER = -6009, MD_REMOVE_USED_BY = -6010, MD_NUMBER_TOO_LARGE = -6011, MD_REMOVE_INVALID_VOLUME = -6012, MD_REMOVE_CREATE_NOT_FOUND = -6013, MD_NO_RESIZE_ON_DISK = -6014, MD_ADD_DUPLICATE = -6015, MD_REMOVE_NONEXISTENT = -6016, MD_NO_CHANGE_ON_DISK = -6017, MD_NO_CREATE_UNKNOWN = -6018, MD_STATE_NOT_ON_DISK = -6019, MD_PARTITION_NOT_FOUND = -6020, MD_INVALID_PARITY = -6021, MD_TOO_MANY_SPARES = -6022, MD_GET_STATE_FAILED = -6023, MDPART_CHANGE_READONLY = -6100, MDPART_INTERNAL_ERR = -6101, MDPART_INVALID_VOLUME = -6012, MDPART_PARTITION_NOT_FOUND = -6103, MDPART_REMOVE_PARTITION_LIST_ERASE = -6104, MDPART_COMMIT_NOTHING_TODO = -6105, MDPART_NO_REMOVE = -6106, MDPART_DEVICE_NOT_FOUND = -6107, LOOP_CHANGE_READONLY = -7000, LOOP_DUPLICATE_FILE = -7001, LOOP_UNKNOWN_FILE = -7002, LOOP_REMOVE_USED_BY = -7003, LOOP_FILE_CREATE_FAILED = -7004, LOOP_CREATE_INVALID_VOLUME = -7005, LOOP_REMOVE_FILE_FAILED = -7006, LOOP_REMOVE_INVALID_VOLUME = -7007, LOOP_NOT_IN_LIST = -7008, LOOP_REMOVE_CREATE_NOT_FOUND = -7009, LOOP_MODIFY_EXISTING = -7010, PEC_PE_SIZE_INVALID = -9000, PEC_PV_NOT_FOUND = -9001, PEC_REMOVE_PV_IN_USE = -9002, PEC_REMOVE_PV_SIZE_NEEDED = -9003, PEC_LV_NO_SPACE_STRIPED = -9004, PEC_LV_NO_SPACE_SINGLE = -9005, PEC_LV_PE_DEV_NOT_FOUND = -9006, DM_CHANGE_READONLY = -10000, DM_UNKNOWN_TABLE = -10001, DM_REMOVE_USED_BY = -10002, DM_REMOVE_CREATE_NOT_FOUND = -10003, DM_REMOVE_INVALID_VOLUME = -10004, DM_REMOVE_FAILED = -10005, DM_NOT_IN_LIST = -10006, DASD_NOT_POSSIBLE = -11000, DASD_FDASD_FAILED = -11001, DASD_DASDFMT_FAILED = -11002, DMPART_CHANGE_READONLY = -12001, DMPART_INTERNAL_ERR = -12002, DMPART_INVALID_VOLUME = -12003, DMPART_PARTITION_NOT_FOUND = -12004, DMPART_REMOVE_PARTITION_LIST_ERASE = -12005, DMPART_COMMIT_NOTHING_TODO = -12006, DMPART_NO_REMOVE = -12007, DMRAID_REMOVE_FAILED = -13001, NFS_VOLUME_NOT_FOUND = -14001, NFS_CHANGE_READONLY = -14002, NFS_REMOVE_VOLUME_CREATE_NOT_FOUND = -14003, NFS_REMOVE_VOLUME_LIST_ERASE = -14004, NFS_REMOVE_INVALID_VOLUME = -14005, BTRFS_COMMIT_INVALID_VOLUME = -15001, BTRFS_CANNOT_TMP_MOUNT = -15002, BTRFS_CANNOT_TMP_UMOUNT = -15003, BTRFS_DELETE_SUBVOL_FAIL = -15004, BTRFS_CREATE_SUBVOL_FAIL = -15005, BTRFS_VOLUME_NOT_FOUND = -15006, BTRFS_SUBVOL_EXISTS = -15007, BTRFS_SUBVOL_NON_EXISTS = -15008, BTRFS_REMOVE_NOT_FOUND = -15009, BTRFS_REMOVE_NO_BTRFS = -15010, BTRFS_REMOVE_INVALID_VOLUME = -15011, BTRFS_CHANGE_READONLY = -15012, BTRFS_DEV_ALREADY_CONTAINED = -15013, BTRFS_DEVICE_UNKNOWN = -15014, BTRFS_DEVICE_USED = -15015, BTRFS_HAS_NONE_DEV = -15016, BTRFS_DEV_NOT_FOUND = -15017, BTRFS_EXTEND_FAIL = -15018, BTRFS_REDUCE_FAIL = -15019, BTRFS_LIST_EMPTY = -15020, BTRFS_RESIZE_INVALID_VOLUME = -15021, BTRFS_MULTIDEV_SHRINK_UNSUPPORTED = -15022, TMPFS_REMOVE_INVALID_VOLUME = -16001, TMPFS_REMOVE_NO_TMPFS = -16002, TMPFS_REMOVE_NOT_FOUND = -16003, CONTAINER_INTERNAL_ERROR = -99000, CONTAINER_INVALID_VIRTUAL_CALL = -99001 } |
| enum | CommitStage { DECREASE, INCREASE, FORMAT, SUBVOL, MOUNT } |
Functions | |
| void | createPath (const string &Path_Cv) |
| bool | checkDir (const string &Path_Cv) |
| bool | getStatMode (const string &Path_Cv, mode_t &val) |
| bool | setStatMode (const string &Path_Cv, mode_t val) |
| bool | checkNormalFile (const string &Path_Cv) |
| list< string > | glob (const string &path, int flags) |
| bool | getStatVfs (const string &path, StatVfs &buf) |
| bool | getMajorMinor (const string &device, unsigned long &major, unsigned long &minor, bool may_fail) |
| string | extractNthWord (int Num_iv, const string &Line_Cv, bool GetRest_bi) |
| list< string > | splitString (const string &s, const string &delChars, bool multipleDelim, bool skipEmpty, const string "es) |
| map< string, string > | makeMap (const list< string > &l, const string &delim, const string &removeSur) |
| string | normalizeDevice (const string &dev) |
| list< string > | normalizeDevices (const list< string > &devs) |
| bool | isNfsDev (const string &dev) |
| string | undevDevice (const string &dev) |
| void | createLogger (const string &name, const string &logpath, const string &logfile) |
| bool | testLogLevel (LogLevel level) |
| void | prepareLogStream (ostringstream &stream) |
| ostringstream * | logStreamOpen () |
| void | logStreamClose (LogLevel level, const char *file, unsigned line, const char *func, ostringstream *stream) |
| string | udevAppendPart (const string &s, unsigned num) |
| string | afterLast (const string &s, const string &pat) |
| string | udevEncode (const string &s) |
| string | udevDecode (const string &s) |
| bool | mkdtemp (string &path) |
| bool | readlink (const string &path, string &buf) |
| bool | readlinkat (int fd, const string &path, string &buf) |
| map< string, string > | getUdevLinks (const char *path) |
| map< string, string > | getDirLinks (const string &dir) |
| unsigned | getMajorDevices (const char *driver) |
| string | sformat (const string &format, va_list ap) |
| Text | sformat (const Text &format,...) |
| Text | _ (const char *msgid) |
| Text | _ (const char *msgid, const char *msgid_plural, unsigned long int n) |
| string | hostname () |
| string | datetime () |
| std::ostream & | operator<< (std::ostream &s, const StopWatch &sw) |
| template<class StreamType > | |
| void | classic (StreamType &stream) |
| std::ostream & | operator<< (std::ostream &s, const ArchInfo &archinfo) |
| std::ostream & | operator<< (std::ostream &s, const Blkid::Entry &entry) |
| std::ostream & | operator<< (std::ostream &s, const Btrfs &v) |
| std::ostream & | operator<< (std::ostream &s, const BtrfsCo &d) |
| std::ostream & | operator<< (std::ostream &s, const Container &c) |
| static bool | needDasdfmt (const Disk &d) |
| std::ostream & | operator<< (std::ostream &s, const Dasd &d) |
| std::ostream & | operator<< (std::ostream &s, const Fdasd::Entry &e) |
| std::ostream & | operator<< (std::ostream &s, const Device &d) |
| static bool | notDeletedPri (const Partition &p) |
| static bool | notDeletedExt (const Partition &p) |
| static bool | notDeletedLog (const Partition &p) |
| static bool | notDeletedNotLog (const Partition &p) |
| static bool | existingNotLog (const Partition &p) |
| static bool | existingLog (const Partition &p) |
| static bool | notCreatedPrimary (const Partition &p) |
| static bool | regions_sort_size (const Region &rhs, const Region &lhs) |
| static bool | volume_ptr_sort_nr (Partition *&rhs, Partition *&lhs) |
| static bool | logicalCreated (const Partition &p) |
| unsigned long | sub_sat (unsigned long a, unsigned long b) |
| std::ostream & | operator<< (std::ostream &s, const Disk &d) |
| std::ostream & | operator<< (std::ostream &s, const Dm &p) |
| std::ostream & | operator<< (std::ostream &s, const DmCo &d) |
| std::ostream & | operator<< (std::ostream &s, const Dmmultipath &p) |
| std::ostream & | operator<< (std::ostream &s, const DmmultipathCo &d) |
| std::ostream & | operator<< (std::ostream &s, const DmPart &p) |
| static bool | toChangeId (const DmPart &d) |
| std::ostream & | operator<< (std::ostream &s, const DmPartCo &d) |
| std::ostream & | operator<< (std::ostream &s, const Dmraid &p) |
| std::ostream & | operator<< (std::ostream &s, const DmraidCo &d) |
| template<typename EnumType > | |
| const string & | toString (EnumType value) |
| template<typename EnumType > | |
| bool | toValue (const string &str, EnumType &value, bool log_error=true) |
| template<typename EnumType > | |
| EnumType | toValueWithFallback (const string &str, EnumType fallback, bool log_error=true) |
| static list< string > | makeStringList (const FstabEntry &e) |
| static list< string > | makeCrStringList (const FstabEntry &e) |
| std::ostream & | operator<< (std::ostream &s, const FstabEntry &v) |
| std::ostream & | operator<< (std::ostream &s, const FstabChange &v) |
| std::ostream & | operator<< (std::ostream &s, const EtcMdadm::mdconf_info &info) |
| std::ostream & | operator<< (std::ostream &s, const ResizeInfo &resize_info) |
| std::ostream & | operator<< (std::ostream &s, const ContentInfo &content_info) |
| std::ostream & | operator<< (std::ostream &s, const FreeInfo &free_info) |
| const char * | GetSourceMd5 () |
| const char * | GetSourceDate () |
| std::ostream & | operator<< (std::ostream &s, const Geometry &geo) |
| bool | getChildValue (const xmlNode *node, const char *name, Geometry &value) |
| void | setChildValue (xmlNode *node, const char *name, const Geometry &value) |
| bool | detectGeometry (const string &device, Geometry &geo) |
| ostream & | operator<< (ostream &s, const Graph::Node &node) |
| ostream & | operator<< (ostream &s, const Graph::Edge &edge) |
| ostream & | operator<< (ostream &s, const Graph::Rank &rank) |
| bool | saveDeviceGraph (StorageInterface *s, const string &filename) |
| bool | saveMountGraph (StorageInterface *s, const string &filename) |
| int | numSuffixes () |
| list< Text > | getAllSuffixes (int i, bool all=false, bool sloppy=false) |
| string | getSuffix (int i, bool classic) |
| string | byteToHumanString (unsigned long long size, bool classic, int precision, bool omit_zeroes) |
| bool | humanStringToByte (const string &str, bool classic, unsigned long long &size) |
| template<class Container , class Iter > | |
| IterPair< Iter > | MakeIterPair (Container &c) |
| std::ostream & | operator<< (std::ostream &s, const Loop &l) |
| std::ostream & | operator<< (std::ostream &s, const LoopCo &d) |
| std::ostream & | operator<< (std::ostream &s, const Lsscsi::Entry &entry) |
| std::ostream & | operator<< (std::ostream &s, const LvmLv &p) |
| static bool | lvNotCreated (const LvmLv &l) |
| static bool | lvNotDeletedCreated (const LvmLv &l) |
| static bool | lvDeleted (const LvmLv &l) |
| static bool | lvCreated (const LvmLv &l) |
| static bool | lvResized (const LvmLv &l) |
| std::ostream & | operator<< (std::ostream &s, const LvmVg &d) |
| std::ostream & | operator<< (std::ostream &s, const Md &m) |
| std::ostream & | operator<< (std::ostream &s, const MdCo &d) |
| std::ostream & | operator<< (std::ostream &s, const MdPart &p) |
| static bool | toChangeId (const MdPart &d) |
| std::ostream & | operator<< (std::ostream &s, const MdPartCo &d) |
| std::ostream & | operator<< (std::ostream &s, const Nfs &l) |
| std::ostream & | operator<< (std::ostream &s, const NfsCo &d) |
| std::ostream & | operator<< (std::ostream &s, const Parted::Entry &e) |
| std::ostream & | operator<< (std::ostream &s, const Partition &p) |
| void | printDevList (std::ostream &s, const std::list< PeContainer::Pv > &l) |
| std::ostream & | operator<< (std::ostream &s, const PeContainer &d) |
| std::ostream & | operator<< (std::ostream &s, const PeContainer::Pv &v) |
| std::ostream & | operator<< (std::ostream &s, const ProcMdstat::Entry &entry) |
| bool | getMdadmDetails (const string &dev, MdadmDetails &detail) |
| bool | isImsmPlatform () |
| std::ostream & | operator<< (std::ostream &s, const Region &p) |
| bool | getChildValue (const xmlNode *node, const char *name, Region &value) |
| void | setChildValue (xmlNode *node, const char *name, const Region &value) |
| void | initDefaultLogger () |
| std::ostream & | operator<< (std::ostream &s, const Environment &env) |
| std::ostream & | operator<< (std::ostream &s, const storage::DiskData &d) |
| list< string > | getPresentDisks () |
| StorageInterface * | createStorageInterface (const Environment &env) |
| StorageInterface * | createStorageInterfacePid (const Environment &env, pid_t &locker_pid) |
| void | destroyStorageInterface (StorageInterface *p) |
| static bool | sort_cont_up (const Container *rhs, const Container *lhs) |
| static bool | sort_cont_down (const Container *rhs, const Container *lhs) |
| static bool | sort_vol_normal (const Volume *rhs, const Volume *lhs) |
| static bool | sort_vol_delete (const Volume *rhs, const Volume *lhs) |
| static bool | sort_vol_create (const Volume *rhs, const Volume *lhs) |
| static bool | sort_vol_mount (const Volume *rhs, const Volume *lhs) |
| static bool | notLoop (const Container &c) |
| static bool | fstabAdded (const Volume &v) |
| std::ostream & | operator<< (std::ostream &s, const Storage &v) |
| std::ostream & | operator<< (std::ostream &s, Storage &v) |
| StorageInterface * | createStorageInterfacePid (const Environment &env, int &locker_pid) |
| template<class Num > | |
| string | decString (Num number) |
| template<class Num > | |
| string | hexString (Num number) |
| template<class Value > | |
| void | operator>> (const string &d, Value &v) |
| template<class Value > | |
| std::ostream & | operator<< (std::ostream &s, const std::list< Value > &l) |
| template<class Value > | |
| std::ostream & | operator<< (std::ostream &s, const std::deque< Value > &l) |
| template<class F , class S > | |
| std::ostream & | operator<< (std::ostream &s, const std::pair< F, S > &p) |
| template<class Key , class Value > | |
| std::ostream & | operator<< (std::ostream &s, const std::map< Key, Value > &m) |
| template<typename Type > | |
| void | logDiff (std::ostream &log, const char *text, const Type &lhs, const Type &rhs) |
| template<typename Type > | |
| void | logDiffHex (std::ostream &log, const char *text, const Type &lhs, const Type &rhs) |
| template<typename Type > | |
| void | logDiffEnum (std::ostream &log, const char *text, const Type &lhs, const Type &rhs) |
| void | logDiff (std::ostream &log, const char *text, bool lhs, bool rhs) |
| template<class Type > | |
| bool | read_sysfs_property (const string &path, Type &value, bool log_error=true) |
| template<class Type > | |
| void | pointerIntoSortedList (list< Type * > &l, Type *e) |
| template<class Type > | |
| void | clearPointerList (list< Type * > &l) |
| template<typename ListType , typename Type > | |
| bool | contains (const ListType &l, const Type &value) |
| template<typename ListType , typename Predicate > | |
| bool | contains_if (const ListType &l, Predicate pred) |
| template<typename Map , typename Key , typename Value > | |
| Map::iterator | mapInsertOrReplace (Map &m, const Key &k, const Value &v) |
| template<typename List , typename Value > | |
| List::const_iterator | addIfNotThere (List &l, const Value &v) |
| template<class InputIterator1 , class InputIterator2 > | |
| bool | equalContent (InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2) |
| template<class InputIterator1 , class InputIterator2 > | |
| void | logVolumesDifference (std::ostream &log, InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2) |
| template<class T , unsigned int sz> | |
| unsigned int | lengthof (T(&)[sz]) |
| template<class Type > | |
| void | printtype (Type type) |
| std::ostream & | operator<< (std::ostream &s, const commitAction &a) |
| std::ostream & | operator<< (std::ostream &s, const UsedBy &usedby) |
| void | setChildValue (xmlNode *node, const char *name, const UsedBy &value) |
| std::ostream & | operator<< (std::ostream &s, const Subvolume &sv) |
| void | setChildValue (xmlNode *node, const char *name, const Subvolume &v) |
| std::ostream & | operator<< (std::ostream &s, const PartitionSlotInfo &a) |
| std::ostream & | operator<< (std::ostream &s, const FsCapabilities &a) |
| bool | operator< (CType a, CType b) |
| bool | operator<= (CType a, CType b) |
| bool | operator>= (CType a, CType b) |
| bool | operator> (CType a, CType b) |
| template<class Pred > | |
| vector< string >::iterator | find_if (vector< string > &lines, Pred pred) |
| template<class Pred > | |
| vector< string >::const_iterator | find_if (const vector< string > &lines, Pred pred) |
| string | quote (const string &str) |
| string | quote (const std::list< string > &strs) |
| std::ostream & | operator<< (std::ostream &s, const Tmpfs &v) |
| std::ostream & | operator<< (std::ostream &s, const TmpfsCo &d) |
| static string | handle_O_Features (const string &opts) |
| bool | hasLoopDevice (const Volume &v) |
| static bool | haveQuota (const string &fstopt) |
| std::ostream & | operator<< (std::ostream &s, const Volume &v) |
| xmlNode * | xmlNewNode (const char *name) |
| xmlNode * | xmlNewChild (xmlNode *node, const char *name) |
| const xmlNode * | getChildNode (const xmlNode *node, const char *name) |
| list< const xmlNode * > | getChildNodes (const xmlNode *node, const char *name) |
| bool | getChildValue (const xmlNode *node, const char *name, string &value) |
| bool | getChildValue (const xmlNode *node, const char *name, bool &value) |
| void | setChildValue (xmlNode *node, const char *name, const char *value) |
| void | setChildValue (xmlNode *node, const char *name, const string &value) |
| void | setChildValue (xmlNode *node, const char *name, bool value) |
| template<typename Type > | |
| bool | getChildValue (const xmlNode *node, const char *name, Type &value) |
| template<typename Type > | |
| void | setChildValue (xmlNode *node, const char *name, const Type &value) |
| template<typename Type > | |
| void | setChildValue (xmlNode *node, const char *name, const list< Type > &values) |
Variables | |
| static const blocxx::String | component = "libstorage" |
| const string | app_ws = " \t\n" |
| static const string | dasd_format_names [] |
| const unsigned int | fuzz_cyl = 2 |
| static const char * | elem [] = { "crypt", "thin-pool" } |
| usr src packages BUILD yast2 storage libstorage src Enum static cc const string | fs_type_names [] |
| static const string | partition_type_names [] |
| static const string | mount_by_names [] |
| static const string | encrypt_names [] |
| static const string | md_type_names [] |
| static const string | md_parity_names [] |
| static const string | md_array_state_names [] |
| static const string | used_by_type_names [] |
| static const string | c_type_names [] |
| static const string | transport_names [] |
| static const string | imsm_driver_names [] |
| static const string | multipath_autostart_names [] |
| static const string | part_align_names [] |
| CallbackProgressBar | progress_bar_cb_ycp = NULL |
| CallbackShowInstallInfo | install_info_cb_ycp = NULL |
| CallbackInfoPopup | info_popup_cb_ycp = NULL |
| CallbackYesNoPopup | yesno_popup_cb_ycp = NULL |
| CallbackCommitErrorPopup | commit_error_popup_cb_ycp = NULL |
| CallbackPasswordPopup | password_popup_cb_ycp = NULL |
| typedef bool(* storage::CallbackCommitErrorPopup)(int error, const string &last_action, const string &extended_message) |
typedef for a pointer to a function that asks whether to continue after an commit error. If true is returned the commit error is ignored and the commit continues.
| typedef void(* storage::CallbackInfoPopup)(const string &text) |
typedef for a pointer to a function that displays a popup with the given text and waits for user confirmation.
| typedef bool(* storage::CallbackPasswordPopup)(const string &device, int attempts, string &password) |
typedef for a pointer to a function that asks for the password of the given device. If the user does not want to decrypt the device false is returned, true otherwise.
| typedef void(* storage::CallbackProgressBar)(const string &id, unsigned cur, unsigned max) |
typedef for a pointer to a function that is called on progress bar events.
| typedef void(* storage::CallbackShowInstallInfo)(const string &id) |
typedef for a pointer to a function that is called with strings telling the user what is currently going on.
| typedef bool(* storage::CallbackYesNoPopup)(const string &text) |
typedef for a pointer to a function that displays a popup with the given text and two buttons labels "Yes" and "No". The user has to press on of these buttons. If the user presses "Yes" true is returned, false otherwise.
| enum storage::CommitStage |
| enum storage::CType |
| enum storage::EncryptType |
| enum storage::ErrorCodes |
preliminary list of error codes, must have negative values
| enum storage::FsType |
| enum storage::ImsmDriver |
| enum storage::LogLevel |
| enum storage::MdParity |
| enum storage::MdType |
| enum storage::MountByType |
| enum storage::PartAlign |
| enum storage::Transport |
| enum storage::UsedByType |
| Text storage::_ | ( | const char * | msgid | ) |
Referenced by storage::EtcFstab::addText(), storage::Btrfs::createSubvolText(), storage::Volume::createText(), storage::Partition::createText(), storage::Md::createText(), storage::LvmVg::createText(), storage::LvmLv::createText(), storage::Loop::createText(), storage::Dmraid::createText(), storage::Dmmultipath::createText(), storage::Container::createText(), storage::Volume::crsetupText(), storage::Dasd::dasdfmtTexts(), storage::Storage::decideMultipath(), storage::Btrfs::deleteSubvolText(), storage::Storage::discoverMdPVols(), storage::LvmVg::extendText(), storage::Btrfs::extendText(), storage::Volume::formatText(), storage::Partition::formatText(), storage::Md::formatText(), storage::LvmLv::formatText(), storage::Loop::formatText(), storage::Dmraid::formatText(), storage::Dmmultipath::formatText(), storage::Dm::formatText(), getAllSuffixes(), storage::Storage::getErrorString(), storage::Volume::labelText(), storage::Volume::losetupText(), storage::Volume::mountText(), storage::Tmpfs::mountText(), operator<<(), storage::LvmVg::reduceText(), storage::Btrfs::reduceText(), storage::Volume::removeText(), storage::Tmpfs::removeText(), storage::Partition::removeText(), storage::Nfs::removeText(), storage::MdPartCo::removeText(), storage::Md::removeText(), storage::LvmVg::removeText(), storage::LvmLv::removeText(), storage::Loop::removeText(), storage::EtcFstab::removeText(), storage::DmraidCo::removeText(), storage::Dmraid::removeText(), storage::DmPartCo::removeText(), storage::Dmmultipath::removeText(), storage::Dm::removeText(), storage::Container::removeText(), storage::Btrfs::removeText(), storage::Volume::resizeText(), storage::Partition::resizeText(), storage::LvmLv::resizeText(), storage::Dmraid::resizeText(), storage::Dmmultipath::resizeText(), storage::Disk::setDiskLabelText(), storage::Partition::setTypeText(), storage::MdPart::setTypeText(), storage::Dmraid::setTypeText(), storage::DmPart::setTypeText(), storage::Dmmultipath::setTypeText(), and storage::EtcFstab::updateText().
| Text storage::_ | ( | const char * | msgid, |
| const char * | msgid_plural, | ||
| unsigned long int | n | ||
| ) |
| List::const_iterator storage::addIfNotThere | ( | List & | l, |
| const Value & | v | ||
| ) |
Referenced by storage::Storage::getRecursiveUsingHelper().
| string storage::afterLast | ( | const string & | s, |
| const string & | pat | ||
| ) |
Referenced by storage::Volume::addDmCryptNames(), and storage::Volume::removeDmCryptNames().
| string storage::byteToHumanString | ( | unsigned long long | size, |
| bool | classic, | ||
| int | precision, | ||
| bool | omit_zeroes | ||
| ) |
Return a pretty description of a size with required precision and using B, kB, MB, GB, TB or PB as unit as appropriate.
| size | size in bytes |
| classic | use classic locale instead of global C++ locale |
| precision | number of fraction digits in output |
| omit_zeroes | if true omit trailing zeroes for exact values |
References classic(), getSuffix(), and numSuffixes().
Referenced by storage::Graph::makeTooltip(), and storage::Device::sizeString().
| bool storage::checkDir | ( | const string & | Path_Cv | ) |
| bool storage::checkNormalFile | ( | const string & | Path_Cv | ) |
| void storage::classic | ( | StreamType & | stream | ) |
Referenced by byteToHumanString(), storage::CmdMultipath::CmdMultipath(), storage::Dasdview::Dasdview(), decString(), storage::Volume::detectEncryption(), storage::Disk::doCreate(), storage::Volume::doCryptsetup(), storage::Volume::doLosetup(), storage::Disk::doRemove(), storage::Disk::doResize(), storage::Disk::doSetType(), storage::MdPartCo::envSelection(), getChildValue(), storage::Volume::getFstabData(), storage::Volume::getLoopData(), storage::LvmVg::getVgs(), hexString(), humanStringToByte(), storage::Storage::initialize(), storage::Storage::logCo(), operator>>(), storage::ProcMdstat::parse(), read_sysfs_property(), storage::EtcFstab::readFiles(), storage::AsciiFile::reload(), storage::Graph::save(), storage::AsciiFile::save(), storage::Parted::scanCylEntryLine(), storage::Fdasd::scanEntryLine(), storage::Parted::scanSecEntryLine(), setChildValue(), storage::Volume::setNameDev(), storage::Storage::sortCommitLists(), storage::PeContainer::splitMajMin(), and storage::Volume::triggerUdevUpdate().
| void storage::clearPointerList | ( | list< Type * > & | l | ) |
| bool storage::contains_if | ( | const ListType & | l, |
| Predicate | pred | ||
| ) |
References find_if().
Referenced by storage::Parted::scanCylEntryLine().
| void storage::createLogger | ( | const string & | name, |
| const string & | logpath, | ||
| const string & | logfile | ||
| ) |
References String.
Referenced by initDefaultLogger().
| void storage::createPath | ( | const string & | Path_Cv | ) |
| StorageInterface * storage::createStorageInterface | ( | const Environment & | env | ) |
Factory for creating a concrete StorageInterface object.
Throws an exception when locking fails.
| StorageInterface* storage::createStorageInterfacePid | ( | const Environment & | env, |
| pid_t & | locker_pid | ||
| ) |
References storage::LockException::getLockerPid().
| StorageInterface* storage::createStorageInterfacePid | ( | const Environment & | env, |
| int & | locker_pid | ||
| ) |
Factory for creating a concrete StorageInterface object.
Returns NULL if locking failed. In that case locker_pid is set to the pid of one process holding a conflicting lock. If the pid cannot be determined it is set to 0. The lock holder may run on another system.
| string storage::datetime | ( | ) |
Referenced by storage::Graph::save().
| string storage::decString | ( | Num | number | ) |
References classic().
Referenced by storage::Md::createCmd(), storage::Loop::createFile(), storage::MdCo::createMd(), storage::Disk::Disk(), storage::DmmultipathCo::DmmultipathCo(), storage::DmraidCo::DmraidCo(), storage::LvmVg::doCreate(), storage::Disk::doCreate(), storage::LvmVg::doCreateVg(), storage::Volume::doFormat(), storage::Volume::doFormatBtrfs(), storage::LvmVg::doResize(), storage::Volume::getFreeLoop(), storage::MdPartCo::getPartDevice(), storage::DmPartCo::getPartDevice(), storage::Storage::getPartitionName(), storage::MdPartCo::getPartName(), storage::DmPartCo::getPartName(), storage::DmCo::getProcSize(), storage::Storage::handleLogFile(), storage::DmPartCo::init(), storage::Loop::loopDeviceName(), makeStringList(), storage::Md::mdDevice(), storage::Storage::nextFreeMd(), storage::LvmVg::normalizeDmDevices(), storage::Lsscsi::parse(), storage::DmPartCo::procName(), storage::Dm::procName(), storage::Storage::removeDmTableTo(), storage::Volume::resizeFs(), storage::DmPart::updateMinor(), storage::DmPart::updateSize(), and storage::Storage::zeroDevice().
| void storage::destroyStorageInterface | ( | StorageInterface * | ) |
Destroy a StorageInterface object.
| bool storage::detectGeometry | ( | const string & | device, |
| Geometry & | geo | ||
| ) |
| bool storage::equalContent | ( | InputIterator1 | first1, |
| InputIterator1 | last1, | ||
| InputIterator2 | first2, | ||
| InputIterator2 | last2 | ||
| ) |
| static bool storage::existingLog | ( | const Partition & | p | ) | [static] |
Referenced by storage::Disk::doCreate().
| static bool storage::existingNotLog | ( | const Partition & | p | ) | [static] |
Referenced by storage::Disk::doCreate().
| string storage::extractNthWord | ( | int | Num_iv, |
| const string & | Line_Cv, | ||
| bool | GetRest_bi | ||
| ) |
References app_ws.
Referenced by storage::CmdBtrfsShow::CmdBtrfsShow(), storage::CmdMultipath::CmdMultipath(), storage::Dm::computePe(), storage::Dasdview::Dasdview(), storage::ArchInfo::detect(), storage::FreeInfo::detectContentInfo(), storage::DmCo::detectEncryption(), storage::Fdasd::Fdasd(), storage::EtcFstab::flush(), storage::LvmVg::getVgData(), storage::Storage::handleHald(), storage::ProcMdstat::parse(), storage::Lsscsi::parse(), storage::Parted::Parted(), storage::ProcMdstat::ProcMdstat(), storage::ProcParts::reload(), storage::ProcMounts::reload(), storage::MdPartCo::scanForRaid(), storage::Dasdview::scanGeometry(), storage::Parted::scanGeometryLine(), and storage::Parted::scanSectorSizeLine().
| vector<string>::iterator storage::find_if | ( | vector< string > & | lines, |
| Pred | pred | ||
| ) |
Referenced by storage::FstabEntry::calcDependent(), contains_if(), storage::ArchInfo::detect(), storage::Volume::doLosetup(), storage::Storage::equalBackupStates(), find_if(), storage::AsciiFile::find_if_idx(), storage::Volume::getFstabOpts(), storage::InstallInfFile::getValue(), storage::SysconfigFile::getValue(), storage::Volume::replaceAltName(), storage::Parted::scanCylEntryLine(), storage::EtcMdadm::setAutoLine(), and storage::EtcMdadm::setDeviceLine().
| vector<string>::const_iterator storage::find_if | ( | const vector< string > & | lines, |
| Pred | pred | ||
| ) |
References find_if().
| static bool storage::fstabAdded | ( | const Volume & | v | ) | [static] |
Referenced by storage::Storage::commit().
| list<Text> storage::getAllSuffixes | ( | int | i, |
| bool | all = false, |
||
| bool | sloppy = false |
||
| ) |
References _().
Referenced by getSuffix(), and humanStringToByte().
| const xmlNode * storage::getChildNode | ( | const xmlNode * | node, |
| const char * | name | ||
| ) |
| list< const xmlNode * > storage::getChildNodes | ( | const xmlNode * | node, |
| const char * | name | ||
| ) |
| bool storage::getChildValue | ( | const xmlNode * | node, |
| const char * | name, | ||
| bool & | value | ||
| ) |
References getChildValue().
| bool storage::getChildValue | ( | const xmlNode * | node, |
| const char * | name, | ||
| Geometry & | value | ||
| ) |
References storage::Geometry::cylinders, getChildNode(), storage::Geometry::heads, storage::Geometry::sector_size, and storage::Geometry::sectors.
Referenced by storage::Btrfs::Btrfs(), storage::Container::Container(), storage::Device::Device(), storage::Disk::Disk(), storage::Dm::Dm(), storage::FreeInfo::FreeInfo(), getChildValue(), storage::LvmLv::LvmLv(), storage::Partition::Partition(), storage::PeContainer::PeContainer(), storage::PeContainer::Pv::Pv(), storage::ArchInfo::readData(), storage::Storage::readFreeInfo(), storage::Subvolume::Subvolume(), and storage::Volume::Volume().
| bool storage::getChildValue | ( | const xmlNode * | node, |
| const char * | name, | ||
| string & | value | ||
| ) |
| bool storage::getChildValue | ( | const xmlNode * | node, |
| const char * | name, | ||
| Type & | value | ||
| ) |
References classic(), and getChildValue().
| bool storage::getChildValue | ( | const xmlNode * | node, |
| const char * | name, | ||
| Region & | value | ||
| ) |
References getChildNode(), getChildValue(), storage::Region::l, and storage::Region::s.
| map< string, string > storage::getDirLinks | ( | const string & | dir | ) |
References y2mil.
Referenced by storage::Md::setUdevData().
| unsigned storage::getMajorDevices | ( | const char * | driver | ) |
Referenced by storage::Dm::dmMajor(), storage::Loop::loopMajor(), and storage::Md::mdMajor().
| bool storage::getMajorMinor | ( | const string & | device, |
| unsigned long & | major, | ||
| unsigned long & | minor, | ||
| bool | may_fail | ||
| ) |
| bool storage::getMdadmDetails | ( | const string & | dev, |
| MdadmDetails & | detail | ||
| ) |
References MDADMBIN, quote(), storage::SystemCmd::retcode(), storage::SystemCmd::stdout(), y2err, and y2mil.
Referenced by storage::MdPartCo::initMd(), storage::Md::Md(), and storage::Md::updateData().
| list< string > storage::getPresentDisks | ( | ) |
Lightweight function to get existing disks without full probing
References storage::Storage::getDiskList(), storage::Disk::sysfsToDev(), and y2mil.
| const char * storage::GetSourceDate | ( | ) |
References SOURCES_MD5_DATE.
Referenced by storage::Storage::Storage().
| const char * storage::GetSourceMd5 | ( | ) |
References SOURCES_MD5SUM.
Referenced by storage::Storage::Storage().
| bool storage::getStatMode | ( | const string & | Path_Cv, |
| mode_t & | val | ||
| ) |
Referenced by storage::Volume::doMount().
| bool storage::getStatVfs | ( | const string & | path, |
| StatVfs & | buf | ||
| ) |
References y2err.
Referenced by storage::Storage::checkNfsDevice(), storage::FreeInfo::detectResizeInfo(), storage::NfsCo::getNfsData(), and storage::TmpfsCo::getTmpfsData().
| string storage::getSuffix | ( | int | i, |
| bool | classic | ||
| ) |
Return a suffix.
| i | index of suffix |
| classic | use classic locale instead of global C++ locale |
References getAllSuffixes().
Referenced by byteToHumanString().
| map<string, string> storage::getUdevLinks | ( | const char * | path | ) |
| list< string > storage::glob | ( | const string & | path, |
| int | flags | ||
| ) |
Referenced by storage::Storage::detectDisks(), storage::Storage::detectLvmVgs(), and storage::FreeInfo::numHomes().
| static string storage::handle_O_Features | ( | const string & | opts | ) | [static] |
References splitString(), and y2mil.
Referenced by storage::Volume::doFormat().
| bool storage::hasLoopDevice | ( | const Volume & | v | ) |
References storage::Volume::loopDevice().
Referenced by storage::Volume::getFreeLoop(), and storage::Volume::loopInUse().
| static bool storage::haveQuota | ( | const string & | fstopt | ) | [static] |
References splitString(), and y2mil.
Referenced by storage::Volume::doFstabUpdate().
| string storage::hexString | ( | Num | number | ) |
References classic().
| string storage::hostname | ( | ) |
Referenced by storage::Graph::save().
| bool storage::humanStringToByte | ( | const string & | str, |
| bool | classic, | ||
| unsigned long long & | size | ||
| ) |
Converts a size description using B, kB, MB, GB, TB or PB into an integer.
| str | size string |
| classic | use classic locale instead of global C++ locale |
| size | size in bytes |
The conversion is always case-insensitive. With classic set to false the conversion is also sloppy concerning omission of 'B'.
References classic(), getAllSuffixes(), and numSuffixes().
| void storage::initDefaultLogger | ( | ) |
Initializes default logging.
References createLogger().
| bool storage::isImsmPlatform | ( | ) |
References contains(), storage::SystemCmd::getLine(), MDADMBIN, storage::SystemCmd::numLines(), storage::SystemCmd::select(), and y2mil.
Referenced by storage::Storage::discoverMdPVols().
| bool storage::isNfsDev | ( | const string & | dev | ) |
| unsigned int storage::lengthof | ( | T(&) | [sz] | ) | [inline] |
| void storage::logDiff | ( | std::ostream & | log, |
| const char * | text, | ||
| const Type & | lhs, | ||
| const Type & | rhs | ||
| ) |
Referenced by storage::Volume::logDifference(), storage::PeContainer::logDifference(), storage::Partition::logDifference(), storage::MdPartCo::logDifference(), storage::Md::logDifference(), storage::LvmVg::logDifference(), storage::Loop::logDifference(), storage::DmraidCo::logDifference(), storage::DmPartCo::logDifference(), storage::DmmultipathCo::logDifference(), storage::Device::logDifference(), and storage::Container::logDifference().
| void storage::logDiff | ( | std::ostream & | log, |
| const char * | text, | ||
| bool | lhs, | ||
| bool | rhs | ||
| ) | [inline] |
| void storage::logDiffHex | ( | std::ostream & | log, |
| const char * | text, | ||
| const Type & | lhs, | ||
| const Type & | rhs | ||
| ) |
Referenced by storage::Partition::logDifference().
| static bool storage::logicalCreated | ( | const Partition & | p | ) | [static] |
Referenced by storage::Disk::doCreate().
| void storage::logStreamClose | ( | LogLevel | level, |
| const char * | file, | ||
| unsigned | line, | ||
| const char * | func, | ||
| ostringstream * | stream | ||
| ) |
| std::ostringstream * storage::logStreamOpen | ( | ) |
| void storage::logVolumesDifference | ( | std::ostream & | log, |
| InputIterator1 | first1, | ||
| InputIterator1 | last1, | ||
| InputIterator2 | first2, | ||
| InputIterator2 | last2 | ||
| ) |
Referenced by storage::TmpfsCo::logDifferenceWithVolumes(), storage::NfsCo::logDifferenceWithVolumes(), storage::MdPartCo::logDifferenceWithVolumes(), storage::MdCo::logDifferenceWithVolumes(), storage::LvmVg::logDifferenceWithVolumes(), storage::LoopCo::logDifferenceWithVolumes(), storage::DmraidCo::logDifferenceWithVolumes(), storage::DmmultipathCo::logDifferenceWithVolumes(), and storage::DmCo::logDifferenceWithVolumes().
| static bool storage::lvCreated | ( | const LvmLv & | l | ) | [static] |
References storage::Device::created().
Referenced by storage::LvmVg::getVgData().
| static bool storage::lvDeleted | ( | const LvmLv & | l | ) | [static] |
References storage::Device::deleted().
Referenced by storage::LvmVg::getVgData().
| static bool storage::lvNotCreated | ( | const LvmLv & | l | ) | [static] |
References storage::Device::created().
Referenced by storage::LvmVg::addLv().
| static bool storage::lvNotDeletedCreated | ( | const LvmLv & | l | ) | [static] |
References storage::Device::created(), and storage::Device::deleted().
Referenced by storage::LvmVg::addLv().
| static bool storage::lvResized | ( | const LvmLv & | l | ) | [static] |
References storage::Volume::extendSize().
Referenced by storage::LvmVg::addLv(), and storage::LvmVg::getVgData().
| static list<string> storage::makeCrStringList | ( | const FstabEntry & | e | ) | [static] |
References storage::FstabEntry::cr_key, storage::FstabEntry::cr_opts, storage::FstabEntry::dentry, storage::FstabEntry::device, storage::FstabEntry::mount, storage::FstabEntry::noauto, splitString(), and storage::FstabEntry::tmpcrypt.
Referenced by storage::EtcFstab::createCrtabLine(), and storage::EtcFstab::flush().
| IterPair<Iter> storage::MakeIterPair | ( | Container & | c | ) |
References storage::Container::begin(), and storage::Container::end().
| std::map< string, string > storage::makeMap | ( | const list< string > & | l, |
| const string & | delim, | ||
| const string & | removeSur | ||
| ) |
Referenced by storage::Blkid::parse().
| static list<string> storage::makeStringList | ( | const FstabEntry & | e | ) | [static] |
References storage::FstabEntry::cryptotab, decString(), storage::FstabEntry::dentry, storage::FstabEntry::device, storage::FstabEntry::dmcrypt, storage::FstabEntry::encr, storage::FstabEntry::freq, storage::FstabEntry::fs, storage::FstabEntry::loop_dev, storage::FstabEntry::mount, storage::FstabEntry::opts, storage::FstabEntry::optUser(), storage::FstabEntry::passno, and toString().
Referenced by storage::EtcFstab::createTabLine(), and storage::EtcFstab::flush().
| Map::iterator storage::mapInsertOrReplace | ( | Map & | m, |
| const Key & | k, | ||
| const Value & | v | ||
| ) |
Referenced by storage::Storage::readFreeInfo(), and storage::Storage::setCryptPassword().
| bool storage::mkdtemp | ( | string & | path | ) |
Referenced by storage::Storage::initialize(), and storage::Storage::mountTmp().
| static bool storage::needDasdfmt | ( | const Disk & | d | ) | [static] |
| string storage::normalizeDevice | ( | const string & | dev | ) |
| list< string > storage::normalizeDevices | ( | const list< string > & | devs | ) |
| static bool storage::notCreatedPrimary | ( | const Partition & | p | ) | [static] |
Referenced by storage::Disk::doRemove().
| static bool storage::notDeletedExt | ( | const Partition & | p | ) | [static] |
Referenced by storage::Disk::doCreate(), and storage::Disk::doResize().
| static bool storage::notDeletedLog | ( | const Partition & | p | ) | [static] |
| static bool storage::notDeletedNotLog | ( | const Partition & | p | ) | [static] |
Referenced by storage::Disk::getUnusedSpace().
| static bool storage::notDeletedPri | ( | const Partition & | p | ) | [static] |
| static bool storage::notLoop | ( | const Container & | c | ) | [static] |
References storage::Volume::fstabAdded().
Referenced by storage::Storage::commit().
| int storage::numSuffixes | ( | ) |
Return number of suffixes.
Referenced by byteToHumanString(), and humanStringToByte().
| bool storage::operator< | ( | CType | a, |
| CType | b | ||
| ) | [inline] |
References toString(), and y2mil.
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const Dasd & | d | ||
| ) |
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const DmPart & | p | ||
| ) |
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const MdPart & | p | ||
| ) |
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const Device & | d | ||
| ) |
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const Md & | m | ||
| ) |
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const DmPartCo & | d | ||
| ) |
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const Dmraid & | p | ||
| ) |
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const std::map< Key, Value > & | m | ||
| ) |
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const UsedBy & | usedby | ||
| ) |
References storage::UsedBy::device(), storage::UsedBy::type(), UB_BTRFS, UB_DM, UB_DMMULTIPATH, UB_DMRAID, UB_LVM, UB_MD, UB_MDPART, and UB_NONE.
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const Volume & | v | ||
| ) |
References storage::Device::alt_names, storage::Volume::crypt_pwd, storage::Volume::detected_fs, storage::Volume::dmcrypt_active, storage::Volume::dmcrypt_dev, storage::Volume::dtxt, ENC_NONE, storage::Volume::encryption, storage::Volume::format, storage::Volume::fs, storage::Volume::fstab_loop_dev, storage::Volume::fstab_opt, FSUNKNOWN, storage::Volume::ignore_fs, storage::Volume::ignore_fstab, storage::Volume::is_loop, storage::Volume::is_mounted, storage::Volume::label, storage::Volume::loop_active, storage::Volume::loop_dev, storage::Volume::mkfs_opt, storage::Volume::mount_by, MOUNTBY_DEVICE, storage::Volume::mp, storage::Volume::num, storage::Volume::orig_crypt_pwd, storage::Volume::orig_encryption, storage::Volume::orig_fstab_opt, storage::Volume::orig_label, storage::Volume::orig_mount_by, storage::Volume::orig_mp, storage::Volume::orig_size_k, storage::Volume::ronly, storage::Device::size_k, toString(), storage::Volume::tunefs_opt, storage::Device::uby, and storage::Volume::uuid.
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const TmpfsCo & | d | ||
| ) |
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const Storage & | v | ||
| ) |
References storage::Storage::printInfo().
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const Environment & | env | ||
| ) |
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const DmraidCo & | d | ||
| ) |
References storage::DmraidCo::controller, and storage::DmraidCo::raidtype.
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| Storage & | v | ||
| ) |
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const std::pair< F, S > & | p | ||
| ) |
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const FstabEntry & | v | ||
| ) |
References storage::FstabEntry::cr_key, storage::FstabEntry::cr_opts, storage::FstabEntry::cryptotab, storage::FstabEntry::crypttab, storage::FstabEntry::dentry, storage::FstabEntry::device, storage::FstabEntry::dmcrypt, ENC_NONE, storage::FstabEntry::encr, storage::FstabEntry::freq, storage::FstabEntry::fs, storage::FstabEntry::loop, storage::FstabEntry::loop_dev, storage::FstabEntry::mount, storage::FstabEntry::noauto, storage::FstabEntry::opts, storage::FstabEntry::passno, storage::FstabEntry::tmpcrypt, and toString().
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const FstabChange & | v | ||
| ) |
References storage::FstabChange::dentry, storage::FstabChange::device, ENC_NONE, storage::FstabChange::encr, storage::FstabChange::freq, storage::FstabChange::fs, storage::FstabChange::loop_dev, storage::FstabChange::mount, storage::FstabChange::opts, storage::FstabChange::passno, storage::FstabChange::tmpcrypt, and toString().
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const std::deque< Value > & | l | ||
| ) |
| std::ostream & storage::operator<< | ( | std::ostream & | s, |
| const ResizeInfo & | resize_info | ||
| ) |
| std::ostream & storage::operator<< | ( | std::ostream & | s, |
| const ContentInfo & | content_info | ||
| ) |
| std::ostream & storage::operator<< | ( | std::ostream & | s, |
| const FreeInfo & | free_info | ||
| ) |
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const std::list< Value > & | l | ||
| ) |
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const Geometry & | geo | ||
| ) |
| ostream& storage::operator<< | ( | ostream & | s, |
| const Graph::Edge & | edge | ||
| ) |
References storage::Graph::EDGE_MOUNT, storage::Graph::EDGE_SUBDEVICE, storage::Graph::EDGE_USED, and quote().
| ostream& storage::operator<< | ( | ostream & | s, |
| const Graph::Node & | node | ||
| ) |
References _(), storage::Graph::Node::device, storage::Graph::Node::id(), storage::Graph::Node::label, storage::Graph::makeTooltip(), storage::Graph::NODE_BTRFS, storage::Graph::NODE_DISK, storage::Graph::NODE_DM, storage::Graph::NODE_DMMULTIPATH, storage::Graph::NODE_DMRAID, storage::Graph::NODE_LVMLV, storage::Graph::NODE_LVMVG, storage::Graph::NODE_MD, storage::Graph::NODE_MDPART, storage::Graph::NODE_MOUNTPOINT, storage::Graph::NODE_PARTITION, storage::Graph::quote(), quote(), storage::Graph::Node::sizeK, and storage::Graph::Node::type.
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const commitAction & | a | ||
| ) |
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const Btrfs & | v | ||
| ) |
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const BtrfsCo & | d | ||
| ) |
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const Subvolume & | sv | ||
| ) |
References storage::Subvolume::path().
| std::ostream & storage::operator<< | ( | std::ostream & | s, |
| const PartitionSlotInfo & | a | ||
| ) |
References storage::PartitionSlotInfo::cylSize, storage::PartitionSlotInfo::cylStart, storage::PartitionSlotInfo::extendedPossible, storage::PartitionSlotInfo::extendedSlot, storage::PartitionSlotInfo::logicalPossible, storage::PartitionSlotInfo::logicalSlot, storage::PartitionSlotInfo::primaryPossible, and storage::PartitionSlotInfo::primarySlot.
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const Container & | c | ||
| ) |
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const StopWatch & | sw | ||
| ) |
| std::ostream & storage::operator<< | ( | std::ostream & | s, |
| const ArchInfo & | archinfo | ||
| ) |
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const Tmpfs & | v | ||
| ) |
| std::ostream & storage::operator<< | ( | std::ostream & | s, |
| const FsCapabilities & | a | ||
| ) |
References storage::FsCapabilities::isExtendable, storage::FsCapabilities::isExtendableWhileMounted, storage::FsCapabilities::isReduceable, storage::FsCapabilities::isReduceableWhileMounted, storage::FsCapabilities::labelLength, storage::FsCapabilities::labelWhileMounted, storage::FsCapabilities::minimalFsSizeK, storage::FsCapabilities::supportsLabel, and storage::FsCapabilities::supportsUuid.
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const Fdasd::Entry & | e | ||
| ) |
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const PeContainer::Pv & | v | ||
| ) |
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const storage::DiskData & | d | ||
| ) |
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const LoopCo & | d | ||
| ) |
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const Lsscsi::Entry & | entry | ||
| ) |
References toString(), and storage::Lsscsi::Entry::transport.
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const ProcMdstat::Entry & | entry | ||
| ) |
References storage::ProcMdstat::Entry::chunk_k, storage::ProcMdstat::Entry::container_member, storage::ProcMdstat::Entry::container_name, storage::ProcMdstat::Entry::devices, storage::ProcMdstat::Entry::has_container, storage::ProcMdstat::Entry::inactive, storage::ProcMdstat::Entry::is_container, storage::ProcMdstat::Entry::md_parity, storage::ProcMdstat::Entry::md_type, PAR_DEFAULT, storage::ProcMdstat::Entry::readonly, storage::ProcMdstat::Entry::size_k, storage::ProcMdstat::Entry::spares, storage::ProcMdstat::Entry::super, and toString().
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const LvmLv & | p | ||
| ) |
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const Loop & | l | ||
| ) |
References storage::Loop::delFile, storage::Loop::lfile, and storage::Loop::reuseFile.
| ostream& storage::operator<< | ( | ostream & | s, |
| const Graph::Rank & | rank | ||
| ) |
References storage::Graph::quote().
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const LvmVg & | d | ||
| ) |
References storage::LvmVg::lvm1, storage::LvmVg::status, and storage::LvmVg::uuid.
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const DmCo & | d | ||
| ) |
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const MdCo & | d | ||
| ) |
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const DmmultipathCo & | d | ||
| ) |
References storage::DmmultipathCo::model, and storage::DmmultipathCo::vendor.
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const Dmmultipath & | p | ||
| ) |
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const Region & | p | ||
| ) |
References storage::Region::l, and storage::Region::s.
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const MdPartCo & | d | ||
| ) |
References storage::MdPartCo::chunk_k, storage::MdPartCo::destrSb, storage::MdPartCo::devs, storage::MdPartCo::disk, storage::Disk::getGeometry(), storage::MdPartCo::md_name, storage::MdPartCo::md_parity, storage::MdPartCo::md_type, storage::MdPartCo::md_uuid, PAR_DEFAULT, storage::MdPartCo::sb_ver, storage::MdPartCo::spare, and toString().
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const Disk & | d | ||
| ) |
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const Nfs & | l | ||
| ) |
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const NfsCo & | d | ||
| ) |
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const Parted::Entry & | e | ||
| ) |
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const Partition & | p | ||
| ) |
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const PeContainer & | d | ||
| ) |
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const EtcMdadm::mdconf_info & | info | ||
| ) |
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const Dm & | p | ||
| ) |
| std::ostream& storage::operator<< | ( | std::ostream & | s, |
| const Blkid::Entry & | entry | ||
| ) |
| bool storage::operator<= | ( | CType | a, |
| CType | b | ||
| ) | [inline] |
| bool storage::operator> | ( | CType | a, |
| CType | b | ||
| ) | [inline] |
| bool storage::operator>= | ( | CType | a, |
| CType | b | ||
| ) | [inline] |
| void storage::operator>> | ( | const string & | d, |
| Value & | v | ||
| ) |
References classic().
| void storage::prepareLogStream | ( | ostringstream & | stream | ) |
Referenced by storage::Container::compareContainer(), and storage::Storage::dumpObjectList().
| void storage::printDevList | ( | std::ostream & | s, |
| const std::list< PeContainer::Pv > & | l | ||
| ) |
Referenced by operator<<().
| void storage::printtype | ( | Type | type | ) |
| string storage::quote | ( | const std::list< string > & | strs | ) | [inline] |
References storage::SystemCmd::quote().
| string storage::quote | ( | const string & | str | ) | [inline] |
References storage::SystemCmd::quote().
Referenced by storage::Md::createCmd(), storage::Loop::createFile(), storage::Volume::cryptUnsetup(), storage::Dasdview::Dasdview(), storage::Volume::detectEncryption(), storage::DmCo::detectEncryption(), storage::FreeInfo::detectResizeInfo(), storage::LvmVg::doCreate(), storage::Disk::doCreate(), storage::LvmVg::doCreatePv(), storage::LvmVg::doCreateVg(), storage::Volume::doCryptsetup(), storage::Dasd::doDasdfmt(), storage::LvmVg::doExtendVg(), storage::Volume::doFormat(), storage::Volume::doFormatBtrfs(), storage::Volume::doFstabUpdate(), storage::Volume::doLosetup(), storage::LvmVg::doReduceVg(), storage::MdPartCo::doRemove(), storage::MdCo::doRemove(), storage::LvmVg::doRemove(), storage::DmraidCo::doRemove(), storage::DmCo::doRemove(), storage::Disk::doRemove(), storage::LvmVg::doRemoveVg(), storage::LvmVg::doResize(), storage::Disk::doResize(), storage::Volume::doSetLabel(), storage::Disk::doSetType(), storage::Disk::enlargeGpt(), storage::Fdasd::Fdasd(), storage::Volume::getCryptsetupCmd(), storage::Volume::getLosetupCmd(), getMdadmDetails(), storage::LvmVg::getVgData(), storage::FreeInfo::isWindows(), storage::Storage::loadModuleIfNeeded(), storage::Volume::loUnsetup(), storage::Graph::makeTooltip(), storage::Volume::mount(), storage::FreeInfo::numHomes(), operator<<(), storage::Parted::Parted(), storage::Storage::removeDmTable(), storage::Volume::resizeFs(), storage::Volume::umount(), storage::Storage::zeroDevice(), and storage::Storage::~Storage().
| bool storage::read_sysfs_property | ( | const string & | path, |
| Type & | value, | ||
| bool | log_error = true |
||
| ) |
References classic(), and y2err.
Referenced by storage::Partition::detectSysfsBlkRegion(), storage::MdPartCo::getMdPartCoState(), and storage::Md::getState().
| bool storage::readlink | ( | const string & | path, |
| string & | buf | ||
| ) |
Referenced by storage::Lsscsi::parse().
| bool storage::readlinkat | ( | int | fd, |
| const string & | path, | ||
| string & | buf | ||
| ) |
| static bool storage::regions_sort_size | ( | const Region & | rhs, |
| const Region & | lhs | ||
| ) | [static] |
| bool storage::saveDeviceGraph | ( | StorageInterface * | s, |
| const string & | filename | ||
| ) |
Saves a graph of the storage devices as a DOT file for graphviz.
| s | StorageInterface |
| filename | filename of graph |
References storage::Graph::save().
| bool storage::saveMountGraph | ( | StorageInterface * | s, |
| const string & | filename | ||
| ) |
Saves a graph of the mount points as a DOT file for graphviz.
| s | StorageInterface |
| filename | filename of graph |
References storage::Graph::save().
| void storage::setChildValue | ( | xmlNode * | node, |
| const char * | name, | ||
| const Region & | value | ||
| ) |
References storage::Region::l, storage::Region::s, setChildValue(), and xmlNewChild().
| void storage::setChildValue | ( | xmlNode * | node, |
| const char * | name, | ||
| const list< Type > & | values | ||
| ) |
References setChildValue().
| void storage::setChildValue | ( | xmlNode * | node, |
| const char * | name, | ||
| const Type & | value | ||
| ) |
References classic(), and setChildValue().
| void storage::setChildValue | ( | xmlNode * | node, |
| const char * | name, | ||
| const string & | value | ||
| ) |
| void storage::setChildValue | ( | xmlNode * | node, |
| const char * | name, | ||
| const Subvolume & | v | ||
| ) |
References storage::Subvolume::path(), setChildValue(), and xmlNewChild().
| void storage::setChildValue | ( | xmlNode * | node, |
| const char * | name, | ||
| const UsedBy & | value | ||
| ) |
References setChildValue(), UB_BTRFS, storage::UsedBy::ub_device, UB_DM, UB_DMMULTIPATH, UB_DMRAID, UB_LVM, UB_MD, UB_MDPART, UB_NONE, storage::UsedBy::ub_type, and xmlNewChild().
| void storage::setChildValue | ( | xmlNode * | node, |
| const char * | name, | ||
| bool | value | ||
| ) |
| void storage::setChildValue | ( | xmlNode * | node, |
| const char * | name, | ||
| const char * | value | ||
| ) |
| void storage::setChildValue | ( | xmlNode * | node, |
| const char * | name, | ||
| const Geometry & | value | ||
| ) |
References storage::Geometry::cylinders, storage::Geometry::heads, storage::Geometry::sector_size, storage::Geometry::sectors, and xmlNewChild().
Referenced by storage::Storage::logFreeInfo(), storage::Volume::saveData(), storage::PeContainer::Pv::saveData(), storage::PeContainer::saveData(), storage::Partition::saveData(), storage::FreeInfo::saveData(), storage::Device::saveData(), storage::Container::saveData(), storage::ArchInfo::saveData(), and setChildValue().
| bool storage::setStatMode | ( | const string & | Path_Cv, |
| mode_t | val | ||
| ) |
Referenced by storage::Volume::doMount().
| Text storage::sformat | ( | const Text & | format, |
| ... | |||
| ) |
| string storage::sformat | ( | const string & | format, |
| va_list | ap | ||
| ) |
References str.
Referenced by storage::EtcFstab::addText(), storage::Btrfs::createSubvolText(), storage::Volume::createText(), storage::Partition::createText(), storage::Md::createText(), storage::LvmVg::createText(), storage::LvmLv::createText(), storage::Loop::createText(), storage::Dmraid::createText(), storage::Dmmultipath::createText(), storage::Container::createText(), storage::Volume::crsetupText(), storage::Dasd::dasdfmtTexts(), storage::Btrfs::deleteSubvolText(), storage::Storage::discoverMdPVols(), storage::LvmVg::extendText(), storage::Btrfs::extendText(), storage::Volume::formatText(), storage::Partition::formatText(), storage::Md::formatText(), storage::LvmLv::formatText(), storage::Loop::formatText(), storage::Dmraid::formatText(), storage::Dmmultipath::formatText(), storage::Dm::formatText(), storage::Volume::labelText(), storage::Volume::losetupText(), storage::Volume::mountText(), storage::Tmpfs::mountText(), storage::LvmVg::reduceText(), storage::Btrfs::reduceText(), storage::Volume::removeText(), storage::Tmpfs::removeText(), storage::Partition::removeText(), storage::Nfs::removeText(), storage::MdPartCo::removeText(), storage::Md::removeText(), storage::LvmVg::removeText(), storage::LvmLv::removeText(), storage::Loop::removeText(), storage::EtcFstab::removeText(), storage::DmraidCo::removeText(), storage::Dmraid::removeText(), storage::DmPartCo::removeText(), storage::Dmmultipath::removeText(), storage::Dm::removeText(), storage::Container::removeText(), storage::Btrfs::removeText(), storage::Volume::resizeText(), storage::Partition::resizeText(), storage::LvmLv::resizeText(), storage::Dmraid::resizeText(), storage::Dmmultipath::resizeText(), storage::Disk::setDiskLabelText(), storage::Partition::setTypeText(), storage::MdPart::setTypeText(), storage::Dmraid::setTypeText(), storage::DmPart::setTypeText(), storage::Dmmultipath::setTypeText(), and storage::EtcFstab::updateText().
| static bool storage::sort_cont_down | ( | const Container * | rhs, |
| const Container * | lhs | ||
| ) | [static] |
Referenced by storage::Storage::sortCommitLists().
| static bool storage::sort_cont_up | ( | const Container * | rhs, |
| const Container * | lhs | ||
| ) | [static] |
Referenced by storage::Storage::sortCommitLists().
| static bool storage::sort_vol_create | ( | const Volume * | rhs, |
| const Volume * | lhs | ||
| ) | [static] |
Referenced by storage::Storage::sortCommitLists().
| static bool storage::sort_vol_delete | ( | const Volume * | rhs, |
| const Volume * | lhs | ||
| ) | [static] |
References DISK.
Referenced by storage::Storage::sortCommitLists().
| static bool storage::sort_vol_mount | ( | const Volume * | rhs, |
| const Volume * | lhs | ||
| ) | [static] |
Referenced by storage::Storage::sortCommitLists().
| static bool storage::sort_vol_normal | ( | const Volume * | rhs, |
| const Volume * | lhs | ||
| ) | [static] |
Referenced by storage::Storage::sortCommitLists().
| std::list< string > storage::splitString | ( | const string & | s, |
| const string & | delChars, | ||
| bool | multipleDelim, | ||
| bool | skipEmpty, | ||
| const string & | quotes | ||
| ) |
Referenced by storage::Storage::addFstabEntry(), storage::Storage::addFstabOptions(), storage::CmdDmraid::CmdDmraid(), storage::CmdDmsetup::CmdDmsetup(), storage::CmdMultipath::CmdMultipath(), storage::Volume::doFormatBtrfs(), storage::Volume::doLosetup(), storage::Volume::getFstabOpts(), storage::Volume::getLoopData(), handle_O_Features(), haveQuota(), storage::ProcMounts::isBind(), makeCrStringList(), storage::Volume::mount(), storage::Storage::mountTmp(), storage::Volume::optNoauto(), storage::Blkid::parse(), storage::Mke2fsProgressBar::process(), storage::EtcFstab::readFiles(), storage::ProcMounts::reload(), storage::Storage::removeFstabOptions(), storage::Parted::scanCylEntryLine(), storage::Parted::scanGeometryLine(), and storage::Parted::scanSectorSizeLine().
| unsigned long storage::sub_sat | ( | unsigned long | a, |
| unsigned long | b | ||
| ) | [inline] |
Referenced by storage::Disk::doCreate().
| static bool storage::toChangeId | ( | const DmPart & | d | ) | [static] |
| static bool storage::toChangeId | ( | const MdPart & | d | ) | [static] |
| const string& storage::toString | ( | EnumType | value | ) |
Referenced by storage::Partition::addUdevData(), storage::Storage::addUsedBy(), storage::Volume::allowedMountBy(), storage::Storage::changeFormatVolume(), storage::Volume::changeFstabOptions(), storage::Storage::changeMdParity(), storage::MdCo::changeMdParity(), storage::Storage::changeMdType(), storage::MdCo::changeMdType(), storage::Volume::changeMountBy(), storage::Storage::changeMountBy(), storage::Md::checkDevices(), storage::Storage::computeMdSize(), storage::Md::createCmd(), storage::Storage::createMd(), storage::MdCo::createMd(), storage::Storage::createMdAny(), storage::Storage::createPartition(), storage::MdPartCo::createPartition(), storage::DmPartCo::createPartition(), storage::Storage::createPartitionKb(), storage::Storage::createPartitionMax(), storage::Dasdview::Dasdview(), storage::Volume::defaultMountBy(), storage::Volume::detectEncryption(), storage::DmCo::detectEncryption(), storage::Disk::doCreate(), storage::Container::doCreate(), storage::Volume::doFstabUpdate(), storage::Container::doRemove(), storage::Container::doResize(), storage::Volume::fsTypeString(), storage::Storage::getAllUsedFs(), storage::Volume::getCryptsetupCmd(), storage::Volume::getFstabData(), storage::Volume::getFstabOpts(), storage::Volume::getLoopData(), storage::Storage::getMdAllowedParity(), storage::Storage::getMountBy(), storage::Storage::isUsedBy(), logDiffEnum(), makeStringList(), storage::Volume::mount(), storage::Storage::nextFreePartition(), operator<(), operator<<(), storage::PeContainer::PeContainer(), storage::Storage::removeUsedBy(), storage::Container::removeVolume(), storage::Volume::saveData(), storage::Partition::saveData(), storage::Parted::scanCylEntryLine(), storage::Storage::setCryptType(), storage::Storage::setDefaultFs(), storage::Storage::setDefaultMountBy(), storage::Volume::setDmcryptDevEnc(), storage::Volume::setEncryption(), storage::Loop::setEncryption(), storage::Volume::setFormat(), storage::Partition::setFormat(), storage::Storage::setPartitionAlignment(), storage::Storage::setUsedBy(), storage::Storage::Storage(), and storage::Md::updateData().
| bool storage::toValue | ( | const string & | str, |
| EnumType & | value, | ||
| bool | log_error = true |
||
| ) |
References y2err.
Referenced by storage::MdPartCo::getMdPartCoState(), storage::Md::getState(), storage::Storage::initialize(), storage::Storage::Storage(), and toValueWithFallback().
| EnumType storage::toValueWithFallback | ( | const string & | str, |
| EnumType | fallback, | ||
| bool | log_error = true |
||
| ) |
| string storage::udevAppendPart | ( | const string & | s, |
| unsigned | num | ||
| ) |
| string storage::udevDecode | ( | const string & | s | ) |
| string storage::udevEncode | ( | const string & | s | ) |
Referenced by storage::EtcFstab::findUuidLabel(), and storage::Volume::getFsData().
| string storage::undevDevice | ( | const string & | dev | ) |
| static bool storage::volume_ptr_sort_nr | ( | Partition *& | rhs, |
| Partition *& | lhs | ||
| ) | [static] |
| xmlNode * storage::xmlNewChild | ( | xmlNode * | node, |
| const char * | name | ||
| ) |
| xmlNode * storage::xmlNewNode | ( | const char * | name | ) |
| const string storage::app_ws = " \t\n" |
const string storage::c_type_names[] [static] |
{
"UNKNOWN", "DISK", "MD", "LOOP", "LVM", "DM", "DMRAID", "NFS", "DMMULTIPATH", "MDPART", "BTRFS", "TMPFS"
}
Referenced by StorageCallbacks::CommitErrorPopup(), and storage::Storage::getCallbackInfoPopupTheOne().
const blocxx::String storage::component = "libstorage" [static] |
const string storage::dasd_format_names[] [static] |
{
"NONE", "LDL", "CDL"
}
const char* storage::elem[] = { "crypt", "thin-pool" } [static] |
const string storage::encrypt_names[] [static] |
{
"none", "twofish256", "twofish", "twofishSL92", "luks", "unknown"
}
usr src packages BUILD yast2 storage libstorage src Enum static cc const string storage::fs_type_names[] [static] |
{
"unknown", "reiserfs", "ext2", "ext3", "ext4", "btrfs", "vfat", "xfs", "jfs", "hfs",
"ntfs-3g", "swap", "hfsplus", "nfs", "nfs4", "tmpfs", "none"
}
| const unsigned int storage::fuzz_cyl = 2 |
Referenced by storage::Disk::doCreate().
const string storage::imsm_driver_names[] [static] |
{
"UNDECIDED", "DMRAID", "MDADM"
}
Referenced by storage::Storage::getCallbackProgressBarTheOne(), and StorageCallbacks::InfoPopup().
Referenced by StorageCallbacks::ShowInstallInfo().
const string storage::md_array_state_names[] [static] |
{
"unknown", "clear", "inactive", "suspended", "readonly", "read-auto", "clean", "active",
"write-pending", "active-idle"
}
const string storage::md_parity_names[] [static] |
{
"default", "left-asymmetric", "left-symmetric", "right-asymmetric", "right-symmetric",
"parity-first", "parity-last",
"left-asymmetric-6", "left-symmetric-6", "right-asymmetric-6", "right-symmetric-6",
"parity-first-6",
"n2", "o2", "f2", "n3", "o3", "f3"
}
const string storage::md_type_names[] [static] |
{
"unknown", "raid0", "raid1", "raid5", "raid6", "raid10", "multipath"
}
const string storage::mount_by_names[] [static] |
{
"device", "uuid", "label", "id", "path"
}
const string storage::multipath_autostart_names[] [static] |
{
"UNDECIDED", "ON", "OFF"
}
const string storage::part_align_names[] [static] |
{
"optimal", "cylinder"
}
const string storage::partition_type_names[] [static] |
{
"primary", "extended", "logical", "any"
}
Referenced by storage::Storage::getCallbackYesNoPopupTheOne(), and StorageCallbacks::PasswordPopup().
Referenced by storage::Storage::getCallbackPasswordPopup(), and StorageCallbacks::ProgressBar().
const string storage::transport_names[] [static] |
{
"UNKNOWN", "SBP", "ATA", "FC", "iSCSI", "SAS", "SATA", "SPI", "USB", "FCOE"
}
const string storage::used_by_type_names[] [static] |
{
"NONE", "LVM", "MD", "MDPART", "DM", "DMRAID", "DMMULTIPATH", "BTRFS"
}
1.7.3