From d6830ac89133774291153c8de7e4d93ce3c4080e Mon Sep 17 00:00:00 2001 From: Rex Jolliff Date: Fri, 13 Nov 1998 08:06:13 +0000 Subject: [PATCH] added more partition types including FAT32 svn path=/trunk/; revision=94 --- reactos/drivers/dd/ide/partitio.h | 52 ++++++++++++++++++++++++++----- 1 file changed, 45 insertions(+), 7 deletions(-) diff --git a/reactos/drivers/dd/ide/partitio.h b/reactos/drivers/dd/ide/partitio.h index 0329667b320..97dec16ceb1 100644 --- a/reactos/drivers/dd/ide/partitio.h +++ b/reactos/drivers/dd/ide/partitio.h @@ -21,17 +21,55 @@ (c) = (lba) & 0xff, \ (s) |= ((lba) >> 2) & 0xc0) - +/* taken from linux fdisk src */ typedef enum PartitionTypes { PTEmpty = 0, - PTDOS3xPrimary = 1, - PT_OLDDOS16Bit = 4, - PTDosExtended = 5, - PTDos5xPrimary = 6 + PTDOS3xPrimary, /* 1 */ + PTXENIXRoot, /* 2 */ + PTXENIXUsr, /* 3 */ + PTOLDDOS16Bit, /* 4 */ + PTDosExtended, /* 5 */ + PTDos5xPrimary, /* 6 */ + PTOS2HPFS, /* 7 */ + PTAIX, /* 8 */ + PTAIXBootable, /* 9 */ + PTOS2BootMgr, /* 10 */ + PTWin95FAT32, + PTWin95FAT32LBA, + PTWin95FAT16LBA, + PTWin95ExtendedLBA, + PTVenix286 = 0x40, + PTNovell = 0x51, + PTMicroport = 0x52, + PTGnuHurd = 0x63, + PTNetware286 = 0x64, + PTNetware386 = 0x65, + PTPCIX = 0x75, + PTOldMinix = 0x80, + PTMinix = 0x81, + PTLinuxSwap = 0x82, + PTLinuxExt2 = 0x83, + PTAmoeba = 0x93, + PTAmoebaBBT = 0x94, + PTBSD = 0xa5, + PTBSDIFS = 0xb7, + PTBSDISwap = 0xb8, + PTSyrinx = 0xc7, + PTCPM = 0xdb, + PTDOSAccess = 0xe1, + PTDOSRO = 0xe3, + PTDOSSecondary = 0xf2, + PTBBT = 0xff } PARTITIONTYPES; -#define PartitionIsSupported(P) ((P)->PartitionType == PTDOS3xPrimary || \ - (P)->PartitionType == PT_OLDDOS16Bit || (P)->PartitionType == PTDos5xPrimary) +#define PartitionIsSupported(P) \ + ((P)->PartitionType == PTDOS3xPrimary || \ + (P)->PartitionType == PTOLDDOS16Bit || \ + (P)->PartitionType == PTDos5xPrimary || \ + (P)->PartitionType == PTWin95FAT32 || \ + (P)->PartitionType == PTWin95FAT32LBA || \ + (P)->PartitionType == PTWin95FAT16LBA || \ + (P)->PartitionType == PTLinuxExt2) typedef struct Partition { __u8 BootFlags;