24 #ifndef STORAGE_PARTITION_H 25 #define STORAGE_PARTITION_H 28 #include "storage/Devices/BlkDevice.h" 40 PRIMARY, EXTENDED, LOGICAL
118 unsigned int get_number()
const;
123 unsigned int get_id()
const;
124 void set_id(
unsigned int id);
129 bool is_boot()
const;
145 void set_boot(
bool boot);
150 bool is_legacy_boot()
const;
155 void set_legacy_boot(
bool legacy_boot);
168 const Impl& get_impl()
const;
170 virtual Partition* clone()
const override;
179 bool is_partition(
const Device* device);
Only for MSDOS.
Definition: Partition.h:66
BIOS boot partition (https://en.wikipedia.org/wiki/BIOS_boot_partition), only for GPT...
Definition: Partition.h:95
Only set during probing.
Definition: Partition.h:91
For MSDOS and GPT.
Definition: Partition.h:75
Only for MSDOS.
Definition: Partition.h:60
PartitionType
Partition type (primary, extended, logical)
Definition: Partition.h:39
Only for MSDOS.
Definition: Partition.h:57
LVM partition, for MSDOS and GPT.
Definition: Partition.h:82
A start/length pair with a block size.
Definition: Region.h:71
PPC PReP Boot partition, for MSDOS and GPT.
Definition: Partition.h:72
Windows basic data partition, only for GPT.
Definition: Partition.h:98
EFI System Partition, for MSDOS and GPT.
Definition: Partition.h:88
The master container of the libstorage.
Definition: Devicegraph.h:133
Swap partition, for MSDOS and GPT, but GPT only when the partition is created.
Definition: Partition.h:79
Only for MSDOS.
Definition: Partition.h:63
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
Microsoft reserved partition, only for GPT.
Definition: Partition.h:101
Only for MSDOS.
Definition: Partition.h:69
Definition: Partitionable.h:40
A partition of a Partitionable, e.g. Disk or Md.
Definition: Partition.h:107
RAID partition, for MSDOS and GPT.
Definition: Partition.h:85
The storage namespace.
Definition: Actiongraph.h:36
Definition: PartitionTable.h:71
IdNum
Enum with values used as partition ids.
Definition: Partition.h:54