PartInfo.h
Go to the documentation of this file.
29 * While not a native feature of file systems, operating systems should also aim to align partitions correctly,
31 * A typical practice for personal computers is to have each partition aligned to start at a 1 MiB (= 1,048,576 bytes) mark,
32 * which covers all common SSD page and block size scenarios, as it is divisible by all commonly used sizes
50 static constexpr SysTypes fatTypes = SysType::fat12 | SysType::fat16 | SysType::fat32 | SysType::exfat;
79 }
106 {
146 Error validate(BasePartitionTable& table, storage_size_t firstAvailableBlock, storage_size_t totalAvailableBlocks,
Adds information specific to MBR/GPT disk partitions.
Definition: PartInfo.h:102
Class template for singly-linked list of objects.
Definition: LinkedObjectList.h:174
String toString(Storage::Disk::SysType type)
OwnedLinkedObjectListTemplate< PartInfo > OwnedList
Definition: PartInfo.h:120
Definition: Partition.h:77
const Disk::DiskPart * diskpart() const override
Obtain additional disk information.
Definition: PartInfo.h:131
SysType systype
Identifies volume filing system type.
Definition: PartInfo.h:105
size_t printTo(Print &p) const
Print full contents of this structure.
Uuid uniqueGuid
GPT partition unique GUID.
Definition: PartInfo.h:104
Error validate(BasePartitionTable &table, storage_size_t firstAvailableBlock, storage_size_t totalAvailableBlocks, uint32_t blockSize)
Validate partition table entries.
SysType getSysTypeFromIndicator(SysIndicator si)
Definition: PartInfo.h:82
SysIndicator
MBR partition system type indicator values.
Definition: PartInfo.h:73