1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:37:46 +00:00

PartitionTable: Initial GPT Support, Adding Block Limit

Also added a script to handle creation of GPT partitioned disk (with
GRUB config file). Block limit will be used to disallow potential access
to other partitions.
This commit is contained in:
supercomputer7 2019-10-07 03:12:37 +03:00 committed by Andreas Kling
parent b5a043cf42
commit de49714f36
10 changed files with 273 additions and 13 deletions

View file

@ -6,6 +6,7 @@
#include <Kernel/Devices/DiskPartition.h>
#define MBR_SIGNATURE 0xaa55
#define MBR_PROTECTIVE 0xEE
struct MBRPartitionEntry {
u8 status;
@ -35,6 +36,7 @@ public:
~MBRPartitionTable();
bool initialize();
bool is_protective_mbr() const;
RefPtr<DiskPartition> partition(unsigned index);
private: