24 #ifndef STORAGE_PARTITIONABLE_H 25 #define STORAGE_PARTITIONABLE_H 30 #include "storage/Utils/Topology.h" 31 #include "storage/Devices/BlkDevice.h" 32 #include "storage/Devices/PartitionTable.h" 44 const Topology& get_topology()
const;
45 void set_topology(
const Topology& topology);
47 unsigned int get_range()
const;
48 void set_range(
unsigned int range);
82 bool has_partition_table()
const;
117 const Impl& get_impl()
const;
126 bool is_partitionable(
const Device* device);
PartitionTable * create_partition_table(PtType pt_type)
Create a partition table on the partitionable.
PtType get_default_partition_table_type() const
Get the default partition table type for the partitionable.
static std::vector< Partitionable * > get_all(Devicegraph *devicegraph)
Get all Partitionables.
virtual std::string partition_name(int number) const
Return the name of the partition with the specified number.
PtType
Partition Table Type.
Definition: PartitionTable.h:42
std::vector< PtType > get_possible_partition_table_types() const
Get possible partition table types for the disk.
The master container of the libstorage.
Definition: Devicegraph.h:153
An abstract Block Device.
Definition: BlkDevice.h:41
Partitionable * to_partitionable(Device *device)
Converts pointer to Device to pointer to Partitionable.
An abstract base class of storage devices, and a vertex in the Devicegraph.
Definition: Device.h:75
Definition: Partitionable.h:40
PartitionTable * get_partition_table()
A class to represent hardware alignment information.
Definition: Topology.h:38
bool is_usable_as_partitionable() const
Checks whether the partitionable is in general usable as a partitionable (can hold a partition table)...
The storage namespace.
Definition: Actiongraph.h:37
Definition: PartitionTable.h:81