libstorage-ng
|
Public Member Functions | |
bool | is_pmbr_boot () const |
Query the protective MBR boot flag. | |
void | set_pmbr_boot (bool pmbr_boot) |
Set the protective MBR boot flag. | |
Impl & | get_impl () |
const Impl & | get_impl () const |
virtual Gpt * | clone () const override |
![]() | |
PtType | get_type () const |
Partition * | create_partition (const std::string &name, const Region ®ion, PartitionType type) |
region is sector-based. More... | |
void | delete_partition (Partition *partition) |
Delete a partition in the partition table. More... | |
void | delete_partition (const std::string &name) ST_DEPRECATED |
unsigned int | max_primary () const |
Highest number for a primary or extended partition. More... | |
bool | extended_possible () const |
Returns whether a extended partition is supported. More... | |
unsigned int | max_logical () const |
Highest number for a logical partition. More... | |
unsigned int | num_primary () const |
bool | has_extended () const |
unsigned int | num_logical () const |
std::vector< Partition * > | get_partitions () |
Get partitions of the partition table. | |
std::vector< const Partition * > | get_partitions () const |
Get partitions of the partition table. More... | |
Partition * | get_partition (const std::string &name) |
const Partition * | get_extended () const |
Returns the extended partition of the partition table. More... | |
const Partitionable * | get_partitionable () const |
Alignment | get_alignment (AlignType align_type=AlignType::OPTIMAL) const |
std::vector< PartitionSlot > | get_unused_partition_slots (AlignPolicy align_policy=AlignPolicy::ALIGN_START_KEEP_END, AlignType align_type=AlignType::OPTIMAL) const |
Region | align (const Region ®ion, AlignPolicy align_policy=AlignPolicy::ALIGN_START_AND_END, AlignType align_type=AlignType::OPTIMAL) const |
region is sector-based. More... | |
bool | is_partition_boot_flag_supported () const |
Returns whether the boot flag is supported on partitions on the partition table. | |
bool | is_partition_legacy_boot_flag_supported () const |
Returns whether the legacy boot flag is supported on partitions on the partition table. | |
bool | is_partition_id_supported (unsigned int id) const |
Returns whether the partition id is supported on the partition table. | |
Impl & | get_impl () |
const Impl & | get_impl () const |
![]() | |
sid_t | get_sid () const |
bool | operator== (const Device &rhs) const |
bool | operator!= (const Device &rhs) const |
Device * | copy_to_devicegraph (Devicegraph *devicegraph) const |
Copies the device to the devicegraph. More... | |
bool | exists_in_devicegraph (const Devicegraph *devicegraph) const |
Checks if the device exists in the devicegraph. | |
bool | exists_in_probed () const |
Checks if the device exists in the probed devicegraph. | |
bool | exists_in_staging () const |
Checks if the device exists in the staging devicegraph. | |
bool | exists_in_system () const |
Checks if the device exists in the system devicegraph. | |
std::string | get_displayname () const |
ResizeInfo | detect_resize_info () const |
Detect the resize info of the device. More... | |
bool | has_children () const |
size_t | num_children () const |
bool | has_parents () const |
size_t | num_parents () const |
std::vector< Device * > | get_children () |
std::vector< const Device * > | get_children () const |
std::vector< Device * > | get_parents () |
std::vector< const Device * > | get_parents () const |
std::vector< Device * > | get_siblings (bool itself) |
std::vector< const Device * > | get_siblings (bool itself) const |
std::vector< Device * > | get_descendants (bool itself) |
std::vector< const Device * > | get_descendants (bool itself) const |
std::vector< Device * > | get_ancestors (bool itself) |
std::vector< const Device * > | get_ancestors (bool itself) const |
std::vector< Device * > | get_leaves (bool itself) |
std::vector< const Device * > | get_leaves (bool itself) const |
std::vector< Device * > | get_roots (bool itself) |
std::vector< const Device * > | get_roots (bool itself) const |
std::vector< Holder * > | get_in_holders () |
std::vector< const Holder * > | get_in_holders () const |
std::vector< Holder * > | get_out_holders () |
std::vector< const Holder * > | get_out_holders () const |
void | remove_descendants () |
const std::map< std::string, std::string > & | get_userdata () const |
void | set_userdata (const std::map< std::string, std::string > &userdata) |
Devicegraph * | get_devicegraph () |
const Devicegraph * | get_devicegraph () const |
Impl & | get_impl () |
const Impl & | get_impl () const |
void | save (xmlNode *node) const |
Static Public Member Functions | |
static Gpt * | create (Devicegraph *devicegraph) |
static Gpt * | load (Devicegraph *devicegraph, const xmlNode *node) |
static std::vector< Gpt * > | get_all (Devicegraph *devicegraph) |
Get all GPTs. | |
static std::vector< const Gpt * > | get_all (const Devicegraph *devicegraph) |
Get all GPTs. More... | |
![]() | |
static std::vector< Device * > | get_all (Devicegraph *devicegraph) |
static std::vector< const Device * > | get_all (const Devicegraph *devicegraph) |
static bool | compare_by_sid (const Device *lhs, const Device *rhs) |
Compare (less than) two Devices by sid. | |
static bool | compare_by_name (const Device *lhs, const Device *rhs) |
Compare (less than) two Devices by name. More... | |
Protected Member Functions | |
Gpt (Impl *impl) | |
![]() | |
PartitionTable (Impl *impl) | |
![]() | |
Device (Impl *impl) | |
void | create (Devicegraph *devicegraph) |
void | load (Devicegraph *devicegraph) |
|
static |
Get all GPTs.