libstorage-ng
|
The storage namespace. More...
Classes | |
class | Aborted |
class | Actiongraph |
The actiongraph has all actions including the dependencies among them to get from one devicegraph to another. More... | |
class | ActivateCallbacks |
Other storage subsystems are activated automatically, e.g. More... | |
class | ActivateCallbacksLuks |
Specialized callbacks with a more generic parameter for LUKS activation. More... | |
class | ActivateCallbacksV3 |
Specialized callbacks with a more generic parameter for Bitlocker activation. More... | |
class | AlignError |
class | Alignment |
A class to calculate partition alignment based on hardware topology. More... | |
class | Arch |
class | Bcache |
A bcache device. More... | |
class | BcacheCset |
A bcache cache set. More... | |
class | Bitlocker |
Class for BitLocker filesystem. More... | |
class | BitlockerInfo |
Stores information about a Bitlocker device. More... | |
class | BitlockerV2 |
A BitLocker layer on a block device. More... | |
class | BlkDevice |
An abstract Block Device. More... | |
class | BlkFilesystem |
class | Btrfs |
Class to represent a btrfs filesystem https://en.wikipedia.org/wiki/Btrfs in the devicegraph. More... | |
class | BtrfsQgroup |
Class to represent a qgroup of a btrfs filesystem. More... | |
class | BtrfsQgroupNotFoundById |
class | BtrfsQgroupRelation |
Relation between btrfs quota groups. More... | |
class | BtrfsSubvolume |
Class to represent a btrfs subvolume in the devicegraph. More... | |
class | BtrfsSubvolumeNotFoundByPath |
class | Callbacks |
class | CheckCallbacks |
class | CodeLocation |
Helper class for UI exceptions: Store BASE_FILE, FUNCTION and LINE. More... | |
class | CommitCallbacks |
class | CommitCallbacksV2 |
class | CommitOptions |
class | CompoundAction |
A Compound Action groups several related actions from an actiongraph. More... | |
class | ContentInfo |
class | Dasd |
A physical DASD device. More... | |
class | DasdPt |
struct | DeactivateStatus |
class | DeactivateStatusV2 |
Provides information whether deactivate_v2() was able to deactivate subsystems. More... | |
class | Device |
An abstract base class for storage devices. More... | |
class | Devicegraph |
The main container of the libstorage-ng. More... | |
class | DevicegraphStyleCallbacks |
Style callbacks used by Devicegraph::write_graphviz(). More... | |
class | DeviceHasWrongType |
class | DeviceNotFound |
class | DeviceNotFoundByName |
class | DeviceNotFoundBySid |
class | DeviceNotFoundByUuid |
class | DifferentBlockSizes |
class | Disk |
A physical disk device. More... | |
class | DmRaid |
A DM RAID device. More... | |
class | Encryption |
An encryption layer on a blk device. More... | |
class | Environment |
class | Exception |
Base class for storage exceptions. More... | |
class | Exfat |
Class to represent an exFAT filesystem https://en.wikipedia.org/wiki/ExFAT in the devicegraph. More... | |
class | Ext |
Abstract base class for Ext2, Ext3 and Ext4. More... | |
class | Ext2 |
Class to represent an Ext2 filesystem https://en.wikipedia.org/wiki/Ext2 in the devicegraph. More... | |
class | Ext3 |
Class to represent an Ext3 filesystem https://en.wikipedia.org/wiki/Ext3 in the devicegraph. More... | |
class | Ext4 |
Class to represent an Ext4 filesystem https://en.wikipedia.org/wiki/Ext4 in the devicegraph. More... | |
class | F2fs |
Class to represent a F2FS (https://en.wikipedia.org/wiki/F2FS) in the devicegraph. More... | |
class | Filesystem |
class | FilesystemUser |
Holder from BlkDevice to a BlkFilesystem. More... | |
class | Gpt |
class | GraphStyleCallbacks |
Base class for DevicegraphStyleCallbacks and ActiongraphStyleCallbacks. More... | |
class | Holder |
An abstract base class for storage holders. More... | |
class | HolderAlreadyExists |
class | HolderHasWrongType |
class | HolderNotFound |
class | HolderNotFoundBySids |
class | ImplicitPt |
Class to represent implicit partition table. More... | |
class | IndexOutOfRangeException |
Exception class for "index out of range". More... | |
class | InvalidBlockSize |
class | InvalidChunkSize |
class | InvalidExtentSize |
class | InvalidMountPointPath |
class | InvalidStripeSize |
class | IOException |
Exception class for IO errors. More... | |
class | Iso9660 |
Class for ISO9660 filesystem. More... | |
class | Jfs |
Class to represent a JFS filesystem https://en.wikipedia.org/wiki/JFS_(file_system) in the devicegraph. More... | |
class | LockException |
Exception indicating that getting the lock failed. More... | |
class | Logger |
The Logger class. More... | |
class | LogicException |
Exception class for faulty logic within the program. More... | |
class | Luks |
An LUKS encryption layer on a block device. More... | |
class | LuksInfo |
Stores information about a LUKS device. More... | |
class | LvmLv |
A Logical Volume of the Logical Volume Manager (LVM). More... | |
class | LvmLvNotFoundByLvName |
class | LvmPv |
class | LvmVg |
A Volume Group of the Logical Volume Manager (LVM). More... | |
class | LvmVgNotFoundByVgName |
class | Md |
A MD device. More... | |
class | MdContainer |
A MD Container. More... | |
class | MdMember |
A MD member. More... | |
class | MdSubdevice |
Holder from a MdContainer to a MdMember. More... | |
class | MdUser |
Holder from a BlkDevice to an Md. More... | |
class | Mountable |
class | MountPoint |
Class to represent a mount point. More... | |
class | Msdos |
class | Multipath |
A multipath device. More... | |
class | Nfs |
Class to represent a NFS mount. More... | |
class | NfsNotFoundByServerAndPath |
class | Nilfs2 |
Class to represent a NILFS2 (https://en.wikipedia.org/wiki/NILFS2) in the devicegraph. More... | |
class | NoIntersection |
class | NotInside |
class | Ntfs |
Class to represent an NTFS filesystem https://en.wikipedia.org/wiki/NTFS in the devicegraph. More... | |
class | NullPointerException |
Exception class for generic null pointer exceptions. More... | |
class | OutOfMemoryException |
Exception class for "out of memory". More... | |
class | OverflowException |
Exception class for "overflow". More... | |
class | ParseException |
Exception class for parse errors, e.g. More... | |
class | Partition |
A partition of a Partitionable, e.g. More... | |
class | Partitionable |
class | PartitionSlot |
Number and name are only valid if one of the possible flags is true. More... | |
class | PartitionTable |
class | PlainEncryption |
An plain encryption layer on a block device. More... | |
class | Pool |
A pool represents a collection of devices. More... | |
class | PoolOutOfSpace |
Exception to report that the pool is out of space to fulfill the request. More... | |
class | ProbeCallbacks |
class | ProbeCallbacksV2 |
class | ProbeCallbacksV3 |
class | ProbeCallbacksV4 |
class | Region |
A start/length pair with a block size. More... | |
class | Reiserfs |
Class to represent a ReiserFS filesystem https://en.wikipedia.org/wiki/ReiserFS in the devicegraph. More... | |
class | RemoteCallbacks |
struct | RemoteCommand |
A result of an unnamed command: stdout + stderr + exit_code. More... | |
struct | RemoteFile |
Contents of an unnamed file (vector of lines) More... | |
class | RemoveInfo |
class | ResizeInfo |
class | Silencer |
Class to make some exceptions log-level DEBUG instead of WARNING. More... | |
struct | SimpleEtcCrypttabEntry |
A simple struct to hold the information from one line in crypttab. More... | |
struct | SimpleEtcFstabEntry |
A simple struct to hold the information from one line in fstab. More... | |
class | Snapshot |
Relationship between origin and snapshot. More... | |
class | SpaceInfo |
class | Storage |
The main entry point to libstorage. More... | |
class | StrayBlkDevice |
This class represents stray block devices. More... | |
class | Subdevice |
Generic holder from one device to a subdevice, e.g. More... | |
class | Swap |
Class to represent a swap filesystem in the devicegraph. More... | |
class | SystemInfo |
The SystemInfo class keeps various system information. More... | |
class | Tmpfs |
Class to represent a tmpfs. More... | |
class | Topology |
A class to represent hardware alignment information. More... | |
class | Udf |
Class for UDF filesystem. More... | |
class | UnsupportedException |
Exception class for unsupported features and operations. More... | |
class | User |
Generic holder from one device to another device, e.g. More... | |
class | Vfat |
Class to represent an VFAT filesystem https://en.wikipedia.org/wiki/Vfat in the devicegraph. More... | |
class | WrongNumberOfChildren |
class | WrongNumberOfHolders |
class | WrongNumberOfParents |
class | Xfs |
Class to represent an XFS filesystem https://en.wikipedia.org/wiki/Xfs in the devicegraph. More... | |
Typedefs | |
using | uf_t = uint64_t |
Type for used features. | |
typedef unsigned int | sid_t |
An integer storage ID. | |
Enumerations | |
enum | Side { LHS , RHS } |
enum class | ProbeMode { STANDARD , STANDARD_WRITE_DEVICEGRAPH , STANDARD_WRITE_MOCKUP , NONE , READ_DEVICEGRAPH , READ_MOCKUP } |
How to probe the system. | |
enum class | TargetMode { DIRECT , CHROOT , IMAGE } |
Enum with target modes. More... | |
enum | : uint32_t { RB_RESIZE_NOT_SUPPORTED_BY_DEVICE = 1 << 0 , RB_MIN_MAX_ERROR = 1 << 1 , RB_SHRINK_NOT_SUPPORTED_BY_FILESYSTEM = 1 << 2 , RB_GROW_NOT_SUPPORTED_BY_FILESYSTEM = 1 << 3 , RB_FILESYSTEM_INCONSISTENT = 1 << 4 , RB_MIN_SIZE_FOR_FILESYSTEM = 1 << 5 , RB_MAX_SIZE_FOR_FILESYSTEM = 1 << 6 , RB_FILESYSTEM_FULL = 1 << 7 , RB_NO_SPACE_BEHIND_PARTITION = 1 << 8 , RB_MIN_SIZE_FOR_PARTITION = 1 << 9 , RB_EXTENDED_PARTITION = 1 << 10 , RB_ON_IMPLICIT_PARTITION_TABLE = 1 << 11 , RB_SHRINK_NOT_SUPPORTED_FOR_LVM_LV_TYPE = 1 << 12 , RB_RESIZE_NOT_SUPPORTED_FOR_LVM_LV_TYPE = 1 << 13 , RB_NO_SPACE_IN_LVM_VG = 1 << 14 , RB_MIN_SIZE_FOR_LVM_LV = 1 << 15 , RB_MAX_SIZE_FOR_LVM_LV_THIN = 1 << 16 , RB_SHRINK_NOT_SUPPORTED_BY_MULTIDEVICE_FILESYSTEM = 1 << 17 , RB_PASSWORD_REQUIRED = 1 << 18 , RB_RESIZE_NOT_SUPPORTED_DUE_TO_SNAPSHOTS = 1 << 19 } |
Resize blockers. More... | |
enum | : uint32_t { RMB_HARDWARE = 1 << 0 , RMB_RENUMBER_ACTIVE_PARTITIONS = 1 << 1 , RMB_ON_IMPLICIT_PARTITION_TABLE = 1 << 2 } |
Remove blockers. More... | |
enum class | GraphvizFlags : unsigned int { NONE = 0 , CLASSNAME = 1 << 0 , PRETTY_CLASSNAME = 1 << 1 , NAME = 1 << 2 , SID = 1 << 3 , SIZE = 1 << 4 , ACTIVE = 1 << 5 , IN_ETC = 1 << 6 , DISPLAYNAME = 1 << 7 } |
Bitfield to control graphviz output. More... | |
enum class | UsedFeaturesDependencyType { REQUIRED , SUGGESTED } |
Enum specifying the dependency type of used features. More... | |
enum | : uint64_t { UF_EXT2 = 1 << 0 , UF_EXT3 = 1 << 1 , UF_EXT4 = 1 << 2 , UF_BTRFS = 1 << 3 , UF_XFS = 1 << 4 , UF_REISERFS = 1 << 5 , UF_SWAP = 1 << 6 , UF_NTFS = 1 << 7 , UF_VFAT = 1 << 8 , UF_NFS = 1 << 9 , UF_JFS = 1 << 10 , UF_F2FS = 1 << 23 , UF_NILFS2 = 1 << 30 , UF_EXFAT = 1 << 24 , UF_UDF = 1 << 25 , UF_BITLOCKER = 1 << 27 , UF_PLAIN_ENCRYPTION = 1 << 26 , UF_LUKS = 1 << 11 , UF_LVM = 1 << 12 , UF_MDRAID = 1 << 13 , UF_DMRAID = 1 << 14 , UF_MULTIPATH = 1 << 15 , UF_BCACHE = 1 << 16 , UF_ISCSI = 1 << 17 , UF_FCOE = 1 << 18 , UF_FC = 1 << 19 , UF_DASD = 1 << 20 , UF_PMEM = 1 << 29 , UF_NVME = 1 << 28 , UF_QUOTA = 1 << 21 , UF_SNAPSHOTS = 1 << 22 } |
enum class | View { ALL , CLASSIC , REMOVE } |
Enum with possible views on the devicegraph. More... | |
enum class | BcacheType { BACKED , FLASH_ONLY } |
Bcache types. | |
enum class | CacheMode { WRITETHROUGH , WRITEBACK , WRITEAROUND , NONE } |
The Cache mode attribute. | |
enum class | DasdType { UNKNOWN , ECKD , FBA } |
The DASD type. | |
enum class | DasdFormat { NONE , LDL , CDL } |
The layout with which the ECKD DASD was formatted. | |
enum class | Transport { UNKNOWN , SBP , ATA , FC , ISCSI , SAS , SATA , SPI , USB , FCOE , PCIE , TCP , RDMA , LOOP } |
Data Transport Layer. | |
enum class | ZoneModel { NONE , HOST_AWARE , HOST_MANAGED } |
Zone model as read from /sys. More... | |
enum class | EncryptionType { NONE , TWOFISH , TWOFISH_OLD , TWOFISH256_OLD , LUKS , LUKS1 = LUKS , UNKNOWN , LUKS2 , PLAIN , BITLOCKER } |
enum class | LvType { UNKNOWN , NORMAL , THIN_POOL , THIN , RAID , CACHE_POOL , CACHE , WRITECACHE , SNAPSHOT , MIRROR } |
LVM logical volume types, see lvs(8). More... | |
enum class | MdLevel { UNKNOWN , RAID0 , RAID1 , RAID4 , RAID5 , RAID6 , RAID10 , CONTAINER } |
MD RAID levels. | |
enum class | MdParity { DEFAULT , LEFT_ASYMMETRIC , LEFT_SYMMETRIC , RIGHT_ASYMMETRIC , RIGHT_SYMMETRIC , FIRST , LAST , LEFT_ASYMMETRIC_6 , LEFT_SYMMETRIC_6 , RIGHT_ASYMMETRIC_6 , RIGHT_SYMMETRIC_6 , FIRST_6 , NEAR_2 , OFFSET_2 , FAR_2 , NEAR_3 , OFFSET_3 , FAR_3 } |
MD parity algorithms for RAID5, RAID6 and RAID10. | |
enum class | PartitionType { PRIMARY , EXTENDED , LOGICAL } |
Enum with partition types. More... | |
enum | IdNum : unsigned int { ID_DOS12 = 0x01 , ID_DOS16 = 0x06 , ID_NTFS = 0x07 , ID_DOS32 = 0x0c , ID_EXTENDED = 0x0f , ID_DIAG = 0x12 , ID_PREP = 0x41 , ID_SWAP = 0x82 , ID_LINUX = 0x83 , ID_IRST = 0x84 , ID_LVM = 0x8e , ID_RAID = 0xfd , ID_ESP = 0xef , ID_UNKNOWN = 0x100 , ID_BIOS_BOOT , ID_WINDOWS_BASIC_DATA , ID_MICROSOFT_RESERVED , ID_LINUX_HOME , ID_LINUX_SERVER_DATA , ID_LINUX_ROOT_ARM , ID_LINUX_ROOT_AARCH64 , ID_LINUX_ROOT_PPC32 , ID_LINUX_ROOT_PPC64BE , ID_LINUX_ROOT_PPC64LE , ID_LINUX_ROOT_RISCV32 , ID_LINUX_ROOT_RISCV64 , ID_LINUX_ROOT_S390 , ID_LINUX_ROOT_S390X , ID_LINUX_ROOT_X86 , ID_LINUX_ROOT_X86_64 , ID_LINUX_USR_ARM , ID_LINUX_USR_AARCH64 , ID_LINUX_USR_PPC32 , ID_LINUX_USR_PPC64BE , ID_LINUX_USR_PPC64LE , ID_LINUX_USR_RISCV32 , ID_LINUX_USR_RISCV64 , ID_LINUX_USR_S390 , ID_LINUX_USR_S390X , ID_LINUX_USR_X86 , ID_LINUX_USR_X86_64 } |
Enum with values used as partition ids. More... | |
enum class | LinuxPartitionIdCategory { ROOT , USR } |
Enum with categories for Linux partitions. | |
enum class | PtType { UNKNOWN , LOOP , MSDOS , GPT , DASD , MAC , IMPLICIT , AIX , SUN , ATARI , BSD , AMIGA , DVH } |
Partition Table Type. | |
enum class | BtrfsRaidLevel { UNKNOWN , DEFAULT , SINGLE , DUP , RAID0 , RAID1 , RAID5 , RAID6 , RAID10 , RAID1C3 , RAID1C4 } |
Btrfs RAID levels (aka profiles) used for metadata and data. More... | |
enum class | FsType { UNKNOWN , AUTO , REISERFS , EXT2 , EXT3 , EXT4 , BTRFS , VFAT , XFS , JFS , HFS , NTFS , SWAP , HFSPLUS , NFS , NFS4 , TMPFS , ISO9660 , UDF , NILFS2 , MINIX , NTFS3G , F2FS , EXFAT , BITLOCKER , VBOXSF } |
enum class | MountByType { DEVICE , UUID , LABEL , ID , PATH , PARTUUID , PARTLABEL } |
The key by which the mount program identifies a mountable. More... | |
enum class | Color { GREEN , BLACK , RED } |
A color suggestion for commit messages. More... | |
enum class | AlignType { REQUIRED , OPTIMAL } |
enum class | AlignPolicy { ALIGN_START_AND_END = 0 , ST_DEPRECATED = 0 , ALIGN_START_KEEP_END = 1 , ST_DEPRECATED = 1 , ALIGN_START_KEEP_SIZE = 2 , ST_DEPRECATED = 2 , KEEP_START_ALIGN_END = 3 } |
enum class | LogLevel { DEBUG = 0 , MILESTONE = 1 , WARNING = 2 , ERROR = 3 } |
Enum with log levels. | |
enum | ull_hack_t { ULL_HACK } |
Functions | |
GraphvizFlags | operator| (GraphvizFlags a, GraphvizFlags b) |
GraphvizFlags | operator& (GraphvizFlags a, GraphvizFlags b) |
bool | operator&& (GraphvizFlags a, GraphvizFlags b) |
DevicegraphStyleCallbacks * | get_debug_devicegraph_style_callbacks () |
Get a DevicegraphStyleCallbacks object for debugging. | |
ActiongraphStyleCallbacks * | get_debug_actiongraph_style_callbacks () |
Get a ActiongraphStyleCallbacks object for debugging. | |
std::vector< SimpleEtcCrypttabEntry > | read_simple_etc_crypttab (const std::string &filename) |
Read a crypttab file. | |
std::vector< SimpleEtcFstabEntry > | read_simple_etc_fstab (const std::string &filename) |
Read a fstab file. | |
std::string | get_used_features_dependency_type_name (UsedFeaturesDependencyType used_features_dependency_type) |
Convert the UsedFeaturesDependencyType used_features_dependency_type to a string. | |
std::string | get_used_features_names (uf_t used_features) |
Return a string with the names of the used features. | |
const char * | get_version_string () |
Return LIBSTORAGE_NG_VERSION_STRING libstorage-ng was compiled with. | |
std::string | get_bcache_type_name (BcacheType bcache_type) |
Convert the BcacheType bcache_type to a string. | |
std::string | get_cache_mode_name (CacheMode cache_mode) |
Convert the CacheMode cache_mode to a string. | |
bool | is_bcache (const Device *device) |
Checks whether device points to a Bcache. | |
Bcache * | to_bcache (Device *device) |
Converts pointer to Device to pointer to Bcache. | |
const Bcache * | to_bcache (const Device *device) |
Converts pointer to Device to pointer to Bcache. | |
bool | is_bcache_cset (const Device *device) |
Checks whether device points to a BcacheCset. | |
BcacheCset * | to_bcache_cset (Device *device) |
Converts pointer to Device to pointer to BcacheCset. | |
const BcacheCset * | to_bcache_cset (const Device *device) |
Converts pointer to Device to pointer to BcacheCset. | |
bool | is_bitlocker_v2 (const Device *device) |
Checks whether device points to a BitlockerV2. | |
BitlockerV2 * | to_bitlocker_v2 (Device *device) |
Converts pointer to Device to pointer to BitlockerV2. | |
const BitlockerV2 * | to_bitlocker_v2 (const Device *device) |
Converts pointer to Device to pointer to BitlockerV2. | |
bool | is_blk_device (const Device *device) |
Checks whether device points to an BlkDevice. | |
BlkDevice * | to_blk_device (Device *device) |
Converts pointer to Device to pointer to BlkDevice. | |
const BlkDevice * | to_blk_device (const Device *device) |
Converts pointer to Device to pointer to BlkDevice. | |
std::string | get_dasd_type_name (DasdType dasd_type) |
Convert the DASD type dasd_type to a string. | |
std::string | get_dasd_format_name (DasdFormat dasd_format) |
Convert the DASD format dasd_format to a string. | |
bool | is_dasd (const Device *device) |
Checks whether device points to a Dasd. | |
Dasd * | to_dasd (Device *device) |
Converts pointer to Device to pointer to Dasd. | |
const Dasd * | to_dasd (const Device *device) |
Converts pointer to Device to pointer to Dasd. | |
bool | is_dasd_pt (const Device *device) |
Checks whether device points to a DasdPt. | |
DasdPt * | to_dasd_pt (Device *device) |
Converts pointer to Device to pointer to DasdPt. | |
const DasdPt * | to_dasd_pt (const Device *device) |
Converts pointer to Device to pointer to DasdPt. | |
std::string | get_transport_name (Transport transport) |
Convert the Transport transport to a string. | |
std::string | get_zone_model_name (ZoneModel zone_model) |
Convert the ZoneModel zone_model to a string. | |
bool | is_disk (const Device *device) |
Checks whether device points to a Disk. | |
Disk * | to_disk (Device *device) |
Converts pointer to Device to pointer to Disk. | |
const Disk * | to_disk (const Device *device) |
Converts pointer to Device to pointer to Disk. | |
bool | is_dm_raid (const Device *device) |
Checks whether device points to a DmRaid. | |
DmRaid * | to_dm_raid (Device *device) |
Converts pointer to Device to pointer to DmRaid. | |
const DmRaid * | to_dm_raid (const Device *device) |
Converts pointer to Device to pointer to DmRaid. | |
std::string | get_encryption_type_name (EncryptionType encryption_type) |
Convert the EncryptionType encryption_type to a string. | |
bool | is_encryption (const Device *device) |
Checks whether device points to an Encryption. | |
Encryption * | to_encryption (Device *device) |
Converts pointer to Device to pointer to Encryption. | |
const Encryption * | to_encryption (const Device *device) |
Converts pointer to Device to pointer to Encryption. | |
bool | is_gpt (const Device *device) |
Checks whether device points to a Gpt. | |
Gpt * | to_gpt (Device *device) |
Converts pointer to Device to pointer to Gpt. | |
const Gpt * | to_gpt (const Device *device) |
Converts pointer to Device to pointer to Gpt. | |
bool | is_implicit_pt (const Device *device) |
Checks whether device points to a ImplicitPt. | |
ImplicitPt * | to_implicit_pt (Device *device) |
Converts pointer to Device to pointer to ImplicitPt. | |
const ImplicitPt * | to_implicit_pt (const Device *device) |
Converts pointer to Device to pointer to ImplicitPt. | |
bool | is_luks (const Device *device) |
Checks whether device points to a Luks. | |
Luks * | to_luks (Device *device) |
Converts pointer to Device to pointer to Luks. | |
const Luks * | to_luks (const Device *device) |
Converts pointer to Device to pointer to Luks. | |
std::string | get_lv_type_name (LvType lv_type) |
Convert LvType to string. | |
bool | is_lvm_lv (const Device *device) |
Checks whether device points to a LvmLv. | |
LvmLv * | to_lvm_lv (Device *device) |
Converts pointer to Device to pointer to LvmLv. | |
const LvmLv * | to_lvm_lv (const Device *device) |
Converts pointer to Device to pointer to LvmLv. | |
bool | is_lvm_pv (const Device *device) |
Checks whether device points to a LvmPv. | |
LvmPv * | to_lvm_pv (Device *device) |
Converts pointer to Device to pointer to LvmPv. | |
const LvmPv * | to_lvm_pv (const Device *device) |
Converts pointer to Device to pointer to LvmPv. | |
bool | is_lvm_vg (const Device *device) |
Checks whether device points to a LvmVg. | |
LvmVg * | to_lvm_vg (Device *device) |
Converts pointer to Device to pointer to LvmVg. | |
const LvmVg * | to_lvm_vg (const Device *device) |
Converts pointer to Device to pointer to LvmVg. | |
std::string | get_md_level_name (MdLevel md_level) |
Convert the MD RAID level md_level to a string. | |
std::string | get_md_parity_name (MdParity md_parity) |
Convert the MD parity algorithm md_parity to a string. | |
bool | is_md (const Device *device) |
Checks whether device points to a Md. | |
Md * | to_md (Device *device) |
Converts pointer to Device to pointer to Md. | |
const Md * | to_md (const Device *device) |
Converts pointer to Device to pointer to Md. | |
bool | is_md_container (const Device *device) |
Checks whether device points to an MdContainer. | |
MdContainer * | to_md_container (Device *device) |
Converts pointer to Device to pointer to MdContainer. | |
const MdContainer * | to_md_container (const Device *device) |
Converts pointer to Device to pointer to MdContainer. | |
bool | is_md_member (const Device *device) |
Checks whether device points to a MdMember. | |
MdMember * | to_md_member (Device *device) |
Converts pointer to Device to pointer to MdMember. | |
const MdMember * | to_md_member (const Device *device) |
Converts pointer to Device to pointer to MdMember. | |
bool | is_msdos (const Device *device) |
Checks whether device points to an Msdos. | |
Msdos * | to_msdos (Device *device) |
Converts pointer to Device to pointer to Msdos. | |
const Msdos * | to_msdos (const Device *device) |
Converts pointer to Device to pointer to Msdos. | |
bool | is_multipath (const Device *device) |
Checks whether device points to a Multipath. | |
Multipath * | to_multipath (Device *device) |
Converts pointer to Device to pointer to Multipath. | |
const Multipath * | to_multipath (const Device *device) |
Converts pointer to Device to pointer to Multipath. | |
std::string | get_partition_type_name (PartitionType partition_type) |
Convert the PartitionType partition_type to a string. | |
std::string | get_partition_id_name (IdNum partition_id) |
Convert the IdNum partition_id to a string. | |
bool | is_linux_partition_id (IdNum id) |
Check whether the id is a Linux partition id. | |
bool | is_linux_partition_id (IdNum id, LinuxPartitionIdCategory linux_partition_id_category) |
Check whether the id is a Linux partition id of the specified category. | |
IdNum | get_linux_partition_id (LinuxPartitionIdCategory linux_partition_id_category, SystemInfo &system_info) |
Get the partition id for the Linux partition of the given category (root, usr, ...) depending on the architecture. | |
bool | is_partition (const Device *device) |
Checks whether device points to a Partition. | |
Partition * | to_partition (Device *device) |
Converts pointer to Device to pointer to Partition. | |
const Partition * | to_partition (const Device *device) |
Converts pointer to Device to pointer to Partition. | |
bool | is_partitionable (const Device *device) |
Checks whether device points to a Partitionable. | |
Partitionable * | to_partitionable (Device *device) |
Converts pointer to Device to pointer to Partitionable. | |
const Partitionable * | to_partitionable (const Device *device) |
Converts pointer to Device to pointer to Partitionable. | |
std::string | get_pt_type_name (PtType pt_type) |
Convert the PtType pt_type to a string. | |
bool | is_partition_table (const Device *device) |
Checks whether device points to a PartitionTable. | |
PartitionTable * | to_partition_table (Device *device) |
Converts pointer to Device to pointer to PartitionTable. | |
const PartitionTable * | to_partition_table (const Device *device) |
Converts pointer to Device to pointer to PartitionTable. | |
bool | is_plain_encryption (const Device *device) |
Checks whether device points to a PlainEncryption. | |
PlainEncryption * | to_plain_encryption (Device *device) |
Converts pointer to Device to pointer to PlainEncryption. | |
const PlainEncryption * | to_plain_encryption (const Device *device) |
Converts pointer to Device to pointer to PlainEncryption. | |
bool | is_stray_blk_device (const Device *device) |
Checks whether device points to a StrayBlkDevice. | |
StrayBlkDevice * | to_stray_blk_device (Device *device) |
Converts pointer to Device to pointer to StrayBlkDevice. | |
const StrayBlkDevice * | to_stray_blk_device (const Device *device) |
Converts pointer to Device to pointer to StrayBlkDevice. | |
bool | is_bitlocker (const Device *device) |
Checks whether device points to an Bitlocker. | |
Bitlocker * | to_bitlocker (Device *device) |
Converts pointer to Device to pointer to Bitlocker. | |
const Bitlocker * | to_bitlocker (const Device *device) |
Converts pointer to Device to pointer to Bitlocker. | |
bool | is_blk_filesystem (const Device *device) |
Checks whether device points to a BlkFilesystem. | |
BlkFilesystem * | to_blk_filesystem (Device *device) |
Converts pointer to Device to pointer to BlkFilesystem. | |
const BlkFilesystem * | to_blk_filesystem (const Device *device) |
Converts pointer to Device to pointer to BlkFilesystem. | |
std::string | get_btrfs_raid_level_name (BtrfsRaidLevel btrfs_raid_level) |
Convert the btrfs RAID level btrfs_raid_level to a string. | |
bool | is_btrfs (const Device *device) |
Checks whether device points to a Btrfs. | |
Btrfs * | to_btrfs (Device *device) |
Converts pointer to Device to pointer to Btrfs. | |
const Btrfs * | to_btrfs (const Device *device) |
Converts pointer to Device to pointer to Btrfs. | |
bool | is_btrfs_qgroup (const Device *device) |
Checks whether device points to a Btrfs. | |
BtrfsQgroup * | to_btrfs_qgroup (Device *device) |
Converts pointer to Device to pointer to Btrfs. | |
const BtrfsQgroup * | to_btrfs_qgroup (const Device *device) |
Converts pointer to Device to pointer to Btrfs. | |
bool | is_btrfs_subvolume (const Device *device) |
Checks whether device points to a BtrfsSubvolume. | |
BtrfsSubvolume * | to_btrfs_subvolume (Device *device) |
Converts pointer to Device to pointer to BtrfsSubvolume. | |
const BtrfsSubvolume * | to_btrfs_subvolume (const Device *device) |
Converts pointer to Device to pointer to BtrfsSubvolume. | |
bool | is_exfat (const Device *device) |
Checks whether device points to an Exfat. | |
Exfat * | to_exfat (Device *device) |
Converts pointer to Device to pointer to Exfat. | |
const Exfat * | to_exfat (const Device *device) |
Converts pointer to Device to pointer to Exfat. | |
bool | is_ext (const Device *device) |
Checks whether device points to an Ext. | |
Ext * | to_ext (Device *device) |
Converts pointer to Device to pointer to Ext. | |
const Ext * | to_ext (const Device *device) |
Converts pointer to Device to pointer to Ext. | |
bool | is_ext2 (const Device *device) |
Checks whether device points to an Ext2. | |
Ext2 * | to_ext2 (Device *device) |
Converts pointer to Device to pointer to Ext2. | |
const Ext2 * | to_ext2 (const Device *device) |
Converts pointer to Device to pointer to Ext2. | |
bool | is_ext3 (const Device *device) |
Checks whether device points to an Ext3. | |
Ext3 * | to_ext3 (Device *device) |
Converts pointer to Device to pointer to Ext3. | |
const Ext3 * | to_ext3 (const Device *device) |
Converts pointer to Device to pointer to Ext3. | |
bool | is_ext4 (const Device *device) |
Checks whether device points to an Ext4. | |
Ext4 * | to_ext4 (Device *device) |
Converts pointer to Device to pointer to Ext4. | |
const Ext4 * | to_ext4 (const Device *device) |
Converts pointer to Device to pointer to Ext4. | |
bool | is_f2fs (const Device *device) |
Checks whether device points to a F2fs. | |
F2fs * | to_f2fs (Device *device) |
Converts pointer to Device to pointer to F2fs. | |
const F2fs * | to_f2fs (const Device *device) |
Converts pointer to Device to pointer to F2fs. | |
bool | is_filesystem (const Device *device) |
Checks whether device points to a Filesystem. | |
Filesystem * | to_filesystem (Device *device) |
Converts pointer to Device to pointer to Filesystem. | |
const Filesystem * | to_filesystem (const Device *device) |
Converts pointer to Device to pointer to Filesystem. | |
bool | is_iso9660 (const Device *device) |
Checks whether device points to a Iso9660. | |
Iso9660 * | to_iso9660 (Device *device) |
Converts pointer to Device to pointer to Iso9660. | |
const Iso9660 * | to_iso9660 (const Device *device) |
Converts pointer to Device to pointer to Iso9660. | |
bool | is_jfs (const Device *device) |
Checks whether device points to a Jfs. | |
Jfs * | to_jfs (Device *device) |
Converts pointer to Device to pointer to Jfs. | |
const Jfs * | to_jfs (const Device *device) |
Converts pointer to Device to pointer to Jfs. | |
std::string | get_fs_type_name (FsType fs_type) |
Convert the FsType fs_type to a string. | |
std::string | get_mount_by_name (MountByType mount_by_type) |
Convert the MountByType mount_by_type to a string. | |
bool | is_mountable (const Device *device) |
Checks whether device points to a Mountable. | |
Mountable * | to_mountable (Device *device) |
Converts pointer to Device to pointer to Mountable. | |
const Mountable * | to_mountable (const Device *device) |
Converts pointer to Device to pointer to Mountable. | |
bool | is_mount_point (const Device *device) |
Checks whether device points to a MountPoint. | |
MountPoint * | to_mount_point (Device *device) |
Converts pointer to Device to pointer to Mountpoint. | |
const MountPoint * | to_mount_point (const Device *device) |
Converts pointer to Device to pointer to Mountpoint. | |
bool | is_nfs (const Device *device) |
Checks whether device points to a Nfs. | |
Nfs * | to_nfs (Device *device) |
Converts pointer to Device to pointer to Nfs. | |
const Nfs * | to_nfs (const Device *device) |
Converts pointer to Device to pointer to Nfs. | |
bool | is_nilfs2 (const Device *device) |
Checks whether device points to a Nilfs2. | |
Nilfs2 * | to_nilfs2 (Device *device) |
Converts pointer to Device to pointer to Nilfs2. | |
const Nilfs2 * | to_nilfs2 (const Device *device) |
Converts pointer to Device to pointer to Nilfs2. | |
bool | is_ntfs (const Device *device) |
Checks whether device points to a Ntfs. | |
Ntfs * | to_ntfs (Device *device) |
Converts pointer to Device to pointer to Ntfs. | |
const Ntfs * | to_ntfs (const Device *device) |
Converts pointer to Device to pointer to Ntfs. | |
bool | is_reiserfs (const Device *device) |
Checks whether device points to an Reiserfs. | |
Reiserfs * | to_reiserfs (Device *device) |
Converts pointer to Device to pointer to Reiserfs. | |
const Reiserfs * | to_reiserfs (const Device *device) |
Converts pointer to Device to pointer to Reiserfs. | |
bool | is_swap (const Device *device) |
Checks whether device points to an Swap. | |
Swap * | to_swap (Device *device) |
Converts pointer to Device to pointer to Swap. | |
const Swap * | to_swap (const Device *device) |
Converts pointer to Device to pointer to Swap. | |
bool | is_tmpfs (const Device *device) |
Checks whether device points to a Tmpfs. | |
Tmpfs * | to_tmpfs (Device *device) |
Converts pointer to Device to pointer to Tmpfs. | |
const Tmpfs * | to_tmpfs (const Device *device) |
Converts pointer to Device to pointer to Tmpfs. | |
bool | is_udf (const Device *device) |
Checks whether device points to an Udf. | |
Udf * | to_udf (Device *device) |
Converts pointer to Device to pointer to Udf. | |
const Udf * | to_udf (const Device *device) |
Converts pointer to Device to pointer to Udf. | |
bool | is_vfat (const Device *device) |
Checks whether device points to a Vfat. | |
Vfat * | to_vfat (Device *device) |
Converts pointer to Device to pointer to Vfat. | |
const Vfat * | to_vfat (const Device *device) |
Converts pointer to Device to pointer to Vfat. | |
bool | is_xfs (const Device *device) |
Checks whether device points to a Xfs. | |
Xfs * | to_xfs (Device *device) |
Converts pointer to Device to pointer to Xfs. | |
const Xfs * | to_xfs (const Device *device) |
Converts pointer to Device to pointer to Xfs. | |
bool | is_btrfs_qgroup_relation (const Holder *holder) |
Checks whether holder points to a BtrfsQgroupRelation. | |
BtrfsQgroupRelation * | to_btrfs_qgroup_relation (Holder *holder) |
Converts pointer to Holder to pointer to BtrfsQgroupRelation. | |
const BtrfsQgroupRelation * | to_btrfs_qgroup_relation (const Holder *holder) |
Converts pointer to Holder to pointer to BtrfsQgroupRelation. | |
bool | is_filesystem_user (const Holder *holder) |
Checks whether holder points to a FilesystemUser. | |
FilesystemUser * | to_filesystem_user (Holder *holder) |
Converts pointer to Holder to pointer to FilesystemUser. | |
const FilesystemUser * | to_filesystem_user (const Holder *holder) |
Converts pointer to Holder to pointer to FilesystemUser. | |
bool | is_md_subdevice (const Holder *holder) |
Checks whether holder points to an MdSubdevice. | |
MdSubdevice * | to_md_subdevice (Holder *holder) |
Converts pointer to Holder to pointer to MdSubdevice. | |
const MdSubdevice * | to_md_subdevice (const Holder *holder) |
Converts pointer to Holder to pointer to MdSubdevice. | |
bool | is_md_user (const Holder *holder) |
Checks whether holder points to a MdUser. | |
MdUser * | to_md_user (Holder *holder) |
Converts pointer to Holder to pointer to MdUser. | |
const MdUser * | to_md_user (const Holder *holder) |
Converts pointer to Holder to pointer to MdUser. | |
bool | is_snapshot (const Holder *holder) |
Checks whether holder points to a Snapshot. | |
Snapshot * | to_snapshot (Holder *holder) |
Converts pointer to Holder to pointer to Snapshot. | |
const Snapshot * | to_snapshot (const Holder *holder) |
Converts pointer to Holder to pointer to Snapshot. | |
bool | is_subdevice (const Holder *holder) |
Checks whether holder points to a Subdevice. | |
Subdevice * | to_subdevice (Holder *holder) |
Converts pointer to Holder to pointer to Subdevice. | |
const Subdevice * | to_subdevice (const Holder *holder) |
Converts pointer to Holder to pointer to User. | |
bool | is_user (const Holder *holder) |
Checks whether holder points to an User. | |
User * | to_user (Holder *holder) |
Converts pointer to Holder to pointer to User. | |
const User * | to_user (const Holder *holder) |
Converts pointer to Holder to pointer to User. | |
std::string | get_string (const Actiongraph *actiongraph, const Action::Base *action) |
Get the commit message of an action. | |
Color | get_color (const Actiongraph *actiongraph, const Action::Base *action) |
Get the color for the commit message of an action. | |
bool | is_create (const Action::Base *action) |
Checks whether action points to an Action::Create. | |
bool | is_delete (const Action::Base *action) |
Checks whether action points to an Action::Delete. | |
bool | is_modify (const Action::Base *action) |
Checks whether action points to an Action::Modify. | |
std::ostream & | operator<< (std::ostream &str, const CodeLocation &obj) |
CodeLocation stream output. | |
std::ostream & | operator<< (std::ostream &str, const Exception &obj) |
Exception stream output. | |
int | num_suffixes () |
Return number of suffixes. | |
std::string | get_suffix (int i, bool classic) |
Return a suffix. | |
std::string | byte_to_humanstring (unsigned long long size, bool classic, int precision, bool omit_zeroes) |
Return a pretty description of a size with required precision and using B, KiB, MiB, GiB, TiB, PiB or EiB as unit as appropriate. | |
unsigned long long | humanstring_to_byte (const std::string &str, bool classic) |
Converts a size description using B, KiB, KB, MiB, MB, GiB, GB, TiB, TB, PiB, PB, EiB or EB into an integer. | |
bool | light_probe () |
This function does some very light probing and returns true iff some disks or DASDs were found in the system. | |
Logger * | get_logger () |
Get the current logger object. | |
void | set_logger (Logger *logger) |
Set the current logger object. | |
Logger * | get_stdout_logger () |
Returns a Logger that logs to stdout. | |
Logger * | get_logfile_logger (const std::string &filename="/var/log/libstorage.log") |
Returns a Logger that logs to the standard libstorage log file ("/var/log/libstorage.log") or to a given file. | |
const RemoteCallbacks * | get_remote_callbacks () |
void | set_remote_callbacks (const RemoteCallbacks *remote_callbacks) |
std::ostream & | operator<< (std::ostream &s, const Arch &arch) |
Variables | |
const unsigned long long | B = 1 |
Abbreviation for byte. | |
const unsigned long long | KiB = 1024 * B |
Abbreviation for kibibyte. | |
const unsigned long long | MiB = 1024 * KiB |
Abbreviation for mebibyte. | |
const unsigned long long | GiB = 1024 * MiB |
Abbreviation for gibibyte. | |
const unsigned long long | TiB = 1024 * GiB |
Abbreviation for tebibyte. | |
const unsigned long long | PiB = 1024 * TiB |
Abbreviation for pebibyte. | |
const unsigned long long | EiB = 1024 * PiB |
Abbreviation for exbibyte. | |
The storage namespace.
typedef unsigned int storage::sid_t |
An integer storage ID.
The storage id (sid) is used to identify devices. The sid is copied when copying the device graph. When adding a device it gets a unique sid (across all device graphs). By using the storage id instead of a device name we can easily identify devices where the device name changed, e.g. renumbered logical partitions or renamed logical volumes. Also some devices do not have a intrinsic device name, e.g. btrfs. We could even have objects for unused space, e.g. space between partitions or unallocated space of a volume group.
Whenever possible use the storage id to find objects instead of e.g. the name since only the storage id guarantees uniqueness.
anonymous enum : uint32_t |
Resize blockers.
Some resize operations are not supported by the system (e.g. shrink LVM thin pool) while others are not supported by the library (e.g. resize extended partition).
Enumerator | |
---|---|
RB_RESIZE_NOT_SUPPORTED_BY_DEVICE | The device or one of its descendants that also needs resizing does not support resizing. This is the case for Disks, Dasds, Mds, DmRaids, Multipaths, PartitionTables, LvmVgs, Bcaches, BcacheCsets, BtrfsSubvolumes, Nfses MountPoints, so basically everything except Partitions, LvmLvs and Lukses. Blocks shrink and grow. |
RB_MIN_MAX_ERROR | Several limitations were combined, e.g. limitations from partition and filesystem, and the result does not allow any resize. Blocks shrink and grow. |
RB_SHRINK_NOT_SUPPORTED_BY_FILESYSTEM | The filesystem does not support shrink. Blocks shrink. |
RB_GROW_NOT_SUPPORTED_BY_FILESYSTEM | The filesystem does not support grow. Blocks grow. |
RB_FILESYSTEM_INCONSISTENT | The filesystem seems to be inconsistent or checking filesystem consistency failed. Blocks shrink and grow. |
RB_MIN_SIZE_FOR_FILESYSTEM | The filesystem has already the minimal possible size. Blocks shrink. |
RB_MAX_SIZE_FOR_FILESYSTEM | The filesystem has already the maximal possible size. Blocks grow. |
RB_FILESYSTEM_FULL | The filesystem is full and cannot be shrunk. Blocks shrink. |
RB_NO_SPACE_BEHIND_PARTITION | No space behind partition. There can be several reasons: 1. other partition, 2. end of disk, 3. end of extended partition, 4. space not addressable by partition table. Blocks grow. |
RB_MIN_SIZE_FOR_PARTITION | The partition has already the minimal possible size. Blocks shrink. |
RB_EXTENDED_PARTITION | Extended partitions cannot be resized. Blocks shrink and grow. |
RB_ON_IMPLICIT_PARTITION_TABLE | Partition on an implicit partition table cannot be resized. Blocks shrink and grow. |
RB_SHRINK_NOT_SUPPORTED_FOR_LVM_LV_TYPE | Shrink of LVM logical volume of this type not supported, e.g. thin pools and RAIDs. Blocks shrink. |
RB_RESIZE_NOT_SUPPORTED_FOR_LVM_LV_TYPE | Resize of LVM logical volume of this type not supported, e.g. RAIDs. Blocks shrink and grow. |
RB_NO_SPACE_IN_LVM_VG | No space left in LVM volume group. Blocks grow. |
RB_MIN_SIZE_FOR_LVM_LV | The LVM logical volume has already the minimal possible size. Blocks shrink. |
RB_MAX_SIZE_FOR_LVM_LV_THIN | LVM thin logical volume has already maximal size. Blocks grow. |
RB_SHRINK_NOT_SUPPORTED_BY_MULTIDEVICE_FILESYSTEM | Multi-device filesystems (i.e., Btrfs) do not support shrink. Blocks shrink. |
RB_PASSWORD_REQUIRED | The encryption password is required. |
RB_RESIZE_NOT_SUPPORTED_DUE_TO_SNAPSHOTS | Resize of LVM logical volume is not supported since it has snapshots. Blocks shrink and grow. |
anonymous enum : uint32_t |
Remove blockers.
Some remove operations are not supported (e.g. remove a disk or DASD). Some are not supported by the library (e.g. remove a partition if that causes renumbering of active partition).
Be careful: Temporarily deactivating e.g. a mount point with the aim of getting rid of the blocker will result in failures later on.
Enumerator | |
---|---|
RMB_HARDWARE | The device corresponds to hardware, e.g. a disks, DASDs, multipath devices or BIOS RAIDs. |
RMB_RENUMBER_ACTIVE_PARTITIONS | Removing the partition would result in renumbering of partitions with active stuff on them. |
RMB_ON_IMPLICIT_PARTITION_TABLE | Partition on an implicit partition table cannot be removed - at least not without creating a partition table. |
|
strong |
|
strong |
|
strong |
Btrfs RAID levels (aka profiles) used for metadata and data.
|
strong |
A color suggestion for commit messages.
In general the color is green for action that create, mount or activate something, red for action that delete, unmount or deactivate something and black otherwise.
The color of an action is not set in stone and may change in the future. It must only be used to displaying messages. Not for any other logic!
|
strong |
Bitfield to control graphviz output.
Not all flags apply to all graphs or all objects (devices, holders and actions).
enum storage::IdNum : unsigned int |
Enum with values used as partition ids.
For MS-DOS the value of the enum is equal to the partition type byte. For GPT, DASD and Implicit the value has no special meaning.
For MS-DOS any value between 0 and 255 is possible, while for the other partition tables only those specified are possible.
For details about the ids see e.g. https://en.wikipedia.org/wiki/Partition_type, https://en.wikipedia.org/wiki/GUID_Partition_Table and https://uapi-group.org/specifications/specs/discoverable_partitions_specification/.
Enumerator | |
---|---|
ID_DOS12 | Only for MS-DOS. |
ID_DOS16 | Only for MS-DOS. |
ID_NTFS | Only for MS-DOS. |
ID_DOS32 | Only for MS-DOS. |
ID_EXTENDED | Only for MS-DOS. |
ID_DIAG | For MS-DOS and GPT. |
ID_PREP | PPC PReP Boot partition, for MS-DOS and GPT. |
ID_SWAP | Swap partition, for MS-DOS, GPT and DASD. |
ID_LINUX | For MS-DOS, GPT, DASD and implicit. Unfortunately with old parted versions this is the fallback for unknown ids on GPT. |
ID_IRST | Intel Rapid Start Technology, for MS-DOS and GPT. |
ID_LVM | LVM partition, for MS-DOS, GPT and DASD. |
ID_RAID | RAID partition, for MS-DOS, GPT and DASD. |
ID_ESP | EFI System Partition, for MS-DOS and GPT. |
ID_UNKNOWN | Only set during probing. For MS-DOS, GPT, DASD and implicit. |
ID_BIOS_BOOT | BIOS boot partition (https://en.wikipedia.org/wiki/BIOS_boot_partition), only for GPT. |
ID_WINDOWS_BASIC_DATA | Windows basic data partition, only for GPT. |
ID_MICROSOFT_RESERVED | Microsoft reserved partition, only for GPT. |
ID_LINUX_HOME | Linux Home, only for GPT. Requires parted 3.5 or higher. |
ID_LINUX_SERVER_DATA | Linux Server Data, only for GPT. Requires SUSE parted 3.5 or higher. |
ID_LINUX_ROOT_ARM | Linux Root Partition (arm), only for GPT. Requires SUSE parted 3.5 or higher. |
ID_LINUX_ROOT_AARCH64 | Linux Root Partition (aarch64), only for GPT. Requires SUSE parted 3.5 or higher. |
ID_LINUX_ROOT_PPC32 | Linux Root Partition (ppc), only for GPT. Requires SUSE parted 3.5 or higher. |
ID_LINUX_ROOT_PPC64BE | Linux Root Partition (ppc64be), only for GPT. Requires SUSE parted 3.5 or higher. |
ID_LINUX_ROOT_PPC64LE | Linux Root Partition (ppc64le), only for GPT. Requires SUSE parted 3.5 or higher. |
ID_LINUX_ROOT_RISCV32 | Linux Root Partition (riscv32, only for GPT. Requires SUSE parted 3.5 or higher. |
ID_LINUX_ROOT_RISCV64 | Linux Root Partition (riscv64), only for GPT. Requires SUSE parted 3.5 or higher. |
ID_LINUX_ROOT_S390 | Linux Root Partition (s390), only for GPT. Requires SUSE parted 3.5 or higher. |
ID_LINUX_ROOT_S390X | Linux Root Partition (s390x), only for GPT. Requires SUSE parted 3.5 or higher. |
ID_LINUX_ROOT_X86 | Linux Root Partition (x86), only for GPT. Requires SUSE parted 3.5 or higher. |
ID_LINUX_ROOT_X86_64 | Linux Root Partition (x86_64), only for GPT. Requires SUSE parted 3.5 or higher. |
ID_LINUX_USR_ARM | Linux USR Partition (arm), only for GPT. Requires SUSE parted 3.5 or higher. |
ID_LINUX_USR_AARCH64 | Linux USR Partition (aarch64), only for GPT. Requires SUSE parted 3.5 or higher. |
ID_LINUX_USR_PPC32 | Linux USR Partition (ppc), only for GPT. Requires SUSE parted 3.5 or higher. |
ID_LINUX_USR_PPC64BE | Linux USR Partition (ppc64be), only for GPT. Requires SUSE parted 3.5 or higher. |
ID_LINUX_USR_PPC64LE | Linux USR Partition (ppc64le), only for GPT. Requires SUSE parted 3.5 or higher. |
ID_LINUX_USR_RISCV32 | Linux USR Partition (riscv32), only for GPT. Requires SUSE parted 3.5 or higher. |
ID_LINUX_USR_RISCV64 | Linux USR Partition (riscv64), only for GPT. Requires SUSE parted 3.5 or higher. |
ID_LINUX_USR_S390 | Linux USR Partition (s390), only for GPT. Requires SUSE parted 3.5 or higher. |
ID_LINUX_USR_S390X | Linux USR Partition (s390x), only for GPT. Requires SUSE parted 3.5 or higher. |
ID_LINUX_USR_X86 | Linux USR Partition (x86), only for GPT. Requires SUSE parted 3.5 or higher. |
ID_LINUX_USR_X86_64 | Linux USR Partition (x86_64), only for GPT. Requires SUSE parted 3.5 or higher. |
|
strong |
LVM logical volume types, see lvs(8).
|
strong |
The key by which the mount program identifies a mountable.
Some types address the filesystem while others address the underlying device.
Enumerator | |
---|---|
DEVICE | The kernel device name or a link in /dev (but not in /dev/disk). For NFS the server and path. |
UUID | Filesystem UUID. |
LABEL | Filesystem label. |
ID | One of the links in /dev/disk/by-id. |
PATH | One of the links in /dev/disk/by-path. |
PARTUUID | Partition UUID, only for partitions on GPT. Experimental. |
PARTLABEL | Partition label, only for partitions on GPT. Experimental. |
|
strong |
|
strong |
|
strong |
|
strong |
Enum with possible views on the devicegraph.
Enumerator | |
---|---|
ALL | All devices and holders are visible. The resulting devicegraph is a directed graph. |
CLASSIC | The classical view. Devices of type BtrfsQgroup and holders of type Snapshot and BtrfsQgroupRelation are not visible. The resulting devicegraph is a directed acyclic graph. |
REMOVE | A special view for removing devices. This view is useful when removing descendants. When removing a normal logical volume with snapshots the snapshots must also be removed. When removing a thin logical volume the snapshots can stay. This view implements this behaviour. The resulting devicegraph is a directed acyclic graph. |
|
strong |
Zone model as read from /sys.
std::string storage::byte_to_humanstring | ( | unsigned long long | size, |
bool | classic, | ||
int | precision, | ||
bool | omit_zeroes | ||
) |
Return a pretty description of a size with required precision and using B, KiB, MiB, GiB, TiB, PiB or EiB as unit as appropriate.
Supported range is 0 B to (16 EiB - 1 B).
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 |
std::string storage::get_bcache_type_name | ( | BcacheType | bcache_type | ) |
Convert the BcacheType bcache_type to a string.
std::string storage::get_btrfs_raid_level_name | ( | BtrfsRaidLevel | btrfs_raid_level | ) |
Convert the btrfs RAID level btrfs_raid_level to a string.
std::string storage::get_cache_mode_name | ( | CacheMode | cache_mode | ) |
Convert the CacheMode cache_mode to a string.
Color storage::get_color | ( | const Actiongraph * | actiongraph, |
const Action::Base * | action | ||
) |
Get the color for the commit message of an action.
std::string storage::get_dasd_format_name | ( | DasdFormat | dasd_format | ) |
Convert the DASD format dasd_format to a string.
std::string storage::get_dasd_type_name | ( | DasdType | dasd_type | ) |
Convert the DASD type dasd_type to a string.
ActiongraphStyleCallbacks * storage::get_debug_actiongraph_style_callbacks | ( | ) |
Get a ActiongraphStyleCallbacks object for debugging.
Attributes are likely colorful and include information like the action text and the storage id. The attributes may change any time.
DevicegraphStyleCallbacks * storage::get_debug_devicegraph_style_callbacks | ( | ) |
Get a DevicegraphStyleCallbacks object for debugging.
Attributes are likely colorful and include information like the class name and the storage id. The attributes may change any time.
std::string storage::get_encryption_type_name | ( | EncryptionType | encryption_type | ) |
Convert the EncryptionType encryption_type to a string.
std::string storage::get_fs_type_name | ( | FsType | fs_type | ) |
Convert the FsType fs_type to a string.
IdNum storage::get_linux_partition_id | ( | LinuxPartitionIdCategory | linux_partition_id_category, |
SystemInfo & | system_info | ||
) |
Get the partition id for the Linux partition of the given category (root, usr, ...) depending on the architecture.
Exception |
Logger * storage::get_logfile_logger | ( | const std::string & | filename = "/var/log/libstorage.log" | ) |
Returns a Logger that logs to the standard libstorage log file ("/var/log/libstorage.log") or to a given file.
Do not use this function for production code but only for examples and test-cases.
Note that this method only uses the given filename the first time it is called.
std::string storage::get_md_level_name | ( | MdLevel | md_level | ) |
Convert the MD RAID level md_level to a string.
std::string storage::get_md_parity_name | ( | MdParity | md_parity | ) |
Convert the MD parity algorithm md_parity to a string.
std::string storage::get_mount_by_name | ( | MountByType | mount_by_type | ) |
Convert the MountByType mount_by_type to a string.
std::string storage::get_partition_id_name | ( | IdNum | partition_id | ) |
Convert the IdNum partition_id to a string.
std::string storage::get_partition_type_name | ( | PartitionType | partition_type | ) |
Convert the PartitionType partition_type to a string.
std::string storage::get_pt_type_name | ( | PtType | pt_type | ) |
Convert the PtType pt_type to a string.
Logger * storage::get_stdout_logger | ( | ) |
Returns a Logger that logs to stdout.
Do not use this function for production code but only for examples and test-cases.
std::string storage::get_string | ( | const Actiongraph * | actiongraph, |
const Action::Base * | action | ||
) |
Get the commit message of an action.
TODO: This should be a member function of Action::Base but that is not available in the API in all details.
std::string storage::get_suffix | ( | int | i, |
bool | classic | ||
) |
Return a suffix.
i | index of suffix |
classic | use classic locale instead of global C++ locale |
std::string storage::get_transport_name | ( | Transport | transport | ) |
Convert the Transport transport to a string.
std::string storage::get_used_features_dependency_type_name | ( | UsedFeaturesDependencyType | used_features_dependency_type | ) |
Convert the UsedFeaturesDependencyType used_features_dependency_type to a string.
std::string storage::get_used_features_names | ( | uf_t | used_features | ) |
Return a string with the names of the used features.
Not for production code.
const char * storage::get_version_string | ( | ) |
Return LIBSTORAGE_NG_VERSION_STRING libstorage-ng was compiled with.
May differ from the define (compile time vs. link time).
std::string storage::get_zone_model_name | ( | ZoneModel | zone_model | ) |
Convert the ZoneModel zone_model to a string.
unsigned long long storage::humanstring_to_byte | ( | const std::string & | str, |
bool | classic | ||
) |
Converts a size description using B, KiB, KB, MiB, MB, GiB, GB, TiB, TB, PiB, PB, EiB or EB into an integer.
Decimal suffixes are treated as binary. Supported range is 0 B to (16 EiB - 1 B).
str | size string |
classic | use classic locale instead of global C++ locale |
The conversion is always case-insensitive. With classic set to false the conversion is also sloppy concerning omission of 'B'.
ParseException,OverflowException |
bool storage::is_bcache | ( | const Device * | device | ) |
Checks whether device points to a Bcache.
NullPointerException |
bool storage::is_bcache_cset | ( | const Device * | device | ) |
Checks whether device points to a BcacheCset.
NullPointerException |
bool storage::is_bitlocker | ( | const Device * | device | ) |
Checks whether device points to an Bitlocker.
NullPointerException |
bool storage::is_bitlocker_v2 | ( | const Device * | device | ) |
Checks whether device points to a BitlockerV2.
NullPointerException |
bool storage::is_blk_device | ( | const Device * | device | ) |
Checks whether device points to an BlkDevice.
NullPointerException |
bool storage::is_blk_filesystem | ( | const Device * | device | ) |
Checks whether device points to a BlkFilesystem.
NullPointerException |
bool storage::is_btrfs | ( | const Device * | device | ) |
Checks whether device points to a Btrfs.
NullPointerException |
bool storage::is_btrfs_qgroup | ( | const Device * | device | ) |
Checks whether device points to a Btrfs.
NullPointerException |
bool storage::is_btrfs_qgroup_relation | ( | const Holder * | holder | ) |
Checks whether holder points to a BtrfsQgroupRelation.
NullPointerException |
bool storage::is_btrfs_subvolume | ( | const Device * | device | ) |
Checks whether device points to a BtrfsSubvolume.
NullPointerException |
bool storage::is_create | ( | const Action::Base * | action | ) |
Checks whether action points to an Action::Create.
NullPointerException |
bool storage::is_dasd | ( | const Device * | device | ) |
Checks whether device points to a Dasd.
NullPointerException |
bool storage::is_dasd_pt | ( | const Device * | device | ) |
Checks whether device points to a DasdPt.
NullPointerException |
bool storage::is_delete | ( | const Action::Base * | action | ) |
Checks whether action points to an Action::Delete.
NullPointerException |
bool storage::is_disk | ( | const Device * | device | ) |
Checks whether device points to a Disk.
NullPointerException |
bool storage::is_dm_raid | ( | const Device * | device | ) |
Checks whether device points to a DmRaid.
NullPointerException |
bool storage::is_encryption | ( | const Device * | device | ) |
Checks whether device points to an Encryption.
NullPointerException |
bool storage::is_exfat | ( | const Device * | device | ) |
Checks whether device points to an Exfat.
NullPointerException |
bool storage::is_ext | ( | const Device * | device | ) |
Checks whether device points to an Ext.
NullPointerException |
bool storage::is_ext2 | ( | const Device * | device | ) |
Checks whether device points to an Ext2.
NullPointerException |
bool storage::is_ext3 | ( | const Device * | device | ) |
Checks whether device points to an Ext3.
NullPointerException |
bool storage::is_ext4 | ( | const Device * | device | ) |
Checks whether device points to an Ext4.
NullPointerException |
bool storage::is_f2fs | ( | const Device * | device | ) |
Checks whether device points to a F2fs.
NullPointerException |
bool storage::is_filesystem | ( | const Device * | device | ) |
Checks whether device points to a Filesystem.
NullPointerException |
bool storage::is_filesystem_user | ( | const Holder * | holder | ) |
Checks whether holder points to a FilesystemUser.
NullPointerException |
bool storage::is_gpt | ( | const Device * | device | ) |
Checks whether device points to a Gpt.
NullPointerException |
bool storage::is_implicit_pt | ( | const Device * | device | ) |
Checks whether device points to a ImplicitPt.
NullPointerException |
bool storage::is_iso9660 | ( | const Device * | device | ) |
Checks whether device points to a Iso9660.
NullPointerException |
bool storage::is_jfs | ( | const Device * | device | ) |
Checks whether device points to a Jfs.
NullPointerException |
bool storage::is_linux_partition_id | ( | IdNum | id | ) |
Check whether the id is a Linux partition id.
Thus true for e.g. ID_LINUX, ID_LINUX_HOME, ID_LINUX_ROOT_X86_64 and ID_RAID and false for e.g. ID_ESP and ID_PREP.
bool storage::is_linux_partition_id | ( | IdNum | id, |
LinuxPartitionIdCategory | linux_partition_id_category | ||
) |
Check whether the id is a Linux partition id of the specified category.
bool storage::is_luks | ( | const Device * | device | ) |
Checks whether device points to a Luks.
NullPointerException |
bool storage::is_lvm_lv | ( | const Device * | device | ) |
Checks whether device points to a LvmLv.
NullPointerException |
bool storage::is_lvm_pv | ( | const Device * | device | ) |
Checks whether device points to a LvmPv.
NullPointerException |
bool storage::is_lvm_vg | ( | const Device * | device | ) |
Checks whether device points to a LvmVg.
NullPointerException |
bool storage::is_md | ( | const Device * | device | ) |
Checks whether device points to a Md.
NullPointerException |
bool storage::is_md_container | ( | const Device * | device | ) |
Checks whether device points to an MdContainer.
NullPointerException |
bool storage::is_md_member | ( | const Device * | device | ) |
Checks whether device points to a MdMember.
NullPointerException |
bool storage::is_md_subdevice | ( | const Holder * | holder | ) |
Checks whether holder points to an MdSubdevice.
NullPointerException |
bool storage::is_md_user | ( | const Holder * | holder | ) |
Checks whether holder points to a MdUser.
NullPointerException |
bool storage::is_modify | ( | const Action::Base * | action | ) |
Checks whether action points to an Action::Modify.
NullPointerException |
bool storage::is_mount_point | ( | const Device * | device | ) |
Checks whether device points to a MountPoint.
NullPointerException |
bool storage::is_mountable | ( | const Device * | device | ) |
Checks whether device points to a Mountable.
NullPointerException |
bool storage::is_msdos | ( | const Device * | device | ) |
Checks whether device points to an Msdos.
NullPointerException |
bool storage::is_multipath | ( | const Device * | device | ) |
Checks whether device points to a Multipath.
NullPointerException |
bool storage::is_nfs | ( | const Device * | device | ) |
Checks whether device points to a Nfs.
NullPointerException |
bool storage::is_nilfs2 | ( | const Device * | device | ) |
Checks whether device points to a Nilfs2.
NullPointerException |
bool storage::is_ntfs | ( | const Device * | device | ) |
Checks whether device points to a Ntfs.
NullPointerException |
bool storage::is_partition | ( | const Device * | device | ) |
Checks whether device points to a Partition.
NullPointerException |
bool storage::is_partition_table | ( | const Device * | device | ) |
Checks whether device points to a PartitionTable.
NullPointerException |
bool storage::is_partitionable | ( | const Device * | device | ) |
Checks whether device points to a Partitionable.
NullPointerException |
bool storage::is_plain_encryption | ( | const Device * | device | ) |
Checks whether device points to a PlainEncryption.
NullPointerException |
bool storage::is_reiserfs | ( | const Device * | device | ) |
Checks whether device points to an Reiserfs.
NullPointerException |
bool storage::is_snapshot | ( | const Holder * | holder | ) |
Checks whether holder points to a Snapshot.
NullPointerException |
bool storage::is_stray_blk_device | ( | const Device * | device | ) |
Checks whether device points to a StrayBlkDevice.
NullPointerException |
bool storage::is_subdevice | ( | const Holder * | holder | ) |
Checks whether holder points to a Subdevice.
NullPointerException |
bool storage::is_swap | ( | const Device * | device | ) |
Checks whether device points to an Swap.
NullPointerException |
bool storage::is_tmpfs | ( | const Device * | device | ) |
Checks whether device points to a Tmpfs.
NullPointerException |
bool storage::is_udf | ( | const Device * | device | ) |
Checks whether device points to an Udf.
NullPointerException |
bool storage::is_user | ( | const Holder * | holder | ) |
Checks whether holder points to an User.
NullPointerException |
bool storage::is_vfat | ( | const Device * | device | ) |
Checks whether device points to a Vfat.
NullPointerException |
bool storage::is_xfs | ( | const Device * | device | ) |
Checks whether device points to a Xfs.
NullPointerException |
bool storage::light_probe | ( | ) |
This function does some very light probing and returns true iff some disks or DASDs were found in the system.
No devicegraph is generated. The exact type of devices probed may change.
Exception |
int storage::num_suffixes | ( | ) |
Return number of suffixes.
std::ostream & storage::operator<< | ( | std::ostream & | str, |
const CodeLocation & | obj | ||
) |
CodeLocation stream output.
Stream output.
std::vector< SimpleEtcCrypttabEntry > storage::read_simple_etc_crypttab | ( | const std::string & | filename | ) |
Read a crypttab file.
Whether the function returns an empty vector or throws an exception if reading or parsing is undefined.
Exception |
std::vector< SimpleEtcFstabEntry > storage::read_simple_etc_fstab | ( | const std::string & | filename | ) |
Read a fstab file.
Whether the function returns an empty vector or throws an exception if reading or parsing is undefined.
Exception |
void storage::set_logger | ( | Logger * | logger | ) |
Set the current logger object.
The logger object must be valid until replaced by another logger object.
Converts pointer to Device to pointer to Bcache.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Bcache.
DeviceHasWrongType,NullPointerException |
const BcacheCset * storage::to_bcache_cset | ( | const Device * | device | ) |
Converts pointer to Device to pointer to BcacheCset.
DeviceHasWrongType,NullPointerException |
BcacheCset * storage::to_bcache_cset | ( | Device * | device | ) |
Converts pointer to Device to pointer to BcacheCset.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Bitlocker.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Bitlocker.
DeviceHasWrongType,NullPointerException |
const BitlockerV2 * storage::to_bitlocker_v2 | ( | const Device * | device | ) |
Converts pointer to Device to pointer to BitlockerV2.
DeviceHasWrongType,NullPointerException |
BitlockerV2 * storage::to_bitlocker_v2 | ( | Device * | device | ) |
Converts pointer to Device to pointer to BitlockerV2.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to BlkDevice.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to BlkDevice.
DeviceHasWrongType,NullPointerException |
const BlkFilesystem * storage::to_blk_filesystem | ( | const Device * | device | ) |
Converts pointer to Device to pointer to BlkFilesystem.
DeviceHasWrongType,NullPointerException |
BlkFilesystem * storage::to_blk_filesystem | ( | Device * | device | ) |
Converts pointer to Device to pointer to BlkFilesystem.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Btrfs.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Btrfs.
DeviceHasWrongType,NullPointerException |
const BtrfsQgroup * storage::to_btrfs_qgroup | ( | const Device * | device | ) |
Converts pointer to Device to pointer to Btrfs.
DeviceHasWrongType,NullPointerException |
BtrfsQgroup * storage::to_btrfs_qgroup | ( | Device * | device | ) |
Converts pointer to Device to pointer to Btrfs.
DeviceHasWrongType,NullPointerException |
const BtrfsQgroupRelation * storage::to_btrfs_qgroup_relation | ( | const Holder * | holder | ) |
Converts pointer to Holder to pointer to BtrfsQgroupRelation.
HolderHasWrongType,NullPointerException |
BtrfsQgroupRelation * storage::to_btrfs_qgroup_relation | ( | Holder * | holder | ) |
Converts pointer to Holder to pointer to BtrfsQgroupRelation.
HolderHasWrongType,NullPointerException |
const BtrfsSubvolume * storage::to_btrfs_subvolume | ( | const Device * | device | ) |
Converts pointer to Device to pointer to BtrfsSubvolume.
DeviceHasWrongType,NullPointerException |
BtrfsSubvolume * storage::to_btrfs_subvolume | ( | Device * | device | ) |
Converts pointer to Device to pointer to BtrfsSubvolume.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Dasd.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Dasd.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to DasdPt.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to DasdPt.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Disk.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Disk.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to DmRaid.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to DmRaid.
DeviceHasWrongType,NullPointerException |
const Encryption * storage::to_encryption | ( | const Device * | device | ) |
Converts pointer to Device to pointer to Encryption.
DeviceHasWrongType,NullPointerException |
Encryption * storage::to_encryption | ( | Device * | device | ) |
Converts pointer to Device to pointer to Encryption.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Exfat.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Exfat.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Ext.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Ext.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Ext2.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Ext2.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Ext3.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Ext3.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Ext4.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Ext4.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to F2fs.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to F2fs.
DeviceHasWrongType,NullPointerException |
const Filesystem * storage::to_filesystem | ( | const Device * | device | ) |
Converts pointer to Device to pointer to Filesystem.
DeviceHasWrongType,NullPointerException |
Filesystem * storage::to_filesystem | ( | Device * | device | ) |
Converts pointer to Device to pointer to Filesystem.
DeviceHasWrongType,NullPointerException |
const FilesystemUser * storage::to_filesystem_user | ( | const Holder * | holder | ) |
Converts pointer to Holder to pointer to FilesystemUser.
HolderHasWrongType,NullPointerException |
FilesystemUser * storage::to_filesystem_user | ( | Holder * | holder | ) |
Converts pointer to Holder to pointer to FilesystemUser.
HolderHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Gpt.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Gpt.
DeviceHasWrongType,NullPointerException |
const ImplicitPt * storage::to_implicit_pt | ( | const Device * | device | ) |
Converts pointer to Device to pointer to ImplicitPt.
DeviceHasWrongType,NullPointerException |
ImplicitPt * storage::to_implicit_pt | ( | Device * | device | ) |
Converts pointer to Device to pointer to ImplicitPt.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Iso9660.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Iso9660.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Jfs.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Jfs.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Luks.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Luks.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to LvmLv.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to LvmLv.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to LvmPv.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to LvmPv.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to LvmVg.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to LvmVg.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Md.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Md.
DeviceHasWrongType,NullPointerException |
const MdContainer * storage::to_md_container | ( | const Device * | device | ) |
Converts pointer to Device to pointer to MdContainer.
DeviceHasWrongType,NullPointerException |
MdContainer * storage::to_md_container | ( | Device * | device | ) |
Converts pointer to Device to pointer to MdContainer.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to MdMember.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to MdMember.
DeviceHasWrongType,NullPointerException |
const MdSubdevice * storage::to_md_subdevice | ( | const Holder * | holder | ) |
Converts pointer to Holder to pointer to MdSubdevice.
HolderHasWrongType,NullPointerException |
MdSubdevice * storage::to_md_subdevice | ( | Holder * | holder | ) |
Converts pointer to Holder to pointer to MdSubdevice.
HolderHasWrongType,NullPointerException |
Converts pointer to Holder to pointer to MdUser.
HolderHasWrongType,NullPointerException |
Converts pointer to Holder to pointer to MdUser.
HolderHasWrongType,NullPointerException |
const MountPoint * storage::to_mount_point | ( | const Device * | device | ) |
Converts pointer to Device to pointer to Mountpoint.
DeviceHasWrongType,NullPointerException |
MountPoint * storage::to_mount_point | ( | Device * | device | ) |
Converts pointer to Device to pointer to Mountpoint.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Mountable.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Mountable.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Msdos.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Msdos.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Multipath.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Multipath.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Nfs.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Nfs.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Nilfs2.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Nilfs2.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Ntfs.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Ntfs.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Partition.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Partition.
DeviceHasWrongType,NullPointerException |
const PartitionTable * storage::to_partition_table | ( | const Device * | device | ) |
Converts pointer to Device to pointer to PartitionTable.
DeviceHasWrongType,NullPointerException |
PartitionTable * storage::to_partition_table | ( | Device * | device | ) |
Converts pointer to Device to pointer to PartitionTable.
DeviceHasWrongType,NullPointerException |
const Partitionable * storage::to_partitionable | ( | const Device * | device | ) |
Converts pointer to Device to pointer to Partitionable.
DeviceHasWrongType,NullPointerException |
Partitionable * storage::to_partitionable | ( | Device * | device | ) |
Converts pointer to Device to pointer to Partitionable.
DeviceHasWrongType,NullPointerException |
const PlainEncryption * storage::to_plain_encryption | ( | const Device * | device | ) |
Converts pointer to Device to pointer to PlainEncryption.
DeviceHasWrongType,NullPointerException |
PlainEncryption * storage::to_plain_encryption | ( | Device * | device | ) |
Converts pointer to Device to pointer to PlainEncryption.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Reiserfs.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Reiserfs.
DeviceHasWrongType,NullPointerException |
Converts pointer to Holder to pointer to Snapshot.
HolderHasWrongType,NullPointerException |
Converts pointer to Holder to pointer to Snapshot.
HolderHasWrongType,NullPointerException |
const StrayBlkDevice * storage::to_stray_blk_device | ( | const Device * | device | ) |
Converts pointer to Device to pointer to StrayBlkDevice.
DeviceHasWrongType,NullPointerException |
StrayBlkDevice * storage::to_stray_blk_device | ( | Device * | device | ) |
Converts pointer to Device to pointer to StrayBlkDevice.
DeviceHasWrongType,NullPointerException |
Converts pointer to Holder to pointer to User.
HolderHasWrongType,NullPointerException |
Converts pointer to Holder to pointer to Subdevice.
HolderHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Swap.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Swap.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Tmpfs.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Tmpfs.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Udf.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Udf.
DeviceHasWrongType,NullPointerException |
Converts pointer to Holder to pointer to User.
HolderHasWrongType,NullPointerException |
Converts pointer to Holder to pointer to User.
HolderHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Vfat.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Vfat.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Xfs.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to Xfs.
DeviceHasWrongType,NullPointerException |
const unsigned long long storage::B = 1 |
Abbreviation for byte.
const unsigned long long storage::EiB = 1024 * PiB |
Abbreviation for exbibyte.
const unsigned long long storage::GiB = 1024 * MiB |
Abbreviation for gibibyte.
const unsigned long long storage::KiB = 1024 * B |
Abbreviation for kibibyte.
const unsigned long long storage::MiB = 1024 * KiB |
Abbreviation for mebibyte.
const unsigned long long storage::PiB = 1024 * TiB |
Abbreviation for pebibyte.
const unsigned long long storage::TiB = 1024 * GiB |
Abbreviation for tebibyte.