[SETUPLIB] Detect GPT-partitioned disks but don't use them since we don't support them at the moment.

- Add checks for GPT disks and either fail or ignore the disk,
  depending on the operation being executed.

[USETUP][REACTOS] Display the disk style more accurately.
This commit is contained in:
Hermès Bélusca-Maïto 2018-12-14 00:30:12 +01:00
parent 2be0fe5f8f
commit a3168373eb
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
5 changed files with 196 additions and 21 deletions

View file

@ -118,7 +118,7 @@ typedef struct _DISKENTRY
BOOLEAN Dirty;
BOOLEAN NewDisk; /* If TRUE, the disk is uninitialized */
BOOLEAN NoMbr; /* If TRUE, the MBR is absent */ // See r40437
PARTITION_STYLE DiskStyle; /* MBR/GPT-partitioned disk, or uninitialized disk (RAW) */
UNICODE_STRING DriverName;
@ -174,6 +174,11 @@ typedef struct _PARTLIST
#define PARTITION_TBL_SIZE 4
#define PARTITION_MAGIC 0xAA55
/* Defines system type for MBR showing that a GPT is following */
#define EFI_PMBR_OSTYPE_EFI 0xEE
#include <pshpack1.h>
typedef struct _PARTITION