/src/util-linux/include/pt-mbr.h
Line  | Count  | Source (jump to first uncovered line)  | 
1  |  | /*  | 
2  |  |  * No copyright is claimed.  This code is in the public domain; do with  | 
3  |  |  * it what you wish.  | 
4  |  |  */  | 
5  |  | #ifndef UTIL_LINUX_PT_MBR_H  | 
6  |  | #define UTIL_LINUX_PT_MBR_H  | 
7  |  |  | 
8  |  | #include <assert.h>  | 
9  |  |  | 
10  |  | struct dos_partition { | 
11  |  |   unsigned char boot_ind;   /* 0x80 - active */  | 
12  |  |   unsigned char bh, bs, bc; /* begin CHS */  | 
13  |  |   unsigned char sys_ind;  | 
14  |  |   unsigned char eh, es, ec; /* end CHS */  | 
15  |  |   unsigned char start_sect[4];  | 
16  |  |   unsigned char nr_sects[4];  | 
17  |  | } __attribute__((packed));  | 
18  |  |  | 
19  | 0  | #define MBR_PT_OFFSET   0x1be  | 
20  |  | #define MBR_PT_BOOTBITS_SIZE  440  | 
21  |  |  | 
22  |  | static inline struct dos_partition *mbr_get_partition(const unsigned char *mbr, int i)  | 
23  | 0  | { | 
24  | 0  |   return (struct dos_partition *)  | 
25  | 0  |     (mbr + MBR_PT_OFFSET + (i * sizeof(struct dos_partition)));  | 
26  | 0  | } Unexecuted instantiation: partitions.c:mbr_get_partition Unexecuted instantiation: sgi.c:mbr_get_partition Unexecuted instantiation: solaris_x86.c:mbr_get_partition Unexecuted instantiation: sun.c:mbr_get_partition Unexecuted instantiation: ultrix.c:mbr_get_partition Unexecuted instantiation: unixware.c:mbr_get_partition Unexecuted instantiation: vfat.c:mbr_get_partition Unexecuted instantiation: aix.c:mbr_get_partition Unexecuted instantiation: atari.c:mbr_get_partition Unexecuted instantiation: bsd.c:mbr_get_partition Unexecuted instantiation: dos.c:mbr_get_partition Unexecuted instantiation: gpt.c:mbr_get_partition Unexecuted instantiation: mac.c:mbr_get_partition Unexecuted instantiation: minix.c:mbr_get_partition  | 
27  |  |  | 
28  |  | /* assemble badly aligned little endian integer */  | 
29  |  | static inline uint32_t __dos_assemble_4le(const unsigned char *p)  | 
30  | 0  | { | 
31  | 0  |   uint32_t last_byte = p[3];  | 
32  |  | 
  | 
33  | 0  |   return p[0] | (p[1] << 8) | (p[2] << 16) | (last_byte << 24);  | 
34  | 0  | } Unexecuted instantiation: partitions.c:__dos_assemble_4le Unexecuted instantiation: sgi.c:__dos_assemble_4le Unexecuted instantiation: solaris_x86.c:__dos_assemble_4le Unexecuted instantiation: sun.c:__dos_assemble_4le Unexecuted instantiation: ultrix.c:__dos_assemble_4le Unexecuted instantiation: unixware.c:__dos_assemble_4le Unexecuted instantiation: vfat.c:__dos_assemble_4le Unexecuted instantiation: aix.c:__dos_assemble_4le Unexecuted instantiation: atari.c:__dos_assemble_4le Unexecuted instantiation: bsd.c:__dos_assemble_4le Unexecuted instantiation: dos.c:__dos_assemble_4le Unexecuted instantiation: gpt.c:__dos_assemble_4le Unexecuted instantiation: mac.c:__dos_assemble_4le Unexecuted instantiation: minix.c:__dos_assemble_4le  | 
35  |  |  | 
36  |  | static inline void __dos_store_4le(unsigned char *p, unsigned int val)  | 
37  | 0  | { | 
38  | 0  |   assert(!(p == NULL));  | 
39  | 0  |   p[0] = (val & 0xff);  | 
40  | 0  |   p[1] = ((val >> 8) & 0xff);  | 
41  | 0  |   p[2] = ((val >> 16) & 0xff);  | 
42  | 0  |   p[3] = ((val >> 24) & 0xff);  | 
43  | 0  | } Unexecuted instantiation: partitions.c:__dos_store_4le Unexecuted instantiation: sgi.c:__dos_store_4le Unexecuted instantiation: solaris_x86.c:__dos_store_4le Unexecuted instantiation: sun.c:__dos_store_4le Unexecuted instantiation: ultrix.c:__dos_store_4le Unexecuted instantiation: unixware.c:__dos_store_4le Unexecuted instantiation: vfat.c:__dos_store_4le Unexecuted instantiation: aix.c:__dos_store_4le Unexecuted instantiation: atari.c:__dos_store_4le Unexecuted instantiation: bsd.c:__dos_store_4le Unexecuted instantiation: dos.c:__dos_store_4le Unexecuted instantiation: gpt.c:__dos_store_4le Unexecuted instantiation: mac.c:__dos_store_4le Unexecuted instantiation: minix.c:__dos_store_4le  | 
44  |  |  | 
45  |  | static inline unsigned int dos_partition_get_start(const struct dos_partition *p)  | 
46  | 0  | { | 
47  | 0  |   return __dos_assemble_4le(&(p->start_sect[0]));  | 
48  | 0  | } Unexecuted instantiation: partitions.c:dos_partition_get_start Unexecuted instantiation: sgi.c:dos_partition_get_start Unexecuted instantiation: solaris_x86.c:dos_partition_get_start Unexecuted instantiation: sun.c:dos_partition_get_start Unexecuted instantiation: ultrix.c:dos_partition_get_start Unexecuted instantiation: unixware.c:dos_partition_get_start Unexecuted instantiation: vfat.c:dos_partition_get_start Unexecuted instantiation: aix.c:dos_partition_get_start Unexecuted instantiation: atari.c:dos_partition_get_start Unexecuted instantiation: bsd.c:dos_partition_get_start Unexecuted instantiation: dos.c:dos_partition_get_start Unexecuted instantiation: gpt.c:dos_partition_get_start Unexecuted instantiation: mac.c:dos_partition_get_start Unexecuted instantiation: minix.c:dos_partition_get_start  | 
49  |  |  | 
50  |  | static inline void dos_partition_set_start(struct dos_partition *p, unsigned int n)  | 
51  | 0  | { | 
52  | 0  |   __dos_store_4le(p->start_sect, n);  | 
53  | 0  | } Unexecuted instantiation: partitions.c:dos_partition_set_start Unexecuted instantiation: sgi.c:dos_partition_set_start Unexecuted instantiation: solaris_x86.c:dos_partition_set_start Unexecuted instantiation: sun.c:dos_partition_set_start Unexecuted instantiation: ultrix.c:dos_partition_set_start Unexecuted instantiation: unixware.c:dos_partition_set_start Unexecuted instantiation: vfat.c:dos_partition_set_start Unexecuted instantiation: aix.c:dos_partition_set_start Unexecuted instantiation: atari.c:dos_partition_set_start Unexecuted instantiation: bsd.c:dos_partition_set_start Unexecuted instantiation: dos.c:dos_partition_set_start Unexecuted instantiation: gpt.c:dos_partition_set_start Unexecuted instantiation: mac.c:dos_partition_set_start Unexecuted instantiation: minix.c:dos_partition_set_start  | 
54  |  |  | 
55  |  | static inline unsigned int dos_partition_get_size(const struct dos_partition *p)  | 
56  | 0  | { | 
57  | 0  |   return __dos_assemble_4le(&(p->nr_sects[0]));  | 
58  | 0  | } Unexecuted instantiation: partitions.c:dos_partition_get_size Unexecuted instantiation: sgi.c:dos_partition_get_size Unexecuted instantiation: solaris_x86.c:dos_partition_get_size Unexecuted instantiation: sun.c:dos_partition_get_size Unexecuted instantiation: ultrix.c:dos_partition_get_size Unexecuted instantiation: unixware.c:dos_partition_get_size Unexecuted instantiation: vfat.c:dos_partition_get_size Unexecuted instantiation: aix.c:dos_partition_get_size Unexecuted instantiation: atari.c:dos_partition_get_size Unexecuted instantiation: bsd.c:dos_partition_get_size Unexecuted instantiation: dos.c:dos_partition_get_size Unexecuted instantiation: gpt.c:dos_partition_get_size Unexecuted instantiation: mac.c:dos_partition_get_size Unexecuted instantiation: minix.c:dos_partition_get_size  | 
59  |  |  | 
60  |  | static inline void dos_partition_set_size(struct dos_partition *p, unsigned int n)  | 
61  | 0  | { | 
62  | 0  |   __dos_store_4le(p->nr_sects, n);  | 
63  | 0  | } Unexecuted instantiation: partitions.c:dos_partition_set_size Unexecuted instantiation: sgi.c:dos_partition_set_size Unexecuted instantiation: solaris_x86.c:dos_partition_set_size Unexecuted instantiation: sun.c:dos_partition_set_size Unexecuted instantiation: ultrix.c:dos_partition_set_size Unexecuted instantiation: unixware.c:dos_partition_set_size Unexecuted instantiation: vfat.c:dos_partition_set_size Unexecuted instantiation: aix.c:dos_partition_set_size Unexecuted instantiation: atari.c:dos_partition_set_size Unexecuted instantiation: bsd.c:dos_partition_set_size Unexecuted instantiation: dos.c:dos_partition_set_size Unexecuted instantiation: gpt.c:dos_partition_set_size Unexecuted instantiation: mac.c:dos_partition_set_size Unexecuted instantiation: minix.c:dos_partition_set_size  | 
64  |  |  | 
65  |  | static inline void dos_partition_sync_chs(struct dos_partition *p, unsigned long long int part_offset, unsigned int geom_sectors, unsigned int geom_heads)  | 
66  | 0  | { | 
67  | 0  |   unsigned long long int start = part_offset + dos_partition_get_start(p);  | 
68  | 0  |   unsigned long long int stop = start + dos_partition_get_size(p) - 1;  | 
69  | 0  |   unsigned int spc = geom_heads * geom_sectors;  | 
70  | 0  | 
  | 
71  | 0  |   if (start / spc > 1023)  | 
72  | 0  |     start = spc * 1024 - 1;  | 
73  | 0  |   if (stop / spc > 1023)  | 
74  | 0  |     stop = spc * 1024 - 1;  | 
75  | 0  | 
  | 
76  | 0  |   p->bc = (start / spc) & 0xff;  | 
77  | 0  |   p->bh = (start / geom_sectors) % geom_heads;  | 
78  | 0  |   p->bs = ((start % geom_sectors + 1) & 0x3f) |  | 
79  | 0  |     (((start / spc) >> 2) & 0xc0);  | 
80  | 0  | 
  | 
81  | 0  |   p->ec = (stop / spc) & 0xff;  | 
82  | 0  |   p->eh = (stop / geom_sectors) % geom_heads;  | 
83  | 0  |   p->es = ((stop % geom_sectors + 1) & 0x3f) |  | 
84  | 0  |     (((stop / spc) >> 2) & 0xc0);  | 
85  | 0  | } Unexecuted instantiation: partitions.c:dos_partition_sync_chs Unexecuted instantiation: sgi.c:dos_partition_sync_chs Unexecuted instantiation: solaris_x86.c:dos_partition_sync_chs Unexecuted instantiation: sun.c:dos_partition_sync_chs Unexecuted instantiation: ultrix.c:dos_partition_sync_chs Unexecuted instantiation: unixware.c:dos_partition_sync_chs Unexecuted instantiation: vfat.c:dos_partition_sync_chs Unexecuted instantiation: aix.c:dos_partition_sync_chs Unexecuted instantiation: atari.c:dos_partition_sync_chs Unexecuted instantiation: bsd.c:dos_partition_sync_chs Unexecuted instantiation: dos.c:dos_partition_sync_chs Unexecuted instantiation: gpt.c:dos_partition_sync_chs Unexecuted instantiation: mac.c:dos_partition_sync_chs Unexecuted instantiation: minix.c:dos_partition_sync_chs  | 
86  |  |  | 
87  |  | static inline int mbr_is_valid_magic(const unsigned char *mbr)  | 
88  | 0  | { | 
89  | 0  |   return mbr[510] == 0x55 && mbr[511] == 0xaa ? 1 : 0;  | 
90  | 0  | } Unexecuted instantiation: partitions.c:mbr_is_valid_magic Unexecuted instantiation: sgi.c:mbr_is_valid_magic Unexecuted instantiation: solaris_x86.c:mbr_is_valid_magic Unexecuted instantiation: sun.c:mbr_is_valid_magic Unexecuted instantiation: ultrix.c:mbr_is_valid_magic Unexecuted instantiation: unixware.c:mbr_is_valid_magic Unexecuted instantiation: vfat.c:mbr_is_valid_magic Unexecuted instantiation: aix.c:mbr_is_valid_magic Unexecuted instantiation: atari.c:mbr_is_valid_magic Unexecuted instantiation: bsd.c:mbr_is_valid_magic Unexecuted instantiation: dos.c:mbr_is_valid_magic Unexecuted instantiation: gpt.c:mbr_is_valid_magic Unexecuted instantiation: mac.c:mbr_is_valid_magic Unexecuted instantiation: minix.c:mbr_is_valid_magic  | 
91  |  |  | 
92  |  | static inline void mbr_set_magic(unsigned char *b)  | 
93  | 0  | { | 
94  | 0  |   b[510] = 0x55;  | 
95  | 0  |   b[511] = 0xaa;  | 
96  | 0  | } Unexecuted instantiation: partitions.c:mbr_set_magic Unexecuted instantiation: sgi.c:mbr_set_magic Unexecuted instantiation: solaris_x86.c:mbr_set_magic Unexecuted instantiation: sun.c:mbr_set_magic Unexecuted instantiation: ultrix.c:mbr_set_magic Unexecuted instantiation: unixware.c:mbr_set_magic Unexecuted instantiation: vfat.c:mbr_set_magic Unexecuted instantiation: aix.c:mbr_set_magic Unexecuted instantiation: atari.c:mbr_set_magic Unexecuted instantiation: bsd.c:mbr_set_magic Unexecuted instantiation: dos.c:mbr_set_magic Unexecuted instantiation: gpt.c:mbr_set_magic Unexecuted instantiation: mac.c:mbr_set_magic Unexecuted instantiation: minix.c:mbr_set_magic  | 
97  |  |  | 
98  |  | static inline unsigned int mbr_get_id(const unsigned char *mbr)  | 
99  | 0  | { | 
100  | 0  |   return __dos_assemble_4le(&mbr[440]);  | 
101  | 0  | } Unexecuted instantiation: partitions.c:mbr_get_id Unexecuted instantiation: sgi.c:mbr_get_id Unexecuted instantiation: solaris_x86.c:mbr_get_id Unexecuted instantiation: sun.c:mbr_get_id Unexecuted instantiation: ultrix.c:mbr_get_id Unexecuted instantiation: unixware.c:mbr_get_id Unexecuted instantiation: vfat.c:mbr_get_id Unexecuted instantiation: aix.c:mbr_get_id Unexecuted instantiation: atari.c:mbr_get_id Unexecuted instantiation: bsd.c:mbr_get_id Unexecuted instantiation: dos.c:mbr_get_id Unexecuted instantiation: gpt.c:mbr_get_id Unexecuted instantiation: mac.c:mbr_get_id Unexecuted instantiation: minix.c:mbr_get_id  | 
102  |  |  | 
103  |  | static inline void mbr_set_id(unsigned char *b, unsigned int id)  | 
104  | 0  | { | 
105  | 0  |   __dos_store_4le(&b[440], id);  | 
106  | 0  | } Unexecuted instantiation: partitions.c:mbr_set_id Unexecuted instantiation: sgi.c:mbr_set_id Unexecuted instantiation: solaris_x86.c:mbr_set_id Unexecuted instantiation: sun.c:mbr_set_id Unexecuted instantiation: ultrix.c:mbr_set_id Unexecuted instantiation: unixware.c:mbr_set_id Unexecuted instantiation: vfat.c:mbr_set_id Unexecuted instantiation: aix.c:mbr_set_id Unexecuted instantiation: atari.c:mbr_set_id Unexecuted instantiation: bsd.c:mbr_set_id Unexecuted instantiation: dos.c:mbr_set_id Unexecuted instantiation: gpt.c:mbr_set_id Unexecuted instantiation: mac.c:mbr_set_id Unexecuted instantiation: minix.c:mbr_set_id  | 
107  |  |  | 
108  |  | enum { | 
109  |  |   MBR_EMPTY_PARTITION   = 0x00,  | 
110  |  |   MBR_FAT12_PARTITION   = 0x01,  | 
111  |  |   MBR_XENIX_ROOT_PARTITION  = 0x02,  | 
112  |  |   MBR_XENIX_USR_PARTITION   = 0x03,  | 
113  |  |   MBR_FAT16_LESS32M_PARTITION = 0x04,  | 
114  |  |   MBR_DOS_EXTENDED_PARTITION  = 0x05,  | 
115  |  |   MBR_FAT16_PARTITION   = 0x06, /* DOS 16-bit >=32M */  | 
116  |  |   MBR_HPFS_NTFS_PARTITION   = 0x07, /* OS/2 IFS, e.g., HPFS or NTFS or QNX or exFAT */  | 
117  |  |   MBR_AIX_PARTITION   = 0x08, /* AIX boot (AIX -- PS/2 port) or SplitDrive */  | 
118  |  |   MBR_AIX_BOOTABLE_PARTITION  = 0x09, /* AIX data or Coherent */  | 
119  |  |   MBR_OS2_BOOTMNGR_PARTITION  = 0x0a, /* OS/2 Boot Manager */  | 
120  |  |   MBR_W95_FAT32_PARTITION   = 0x0b,  | 
121  |  |   MBR_W95_FAT32_LBA_PARTITION = 0x0c, /* LBA really is `Extended Int 13h' */  | 
122  |  |   MBR_W95_FAT16_LBA_PARTITION = 0x0e,  | 
123  |  |   MBR_W95_EXTENDED_PARTITION  = 0x0f,  | 
124  |  |   MBR_OPUS_PARTITION    = 0x10,  | 
125  |  |   MBR_HIDDEN_FAT12_PARTITION  = 0x11,  | 
126  |  |   MBR_COMPAQ_DIAGNOSTICS_PARTITION = 0x12,  | 
127  |  |   MBR_HIDDEN_FAT16_L32M_PARTITION = 0x14,  | 
128  |  |   MBR_HIDDEN_FAT16_PARTITION  = 0x16,  | 
129  |  |   MBR_HIDDEN_HPFS_NTFS_PARTITION  = 0x17,  | 
130  |  |   MBR_AST_SMARTSLEEP_PARTITION  = 0x18,  | 
131  |  |   MBR_HIDDEN_W95_FAT32_PARTITION  = 0x1b,  | 
132  |  |   MBR_HIDDEN_W95_FAT32LBA_PARTITION = 0x1c,  | 
133  |  |   MBR_HIDDEN_W95_FAT16LBA_PARTITION = 0x1e,  | 
134  |  |   MBR_NEC_DOS_PARTITION   = 0x24,  | 
135  |  |   MBR_PLAN9_PARTITION   = 0x39,  | 
136  |  |   MBR_PARTITIONMAGIC_PARTITION  = 0x3c,  | 
137  |  |   MBR_VENIX80286_PARTITION  = 0x40,  | 
138  |  |   MBR_PPC_PREP_BOOT_PARTITION = 0x41,  | 
139  |  |   MBR_SFS_PARTITION   = 0x42,  | 
140  |  |   MBR_QNX_4X_PARTITION    = 0x4d,  | 
141  |  |   MBR_QNX_4X_2ND_PARTITION  = 0x4e,  | 
142  |  |   MBR_QNX_4X_3RD_PARTITION  = 0x4f,  | 
143  |  |   MBR_DM_PARTITION    = 0x50,  | 
144  |  |   MBR_DM6_AUX1_PARTITION    = 0x51, /* (or Novell) */  | 
145  |  |   MBR_CPM_PARTITION   = 0x52, /* CP/M or Microport SysV/AT */  | 
146  |  |   MBR_DM6_AUX3_PARTITION    = 0x53,  | 
147  |  |   MBR_DM6_PARTITION   = 0x54,  | 
148  |  |   MBR_EZ_DRIVE_PARTITION    = 0x55,  | 
149  |  |   MBR_GOLDEN_BOW_PARTITION  = 0x56,  | 
150  |  |   MBR_PRIAM_EDISK_PARTITION = 0x5c,  | 
151  |  |   MBR_SPEEDSTOR_PARTITION   = 0x61,  | 
152  |  |   MBR_GNU_HURD_PARTITION    = 0x63, /* GNU HURD or Mach or Sys V/386 (such as ISC UNIX) */  | 
153  |  |   MBR_UNIXWARE_PARTITION    = MBR_GNU_HURD_PARTITION,  | 
154  |  |   MBR_NETWARE_286_PARTITION = 0x64,  | 
155  |  |   MBR_NETWARE_386_PARTITION = 0x65,  | 
156  |  |   MBR_DISKSECURE_MULTIBOOT_PARTITION = 0x70,  | 
157  |  |   MBR_PC_IX_PARTITION   = 0x75,  | 
158  |  |   MBR_OLD_MINIX_PARTITION   = 0x80, /* Minix 1.4a and earlier */  | 
159  |  |   MBR_MINIX_PARTITION   = 0x81, /* Minix 1.4b and later */  | 
160  |  |   MBR_LINUX_SWAP_PARTITION  = 0x82,  | 
161  |  |   MBR_SOLARIS_X86_PARTITION = MBR_LINUX_SWAP_PARTITION,  | 
162  |  |   MBR_LINUX_DATA_PARTITION  = 0x83,  | 
163  |  |   MBR_OS2_HIDDEN_DRIVE_PARTITION  = 0x84, /* also hibernation MS APM, Intel Rapid Start */  | 
164  |  |   MBR_INTEL_HIBERNATION_PARTITION = MBR_OS2_HIDDEN_DRIVE_PARTITION,  | 
165  |  |   MBR_LINUX_EXTENDED_PARTITION  = 0x85,  | 
166  |  |   MBR_NTFS_VOL_SET1_PARTITION = 0x86,  | 
167  |  |   MBR_NTFS_VOL_SET2_PARTITION = 0x87,  | 
168  |  |   MBR_LINUX_PLAINTEXT_PARTITION = 0x88,  | 
169  |  |   MBR_LINUX_LVM_PARTITION   = 0x8e,  | 
170  |  |   MBR_AMOEBA_PARTITION    = 0x93,  | 
171  |  |   MBR_AMOEBA_BBT_PARTITION  = 0x94, /* (bad block table) */  | 
172  |  |   MBR_BSD_OS_PARTITION    = 0x9f, /* BSDI */  | 
173  |  |   MBR_THINKPAD_HIBERNATION_PARTITION = 0xa0,  | 
174  |  |   MBR_FREEBSD_PARTITION   = 0xa5, /* various BSD flavours */  | 
175  |  |   MBR_OPENBSD_PARTITION   = 0xa6,  | 
176  |  |   MBR_NEXTSTEP_PARTITION    = 0xa7,  | 
177  |  |   MBR_DARWIN_UFS_PARTITION  = 0xa8,  | 
178  |  |   MBR_NETBSD_PARTITION    = 0xa9,  | 
179  |  |   MBR_DARWIN_BOOT_PARTITION = 0xab,  | 
180  |  |   MBR_HFS_HFS_PARTITION   = 0xaf,  | 
181  |  |   MBR_BSDI_FS_PARTITION   = 0xb7,  | 
182  |  |   MBR_BSDI_SWAP_PARTITION   = 0xb8,  | 
183  |  |   MBR_BOOTWIZARD_HIDDEN_PARTITION = 0xbb,  | 
184  |  |   MBR_ACRONIS_FAT32LBA_PARTITION  = 0xbc, /* Acronis Secure Zone with ipl for loader F11.SYS */  | 
185  |  |   MBR_SOLARIS_BOOT_PARTITION  = 0xbe,  | 
186  |  |   MBR_SOLARIS_PARTITION   = 0xbf,  | 
187  |  |   MBR_DRDOS_FAT12_PARTITION = 0xc1,  | 
188  |  |   MBR_DRDOS_FAT16_L32M_PARTITION  = 0xc4,  | 
189  |  |   MBR_DRDOS_FAT16_PARTITION = 0xc6,  | 
190  |  |   MBR_SYRINX_PARTITION    = 0xc7,  | 
191  |  |   MBR_NONFS_DATA_PARTITION  = 0xda,  | 
192  |  |   MBR_CPM_CTOS_PARTITION    = 0xdb, /* CP/M or Concurrent CP/M or Concurrent DOS or CTOS */  | 
193  |  |   MBR_DELL_UTILITY_PARTITION  = 0xde, /* Dell PowerEdge Server utilities */  | 
194  |  |   MBR_BOOTIT_PARTITION    = 0xdf, /* BootIt EMBRM */  | 
195  |  |   MBR_DOS_ACCESS_PARTITION  = 0xe1, /* DOS access or SpeedStor 12-bit FAT extended partition */  | 
196  |  |   MBR_DOS_RO_PARTITION    = 0xe3, /* DOS R/O or SpeedStor */  | 
197  |  |   MBR_SPEEDSTOR_EXTENDED_PARTITION = 0xe4, /* SpeedStor 16-bit FAT extended partition < 1024 cyl. */  | 
198  |  |   MBR_RUFUS_EXTRA_PARTITION = 0xea, /* Rufus extra partition for alignment */  | 
199  |  |   MBR_BEOS_FS_PARTITION   = 0xeb,  | 
200  |  |   MBR_GPT_PARTITION   = 0xee, /* Intel EFI GUID Partition Table */  | 
201  |  |   MBR_EFI_SYSTEM_PARTITION  = 0xef, /* Intel EFI System Partition */  | 
202  |  |   MBR_LINUX_PARISC_BOOT_PARTITION = 0xf0, /* Linux/PA-RISC boot loader */  | 
203  |  |   MBR_SPEEDSTOR1_PARTITION  = 0xf1,  | 
204  |  |   MBR_SPEEDSTOR2_PARTITION  = 0xf4, /* SpeedStor large partition */  | 
205  |  |   MBR_DOS_SECONDARY_PARTITION = 0xf2, /* DOS 3.3+ secondary */  | 
206  |  |   MBR_EBBR_PROTECTIVE_PARTITION = 0xf8, /* Arm EBBR firmware protective partition */  | 
207  |  |   MBR_VMWARE_VMFS_PARTITION = 0xfb,  | 
208  |  |   MBR_VMWARE_VMKCORE_PARTITION  = 0xfc, /* VMware kernel dump partition */  | 
209  |  |   MBR_LINUX_RAID_PARTITION  = 0xfd, /* Linux raid partition with autodetect using persistent superblock */  | 
210  |  |   MBR_LANSTEP_PARTITION   = 0xfe, /* SpeedStor >1024 cyl. or LANstep */  | 
211  |  |   MBR_XENIX_BBT_PARTITION   = 0xff, /* Xenix Bad Block Table */  | 
212  |  | };  | 
213  |  |  | 
214  |  | #endif /* UTIL_LINUX_PT_MBR_H */  |