lspart

view ptype.h @ 0:29d89c00e611

simple partition table reading test
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 14 Oct 2011 07:45:44 +0300
parents
children
line source
1 #ifndef PTYPE_H_
2 #define PTYPE_H_
5 #define PTYPE_EXT 0x5
6 #define PTYPE_EXT_LBA 0xf
9 #define PTYPES_SIZE (sizeof partypes / sizeof *partypes)
11 struct {
12 int type;
13 const char *name;
14 } partypes[] = {
15 {0, "empty"},
16 {0x01, "fat12"},
17 {0x02, "xenix root"},
18 {0x03, "xenix usr"},
19 {0x04, "fat16 (small)"},
20 {0x05, "extended"},
21 {0x06, "fat16"},
22 {0x07, "hpfs/ntfs"},
23 {0x08, "aix"},
24 {0x09, "aix bootable"},
25 {0x0a, "os/2 boot manager"},
26 {0x0b, "fat32 (chs)"},
27 {0x0c, "fat32 (lba)"},
28 {0x0e, "fat16 (lba)"},
29 {0x0f, "extended (lba)"},
30 {0x11, "hidden fat12"},
31 {0x12, "compaq diagnostics"},
32 {0x14, "hidden fat16 (small)"},
33 {0x16, "hidden fat16"},
34 {0x17, "hidden hpfs/ntfs"},
35 {0x1b, "hidden fat32"},
36 {0x1c, "hidden fat32 (lba)"},
37 {0x1d, "hidden fat16 (lba)"},
38 {0x24, "nec dos"},
39 {0x27, "windows recovery"},
40 {0x39, "plan 9"},
41 {0x3c, "partition magic"},
42 {0x4d, "qnx"},
43 {0x4e, "qnx 2nd"},
44 {0x4f, "qnx 3rd"},
45 {0x52, "cp/m"},
46 {0x63, "hurd/sysv"},
47 {0x64, "netware 286"},
48 {0x65, "netware 386"},
49 {0x80, "minix (old)"},
50 {0x81, "minix"},
51 {0x82, "linux swap/solaris"},
52 {0x83, "linux"},
53 {0x84, "windows suspend"},
54 {0x85, "linux extended"},
55 {0x86, "ntfs volume?"},
56 {0x87, "ntfs volume?"},
57 {0x88, "linux plaintext"},
58 {0x8e, "linux lvm"},
59 {0x9f, "bsd/os"},
60 {0xa0, "laptop diagnostic"},
61 {0xa5, "freebsd slice"},
62 {0xa6, "openbsd slice"},
63 {0xa7, "nextstep"},
64 {0xa8, "darwin ufs"},
65 {0xa9, "netbsd slice"},
66 {0xab, "darwin boot"},
67 {0xaf, "hfs/hfs+"},
68 {0xb7, "bsdi"},
69 {0xb8, "bsdi swap"},
70 {0xbe, "solaris boot"},
71 {0xbf, "solaris"},
72 {0xde, "dell diagnostic"},
73 {0xeb, "beos"},
74 {0xee, "gpt"},
75 {0xef, "efi (fat)"},
76 {0xf0, "linux/pa-risc boot"},
77 {0xf2, "dos secondary"},
78 {0xfb, "vmware vmfs"},
79 {0xfc, "vmware vmkcore"},
80 {0xfd, "linux raid auto"}
81 };
83 #endif /* PTYPE_H_ */