libstorage-ng
|
The storage namespace. More...
Classes | |
class | Aborted |
class | Actiongraph |
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 | AlignError |
class | Alignment |
A class to calculate partition alignment based on hardware topology. More... | |
class | Bcache |
A bcache device. More... | |
class | BcacheCset |
A bcache cache set. More... | |
class | Bitlocker |
Class for BitLocker filesystem. 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 | BtrfsSubvolume |
Class to represent a btrfs subvolume in the devicegraph. More... | |
class | BtrfsSubvolumeNotFoundByPath |
class | CheckCallbacks |
class | CodeLocation |
Helper class for UI exceptions: Store BASE_FILE, FUNCTION and LINE. More... | |
class | CommitCallbacks |
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 |
Provides information whether deactivate() was able to deactivate subsystems. More... | |
class | Device |
An abstract base class of storage devices, and a vertex in the Devicegraph. More... | |
class | Devicegraph |
The master container of the libstorage. 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 |
class | Gpt |
class | GraphStyleCallbacks |
Base class for DevicegraphStyleCallbacks and ActiongraphStyleCallbacks. More... | |
class | Holder |
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 | InvalidExtentSize |
class | InvalidMountPointPath |
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 |
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 | 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. Disk or Md. 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 | ProbeCallbacks |
class | ProbeCallbacksV2 |
class | ProbeCallbacksV3 |
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 | 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 | SpaceInfo |
class | Storage |
The main entry point to libstorage. More... | |
class | StrayBlkDevice |
This class represents stray block devices. More... | |
class | Subdevice |
class | Swap |
Class to represent a swap filesystem in the devicegraph. 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 |
class | Vfat |
Class to represent an VFAT filesystem https://en.wikipedia.org/wiki/Vfat in the devicegraph. More... | |
class | WrongNumberOfChildren |
class | WrongNumberOfParents |
class | Xfs |
Class to represent an XFS filesystem https://en.wikipedia.org/wiki/Xfs in the devicegraph. More... | |
Typedefs | |
typedef unsigned int | sid_t |
An integer storage ID. More... | |
Enumerations | |
enum | Side { LHS, RHS } |
enum | ProbeMode { STANDARD, STANDARD_WRITE_DEVICEGRAPH, STANDARD_WRITE_MOCKUP, NONE, READ_DEVICEGRAPH, READ_MOCKUP } |
How to probe the system. | |
enum | TargetMode { DIRECT, CHROOT, IMAGE } |
Is the target a disk, chroot, or image? | |
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 } |
Resize blockers. More... | |
enum | 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 | : 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_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_NVME = 1 << 28, UF_QUOTA = 1 << 21, UF_SNAPSHOTS = 1 << 22 } |
enum | BcacheType { BACKED, FLASH_ONLY } |
Bcache types. | |
enum | CacheMode { WRITETHROUGH, WRITEBACK, WRITEAROUND, NONE } |
The Cache mode attribute. | |
enum | DasdType { UNKNOWN, ECKD, FBA } |
The DASD type. | |
enum | DasdFormat { NONE, LDL, CDL } |
The layout with which the ECKD DASD was formatted. | |
enum | Transport { UNKNOWN, SBP, ATA, FC, ISCSI, SAS, SATA, SPI, USB, FCOE } |
Data Transport Layer. | |
enum | ZoneModel { NONE, HOST_AWARE, HOST_MANAGED } |
Zone model as read from /sys. More... | |
enum | EncryptionType { NONE, TWOFISH, TWOFISH_OLD, TWOFISH256_OLD, LUKS, LUKS1 = LUKS, UNKNOWN, LUKS2, PLAIN } |
enum | LvType { UNKNOWN, NORMAL, THIN_POOL, THIN, RAID } |
LVM logical volume types, see lvs(8). | |
enum | MdLevel { UNKNOWN, RAID0, RAID1, RAID4, RAID5, RAID6, RAID10, CONTAINER } |
MD RAID levels. | |
enum | 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. | |
enum | PartitionType { PartitionType::PRIMARY, PartitionType::EXTENDED, PartitionType::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 = 0x101, ID_WINDOWS_BASIC_DATA = 0x102, ID_MICROSOFT_RESERVED = 0x103 } |
Enum with values used as partition ids. More... | |
enum | PtType { UNKNOWN, LOOP, MSDOS, GPT, DASD, MAC, IMPLICIT } |
Partition Table Type. | |
enum | BtrfsRaidLevel { UNKNOWN, DEFAULT, SINGLE, DUP, RAID0, RAID1, RAID5, RAID6, RAID10, RAID1C3, RAID1C4 } |
Btrfs RAID levels (aka profiles) used for metadata and data. | |
enum | 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 } |
enum | MountByType { MountByType::DEVICE, MountByType::UUID, MountByType::LABEL, MountByType::ID, MountByType::PATH } |
The key by which the mount program identifies a mountable. More... | |
enum | AlignType { AlignType::REQUIRED, AlignType::OPTIMAL } |
enum | AlignPolicy { AlignPolicy::ALIGN_START_AND_END = 0, ST_DEPRECATED = 0, AlignPolicy::ALIGN_START_KEEP_END = 1, ST_DEPRECATED = 1, AlignPolicy::ALIGN_START_KEEP_SIZE = 2, ST_DEPRECATED = 2, AlignPolicy::KEEP_START_ALIGN_END = 3 } |
enum | LogLevel { DEBUG = 0, MILESTONE = 1, WARNING = 2, ERROR = 3 } |
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. More... | |
ActiongraphStyleCallbacks * | get_debug_actiongraph_style_callbacks () |
Get a ActiongraphStyleCallbacks object for debugging. More... | |
std::vector< SimpleEtcCrypttabEntry > | read_simple_etc_crypttab (const std::string &filename) |
Read a crypttab file. More... | |
std::vector< SimpleEtcFstabEntry > | read_simple_etc_fstab (const std::string &filename) |
Read a fstab file. More... | |
bool | is_bcache (const Device *device) |
Checks whether device points to a Bcache. More... | |
Bcache * | to_bcache (Device *device) |
Converts pointer to Device to pointer to Bcache. More... | |
const Bcache * | to_bcache (const Device *device) |
Converts pointer to Device to pointer to Bcache. More... | |
bool | is_bcache_cset (const Device *device) |
Checks whether device points to a BcacheCset. More... | |
BcacheCset * | to_bcache_cset (Device *device) |
Converts pointer to Device to pointer to BcacheCset. More... | |
const BcacheCset * | to_bcache_cset (const Device *device) |
Converts pointer to Device to pointer to BcacheCset. More... | |
bool | is_blk_device (const Device *device) |
Checks whether device points to an BlkDevice. More... | |
BlkDevice * | to_blk_device (Device *device) |
Converts pointer to Device to pointer to BlkDevice. More... | |
const BlkDevice * | to_blk_device (const Device *device) |
Converts pointer to Device to pointer to BlkDevice. More... | |
bool | is_dasd (const Device *device) |
Checks whether device points to a Dasd. More... | |
Dasd * | to_dasd (Device *device) |
Converts pointer to Device to pointer to Dasd. More... | |
const Dasd * | to_dasd (const Device *device) |
Converts pointer to Device to pointer to Dasd. More... | |
bool | is_dasd_pt (const Device *device) |
Checks whether device points to a DasdPt. More... | |
DasdPt * | to_dasd_pt (Device *device) |
Converts pointer to Device to pointer to DasdPt. More... | |
const DasdPt * | to_dasd_pt (const Device *device) |
Converts pointer to Device to pointer to DasdPt. More... | |
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. More... | |
Disk * | to_disk (Device *device) |
Converts pointer to Device to pointer to Disk. More... | |
const Disk * | to_disk (const Device *device) |
Converts pointer to Device to pointer to Disk. More... | |
bool | is_dm_raid (const Device *device) |
Checks whether device points to a DmRaid. More... | |
DmRaid * | to_dm_raid (Device *device) |
Converts pointer to Device to pointer to DmRaid. More... | |
const DmRaid * | to_dm_raid (const Device *device) |
Converts pointer to Device to pointer to DmRaid. More... | |
bool | is_encryption (const Device *device) |
Checks whether device points to an Encryption. More... | |
Encryption * | to_encryption (Device *device) |
Converts pointer to Device to pointer to Encryption. More... | |
const Encryption * | to_encryption (const Device *device) |
Converts pointer to Device to pointer to Encryption. More... | |
bool | is_gpt (const Device *device) |
Checks whether device points to a Gpt. More... | |
Gpt * | to_gpt (Device *device) |
Converts pointer to Device to pointer to Gpt. More... | |
const Gpt * | to_gpt (const Device *device) |
Converts pointer to Device to pointer to Gpt. More... | |
bool | is_implicit_pt (const Device *device) |
Checks whether device points to a ImplicitPt. More... | |
ImplicitPt * | to_implicit_pt (Device *device) |
Converts pointer to Device to pointer to ImplicitPt. More... | |
const ImplicitPt * | to_implicit_pt (const Device *device) |
Converts pointer to Device to pointer to ImplicitPt. More... | |
bool | is_luks (const Device *device) |
Checks whether device points to a Luks. More... | |
Luks * | to_luks (Device *device) |
Converts pointer to Device to pointer to Luks. More... | |
const Luks * | to_luks (const Device *device) |
Converts pointer to Device to pointer to Luks. More... | |
bool | is_lvm_lv (const Device *device) |
Checks whether device points to a LvmLv. More... | |
LvmLv * | to_lvm_lv (Device *device) |
Converts pointer to Device to pointer to LvmLv. More... | |
const LvmLv * | to_lvm_lv (const Device *device) |
Converts pointer to Device to pointer to LvmLv. More... | |
bool | is_lvm_pv (const Device *device) |
Checks whether device points to a LvmPv. More... | |
LvmPv * | to_lvm_pv (Device *device) |
Converts pointer to Device to pointer to LvmPv. More... | |
const LvmPv * | to_lvm_pv (const Device *device) |
Converts pointer to Device to pointer to LvmPv. More... | |
bool | is_lvm_vg (const Device *device) |
Checks whether device points to a LvmVg. More... | |
LvmVg * | to_lvm_vg (Device *device) |
Converts pointer to Device to pointer to LvmVg. More... | |
const LvmVg * | to_lvm_vg (const Device *device) |
Converts pointer to Device to pointer to LvmVg. More... | |
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. More... | |
Md * | to_md (Device *device) |
Converts pointer to Device to pointer to Md. More... | |
const Md * | to_md (const Device *device) |
Converts pointer to Device to pointer to Md. More... | |
bool | is_md_container (const Device *device) |
Checks whether device points to an MdContainer. More... | |
MdContainer * | to_md_container (Device *device) |
Converts pointer to Device to pointer to MdContainer. More... | |
const MdContainer * | to_md_container (const Device *device) |
Converts pointer to Device to pointer to MdContainer. More... | |
bool | is_md_member (const Device *device) |
Checks whether device points to a MdMember. More... | |
MdMember * | to_md_member (Device *device) |
Converts pointer to Device to pointer to MdMember. More... | |
const MdMember * | to_md_member (const Device *device) |
Converts pointer to Device to pointer to MdMember. More... | |
bool | is_msdos (const Device *device) |
Checks whether device points to an Msdos. More... | |
Msdos * | to_msdos (Device *device) |
Converts pointer to Device to pointer to Msdos. More... | |
const Msdos * | to_msdos (const Device *device) |
Converts pointer to Device to pointer to Msdos. More... | |
bool | is_multipath (const Device *device) |
Checks whether device points to a Multipath. More... | |
Multipath * | to_multipath (Device *device) |
Converts pointer to Device to pointer to Multipath. More... | |
const Multipath * | to_multipath (const Device *device) |
Converts pointer to Device to pointer to Multipath. More... | |
std::string | get_partition_type_name (PartitionType partition_type) |
Convert PartitionType to string. | |
std::string | get_partition_id_name (IdNum partition_id) |
Convert IdNum to string. More... | |
bool | is_partition (const Device *device) |
Checks whether device points to a Partition. More... | |
Partition * | to_partition (Device *device) |
Converts pointer to Device to pointer to Partition. More... | |
const Partition * | to_partition (const Device *device) |
Converts pointer to Device to pointer to Partition. More... | |
bool | is_partitionable (const Device *device) |
Checks whether device points to a Partitionable. More... | |
Partitionable * | to_partitionable (Device *device) |
Converts pointer to Device to pointer to Partitionable. More... | |
const Partitionable * | to_partitionable (const Device *device) |
Converts pointer to Device to pointer to Partitionable. More... | |
std::string | get_pt_type_name (PtType pt_type) |
bool | is_partition_table (const Device *device) |
Checks whether device points to a PartitionTable. More... | |
PartitionTable * | to_partition_table (Device *device) |
Converts pointer to Device to pointer to PartitionTable. More... | |
const PartitionTable * | to_partition_table (const Device *device) |
Converts pointer to Device to pointer to PartitionTable. More... | |
bool | is_plain_encryption (const Device *device) |
Checks whether device points to a PlainEncryption. More... | |
PlainEncryption * | to_plain_encryption (Device *device) |
Converts pointer to Device to pointer to PlainEncryption. More... | |
const PlainEncryption * | to_plain_encryption (const Device *device) |
Converts pointer to Device to pointer to PlainEncryption. More... | |
bool | is_stray_blk_device (const Device *device) |
Checks whether device points to a StrayBlkDevice. More... | |
StrayBlkDevice * | to_stray_blk_device (Device *device) |
Converts pointer to Device to pointer to StrayBlkDevice. More... | |
const StrayBlkDevice * | to_stray_blk_device (const Device *device) |
Converts pointer to Device to pointer to StrayBlkDevice. More... | |
bool | is_bitlocker (const Device *device) |
Checks whether device points to an Bitlocker. More... | |
Bitlocker * | to_bitlocker (Device *device) |
Converts pointer to Device to pointer to Bitlocker. More... | |
const Bitlocker * | to_bitlocker (const Device *device) |
Converts pointer to Device to pointer to Bitlocker. More... | |
bool | is_blk_filesystem (const Device *device) |
Checks whether device points to a BlkFilesystem. More... | |
BlkFilesystem * | to_blk_filesystem (Device *device) |
Converts pointer to Device to pointer to BlkFilesystem. More... | |
const BlkFilesystem * | to_blk_filesystem (const Device *device) |
Converts pointer to Device to pointer to BlkFilesystem. More... | |
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. More... | |
Btrfs * | to_btrfs (Device *device) |
Converts pointer to Device to pointer to Btrfs. More... | |
const Btrfs * | to_btrfs (const Device *device) |
Converts pointer to Device to pointer to Btrfs. More... | |
bool | is_btrfs_subvolume (const Device *device) |
Checks whether device points to a BtrfsSubvolume. More... | |
BtrfsSubvolume * | to_btrfs_subvolume (Device *device) |
Converts pointer to Device to pointer to BtrfsSubvolume. More... | |
const BtrfsSubvolume * | to_btrfs_subvolume (const Device *device) |
Converts pointer to Device to pointer to BtrfsSubvolume. More... | |
bool | is_exfat (const Device *device) |
Checks whether device points to an Exfat. More... | |
Exfat * | to_exfat (Device *device) |
Converts pointer to Device to pointer to Exfat. More... | |
const Exfat * | to_exfat (const Device *device) |
Converts pointer to Device to pointer to Exfat. More... | |
bool | is_ext (const Device *device) |
Checks whether device points to an Ext. More... | |
Ext * | to_ext (Device *device) |
Converts pointer to Device to pointer to Ext. More... | |
const Ext * | to_ext (const Device *device) |
Converts pointer to Device to pointer to Ext. More... | |
bool | is_ext2 (const Device *device) |
Checks whether device points to an Ext2. More... | |
Ext2 * | to_ext2 (Device *device) |
Converts pointer to Device to pointer to Ext2. More... | |
const Ext2 * | to_ext2 (const Device *device) |
Converts pointer to Device to pointer to Ext2. More... | |
bool | is_ext3 (const Device *device) |
Checks whether device points to an Ext3. More... | |
Ext3 * | to_ext3 (Device *device) |
Converts pointer to Device to pointer to Ext3. More... | |
const Ext3 * | to_ext3 (const Device *device) |
Converts pointer to Device to pointer to Ext3. More... | |
bool | is_ext4 (const Device *device) |
Checks whether device points to an Ext4. More... | |
Ext4 * | to_ext4 (Device *device) |
Converts pointer to Device to pointer to Ext4. More... | |
const Ext4 * | to_ext4 (const Device *device) |
Converts pointer to Device to pointer to Ext4. More... | |
bool | is_f2fs (const Device *device) |
Checks whether device points to a F2fs. More... | |
F2fs * | to_f2fs (Device *device) |
Converts pointer to Device to pointer to F2fs. More... | |
const F2fs * | to_f2fs (const Device *device) |
Converts pointer to Device to pointer to F2fs. More... | |
bool | is_filesystem (const Device *device) |
Checks whether device points to a Filesystem. More... | |
Filesystem * | to_filesystem (Device *device) |
Converts pointer to Device to pointer to Filesystem. More... | |
const Filesystem * | to_filesystem (const Device *device) |
Converts pointer to Device to pointer to Filesystem. More... | |
bool | is_iso9660 (const Device *device) |
Checks whether device points to a Iso9660. More... | |
Iso9660 * | to_iso9660 (Device *device) |
Converts pointer to Device to pointer to Iso9660. More... | |
const Iso9660 * | to_iso9660 (const Device *device) |
Converts pointer to Device to pointer to Iso9660. More... | |
bool | is_jfs (const Device *device) |
Checks whether device points to a Jfs. More... | |
Jfs * | to_jfs (Device *device) |
Converts pointer to Device to pointer to Jfs. More... | |
const Jfs * | to_jfs (const Device *device) |
Converts pointer to Device to pointer to Jfs. More... | |
std::string | get_fs_type_name (FsType fs_type) |
std::string | get_mount_by_name (MountByType mount_by_type) |
bool | is_mountable (const Device *device) |
Checks whether device points to a Mountable. More... | |
Mountable * | to_mountable (Device *device) |
Converts pointer to Device to pointer to Mountable. More... | |
const Mountable * | to_mountable (const Device *device) |
Converts pointer to Device to pointer to Mountable. More... | |
bool | is_mount_point (const Device *device) |
Checks whether device points to a MountPoint. More... | |
MountPoint * | to_mount_point (Device *device) |
Converts pointer to Device to pointer to Mountpoint. More... | |
const MountPoint * | to_mount_point (const Device *device) |
Converts pointer to Device to pointer to Mountpoint. More... | |
bool | is_nfs (const Device *device) |
Checks whether device points to a Nfs. More... | |
Nfs * | to_nfs (Device *device) |
Converts pointer to Device to pointer to Nfs. More... | |
const Nfs * | to_nfs (const Device *device) |
Converts pointer to Device to pointer to Nfs. More... | |
bool | is_ntfs (const Device *device) |
Checks whether device points to a Ntfs. More... | |
Ntfs * | to_ntfs (Device *device) |
Converts pointer to Device to pointer to Ntfs. More... | |
const Ntfs * | to_ntfs (const Device *device) |
Converts pointer to Device to pointer to Ntfs. More... | |
bool | is_reiserfs (const Device *device) |
Checks whether device points to an Reiserfs. More... | |
Reiserfs * | to_reiserfs (Device *device) |
Converts pointer to Device to pointer to Reiserfs. More... | |
const Reiserfs * | to_reiserfs (const Device *device) |
Converts pointer to Device to pointer to Reiserfs. More... | |
bool | is_swap (const Device *device) |
Checks whether device points to an Swap. More... | |
Swap * | to_swap (Device *device) |
Converts pointer to Device to pointer to Swap. More... | |
const Swap * | to_swap (const Device *device) |
Converts pointer to Device to pointer to Swap. More... | |
bool | is_udf (const Device *device) |
Checks whether device points to an Udf. More... | |
Udf * | to_udf (Device *device) |
Converts pointer to Device to pointer to Udf. More... | |
const Udf * | to_udf (const Device *device) |
Converts pointer to Device to pointer to Udf. More... | |
bool | is_vfat (const Device *device) |
Checks whether device points to a Vfat. More... | |
Vfat * | to_vfat (Device *device) |
Converts pointer to Device to pointer to Vfat. More... | |
const Vfat * | to_vfat (const Device *device) |
Converts pointer to Device to pointer to Vfat. More... | |
bool | is_xfs (const Device *device) |
Checks whether device points to a Xfs. More... | |
Xfs * | to_xfs (Device *device) |
Converts pointer to Device to pointer to Xfs. More... | |
const Xfs * | to_xfs (const Device *device) |
Converts pointer to Device to pointer to Xfs. More... | |
bool | is_filesystem_user (const Holder *holder) |
Checks whether holder points to a FilesystemUser. More... | |
FilesystemUser * | to_filesystem_user (Holder *holder) |
Converts pointer to Holder to pointer to FilesystemUser. More... | |
const FilesystemUser * | to_filesystem_user (const Holder *holder) |
Converts pointer to Holder to pointer to FilesystemUser. More... | |
bool | is_md_subdevice (const Holder *holder) |
Checks whether holder points to an MdSubdevice. More... | |
MdSubdevice * | to_md_subdevice (Holder *holder) |
Converts pointer to Holder to pointer to MdSubdevice. More... | |
const MdSubdevice * | to_md_subdevice (const Holder *holder) |
Converts pointer to Holder to pointer to MdSubdevice. More... | |
bool | is_md_user (const Holder *holder) |
Checks whether holder points to a MdUser. More... | |
MdUser * | to_md_user (Holder *holder) |
Converts pointer to Holder to pointer to MdUser. More... | |
const MdUser * | to_md_user (const Holder *holder) |
Converts pointer to Holder to pointer to MdUser. More... | |
bool | is_subdevice (const Holder *holder) |
Checks whether holder points to a Subdevice. More... | |
Subdevice * | to_subdevice (Holder *holder) |
Converts pointer to Holder to pointer to Subdevice. More... | |
const Subdevice * | to_subdevice (const Holder *holder) |
Converts pointer to Holder to pointer to User. More... | |
bool | is_user (const Holder *holder) |
Checks whether holder points to an User. More... | |
User * | to_user (Holder *holder) |
Converts pointer to Holder to pointer to User. More... | |
const User * | to_user (const Holder *holder) |
Converts pointer to Holder to pointer to User. More... | |
std::ostream & | operator<< (std::ostream &str, const CodeLocation &obj) |
CodeLocation stream output. More... | |
std::ostream & | operator<< (std::ostream &str, const Exception &obj) |
Exception stream output. | |
int | num_suffixes () |
Return number of suffixes. More... | |
std::string | get_suffix (int i, bool classic) |
Return a suffix. More... | |
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. More... | |
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. More... | |
bool | light_probe () |
This function does some very light probing and returns true iff some disks or DASDs were found in the system. More... | |
Logger * | get_logger () |
Get the current logger object. | |
void | set_logger (Logger *logger) |
Set the current logger object. More... | |
Logger * | get_stdout_logger () |
Returns a Logger that logs to stdout. More... | |
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. More... | |
const RemoteCallbacks * | get_remote_callbacks () |
void | set_remote_callbacks (const RemoteCallbacks *remote_callbacks) |
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. |
|
strong |
|
strong |
|
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 and https://en.wikipedia.org/wiki/GUID_Partition_Table.
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. |
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. |
|
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. |
|
strong |
|
strong |
Zone model as read from /sys.
See e.g. https://www.zonedstorage.io/ and https://github.com/torvalds/linux/blob/master/Documentation/ABI/testing/sysfs-block for further information.
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 |
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.
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 that is called.
std::string storage::get_partition_id_name | ( | IdNum | partition_id | ) |
Convert IdNum to string.
NOTE: an empty string could be returned (e.g., when the given partition id is unknown).
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_suffix | ( | int | i, |
bool | classic | ||
) |
Return a suffix.
i | index of suffix |
classic | use classic locale instead of global C++ locale |
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_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_subvolume | ( | const Device * | device | ) |
Checks whether device points to a BtrfsSubvolume.
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_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_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_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_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_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_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 |
BcacheCset* storage::to_bcache_cset | ( | Device * | device | ) |
Converts pointer to Device to pointer to BcacheCset.
DeviceHasWrongType,NullPointerException |
const BcacheCset* storage::to_bcache_cset | ( | const 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 |
Converts pointer to Device to pointer to BlkDevice.
DeviceHasWrongType,NullPointerException |
Converts pointer to Device to pointer to BlkDevice.
DeviceHasWrongType,NullPointerException |
BlkFilesystem* storage::to_blk_filesystem | ( | Device * | device | ) |
Converts pointer to Device to pointer to BlkFilesystem.
DeviceHasWrongType,NullPointerException |
const BlkFilesystem* storage::to_blk_filesystem | ( | const 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 |
BtrfsSubvolume* storage::to_btrfs_subvolume | ( | Device * | device | ) |
Converts pointer to Device to pointer to BtrfsSubvolume.
DeviceHasWrongType,NullPointerException |
const BtrfsSubvolume* storage::to_btrfs_subvolume | ( | const 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 |
Encryption* storage::to_encryption | ( | Device * | device | ) |
Converts pointer to Device to pointer to Encryption.
DeviceHasWrongType,NullPointerException |
const Encryption* storage::to_encryption | ( | const 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 |
Filesystem* storage::to_filesystem | ( | Device * | device | ) |
Converts pointer to Device to pointer to Filesystem.
DeviceHasWrongType,NullPointerException |
const Filesystem* storage::to_filesystem | ( | const Device * | device | ) |
Converts pointer to Device to pointer to Filesystem.
DeviceHasWrongType,NullPointerException |
FilesystemUser* storage::to_filesystem_user | ( | Holder * | holder | ) |
Converts pointer to Holder to pointer to FilesystemUser.
HolderHasWrongType,NullPointerException |
const FilesystemUser* storage::to_filesystem_user | ( | const 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 |
ImplicitPt* storage::to_implicit_pt | ( | Device * | device | ) |
Converts pointer to Device to pointer to ImplicitPt.
DeviceHasWrongType,NullPointerException |
const ImplicitPt* storage::to_implicit_pt | ( | const 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 |
MdContainer* storage::to_md_container | ( | Device * | device | ) |
Converts pointer to Device to pointer to MdContainer.
DeviceHasWrongType,NullPointerException |
const MdContainer* storage::to_md_container | ( | const 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 |
MdSubdevice* storage::to_md_subdevice | ( | Holder * | holder | ) |
Converts pointer to Holder to pointer to MdSubdevice.
HolderHasWrongType,NullPointerException |
const MdSubdevice* storage::to_md_subdevice | ( | const 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 |
MountPoint* storage::to_mount_point | ( | Device * | device | ) |
Converts pointer to Device to pointer to Mountpoint.
DeviceHasWrongType,NullPointerException |
const MountPoint* storage::to_mount_point | ( | const 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 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 |
PartitionTable* storage::to_partition_table | ( | Device * | device | ) |
Converts pointer to Device to pointer to PartitionTable.
DeviceHasWrongType,NullPointerException |
const PartitionTable* storage::to_partition_table | ( | const Device * | device | ) |
Converts pointer to Device to pointer to PartitionTable.
DeviceHasWrongType,NullPointerException |
Partitionable* storage::to_partitionable | ( | Device * | device | ) |
Converts pointer to Device to pointer to Partitionable.
DeviceHasWrongType,NullPointerException |
const Partitionable* storage::to_partitionable | ( | const Device * | device | ) |
Converts pointer to Device to pointer to Partitionable.
DeviceHasWrongType,NullPointerException |
PlainEncryption* storage::to_plain_encryption | ( | Device * | device | ) |
Converts pointer to Device to pointer to PlainEncryption.
DeviceHasWrongType,NullPointerException |
const PlainEncryption* storage::to_plain_encryption | ( | const 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 |
StrayBlkDevice* storage::to_stray_blk_device | ( | Device * | device | ) |
Converts pointer to Device to pointer to StrayBlkDevice.
DeviceHasWrongType,NullPointerException |
const StrayBlkDevice* storage::to_stray_blk_device | ( | const Device * | device | ) |
Converts pointer to Device to pointer to StrayBlkDevice.
DeviceHasWrongType,NullPointerException |
Converts pointer to Holder to pointer to Subdevice.
HolderHasWrongType,NullPointerException |
Converts pointer to Holder to pointer to User.
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 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 |