PartInfo.h File Reference
#include <Storage/Partition.h>
#include <Data/Uuid.h>
#include "Error.h"
Include dependency graph for PartInfo.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Storage::Disk::DiskPart
 Adds information specific to MBR/GPT disk partitions. More...
 
struct  Storage::Disk::PartInfo
 In-memory partition information. More...
 
class  Storage::Disk::BasePartitionTable
 Common type for MBR/GPT partition table. More...
 

Namespaces

 Storage
 
 Storage::Disk
 

Typedefs

using Storage::Disk::SysTypes = BitSet< uint8_t, SysType >
 

Enumerations

enum class  Storage::Disk::SysType : uint8_t {
  Storage::Disk::unknown , Storage::Disk::fat12 , Storage::Disk::fat16 , Storage::Disk::fat32 ,
  Storage::Disk::exfat
}
 Identifies exact disk volume type. More...
 
enum  Storage::Disk::SysIndicator {
  Storage::Disk::SI_FAT12 = 0x01 , Storage::Disk::SI_FAT16 = 0x04 , Storage::Disk::SI_FAT16B = 0x06 , Storage::Disk::SI_IFS = 0x07 ,
  Storage::Disk::SI_EXFAT = 0x07 , Storage::Disk::SI_FAT32X = 0x0c
}
 MBR partition system type indicator values. More...
 

Functions

SysType Storage::Disk::getSysTypeFromIndicator (SysIndicator si)
 
Error Storage::Disk::validate (BasePartitionTable &table, storage_size_t firstAvailableBlock, storage_size_t totalAvailableBlocks, uint32_t blockSize)
 Validate partition table entries. More...
 
String toString (Storage::Disk::SysType type)
 

Variables

constexpr uint32_t Storage::Disk::PARTITION_ALIGN {0x100000U}
 
static constexpr SysTypes Storage::Disk::fatTypes = SysType::fat12 | SysType::fat16 | SysType::fat32 | SysType::exfat
 

Function Documentation

◆ toString()

String toString ( Storage::Disk::SysType  type)