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);
63 bool has_partition_table()
const;
68 static std::vector<Partitionable*> get_all(
Devicegraph* devicegraph);
69 static std::vector<const Partitionable*> get_all(
const Devicegraph* devicegraph);
76 const Impl& get_impl()
const;
85 bool is_partitionable(
const Device* device);
PtType get_default_partition_table_type() const
Get the default partition table type for the partitionable.
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:133
An abstract Block Device.
Definition: BlkDevice.h:40
An abstract base class of storage devices, and a vertex in the Devicegraph.
Definition: Device.h:73
Definition: Partitionable.h:40
A class to calculate partition alignment based on hardware topology.
Definition: Topology.h:57
The storage namespace.
Definition: Actiongraph.h:36
Definition: PartitionTable.h:71