libstorage-ng
 All Classes Namespaces Functions Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
storage::Gpt Class Reference
Inheritance diagram for storage::Gpt:
Inheritance graph
[legend]
Collaboration diagram for storage::Gpt:
Collaboration graph
[legend]

Public Member Functions

bool is_enlarge () const
 
void set_enlarge (bool enlarge)
 
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 Gptclone () const override
 
- Public Member Functions inherited from storage::PartitionTable
PtType get_type () const
 
Partitioncreate_partition (const std::string &name, const Region &region, PartitionType type)
 region is sector-based.
 
void delete_partition (Partition *partition)
 Delete a partition in the partition table. More...
 
void delete_partition (const std::string &name) DEPRECATED
 
unsigned int max_primary () const
 
bool extended_possible () const
 
unsigned int max_logical () const
 
unsigned int num_primary () const
 
bool has_extended () const
 
unsigned int num_logical () const
 
std::vector< Partition * > get_partitions ()
 Sorted by partition number.
 
std::vector< const Partition * > get_partitions () const
 Sorted by partition number. More...
 
Partitionget_partition (const std::string &name)
 
const Partitionableget_partitionable () const
 
std::vector< PartitionSlotget_unused_partition_slots (AlignPolicy align_policy=AlignPolicy::KEEP_END) const
 
Region align (const Region &region, AlignPolicy align_policy=AlignPolicy::ALIGN_END) const
 region is sector-based.
 
Impl & get_impl ()
 
const Impl & get_impl () const
 
- Public Member Functions inherited from storage::Device
sid_t get_sid () const
 
bool operator== (const Device &rhs) const
 
bool operator!= (const Device &rhs) const
 
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.
 
std::string get_displayname () const
 
virtual ResizeInfo detect_resize_info () const
 
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)
 
Impl & get_impl ()
 
const Impl & get_impl () const
 
void save (xmlNode *node) const
 

Static Public Member Functions

static Gptcreate (Devicegraph *devicegraph)
 
static Gptload (Devicegraph *devicegraph, const xmlNode *node)
 

Protected Member Functions

 Gpt (Impl *impl)
 
- Protected Member Functions inherited from storage::PartitionTable
 PartitionTable (Impl *impl)
 
- Protected Member Functions inherited from storage::Device
 Device (Impl *impl)
 
void create (Devicegraph *devicegraph)
 
void load (Devicegraph *devicegraph)
 

The documentation for this class was generated from the following file: