summaryrefslogtreecommitdiffstats
path: root/sys/sys/gpt.h
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2002-11-03 23:53:42 +0000
committermarcel <marcel@FreeBSD.org>2002-11-03 23:53:42 +0000
commit7c911aebf48467f716a27e43ebd616eb441b8bc5 (patch)
treeb1622f981160b644e71660bb0b8b83973644864d /sys/sys/gpt.h
parent974996d4b915760f1e3b6ec4ed8ed8e96628b940 (diff)
downloadFreeBSD-src-7c911aebf48467f716a27e43ebd616eb441b8bc5.zip
FreeBSD-src-7c911aebf48467f716a27e43ebd616eb441b8bc5.tar.gz
Add GPT entry types for partitions we're likely to encounter in the
wild. These include MS partitions and Linux partitions. At this time there's no evidence that HP-UX uses GPT.
Diffstat (limited to 'sys/sys/gpt.h')
-rw-r--r--sys/sys/gpt.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/sys/sys/gpt.h b/sys/sys/gpt.h
index e952534..ee20ce9 100644
--- a/sys/sys/gpt.h
+++ b/sys/sys/gpt.h
@@ -83,4 +83,27 @@ struct gpt_ent {
#define GPT_ENT_TYPE_FREEBSD_VINUM \
{0x516e7cb8,0x6ecf,0x11d6,0x8f,0xf8,{0x00,0x02,0x2d,0x09,0x71,0x2b}}
+/*
+ * Foreign partition types that we're likely to encounter. Note that Linux
+ * apparently choose to share data partitions with MS. I don't what the
+ * advantage might be. I can see how sharing swap partitions is advantaous
+ * though.
+ */
+#define GPT_ENT_TYPE_MS_RESERVED \
+ {0xe3c9e316,0x0b5c,0x4db8,0x81,0x7d,{0xf9,0x2d,0xf0,0x02,0x15,0xae}}
+#define GPT_ENT_TYPE_MS_BASIC_DATA \
+ {0xebd0a0a2,0xb9e5,0x4433,0x87,0xc0,{0x68,0xb6,0xb7,0x26,0x99,0xc7}}
+#define GPT_ENT_TYPE_MS_LDM_METADATA \
+ {0x5808c8aa,0x7e8f,0x42e0,0x85,0xd2,{0xe1,0xe9,0x04,0x34,0xcf,0xb3}}
+#define GPT_ENT_TYPE_MS_LDM_DATA \
+ {0xaf9b60a0,0x1431,0x4f62,0xbc,0x68,{0x33,0x11,0x71,0x4a,0x69,0xad}}
+
+#define GPT_ENT_TYPE_LINUX_DATA GPT_ENT_TYPE_MS_BASIC_DATA
+#define GPT_ENT_TYPE_LINUX_RAID \
+ {0xa19d880f,0x05fc,0x4d3b,0xa0,0x06,{0x74,0x3f,0x0f,0x84,0x91,0x1e}}
+#define GPT_ENT_TYPE_LINUX_SWAP \
+ {0x0657fd6d,0xa4ab,0x43c4,0x84,0xe5,{0x09,0x33,0xc8,0x4b,0x4f,0x4f}}
+#define GPT_ENT_TYPE_LINUX_LVM \
+ {0xe6d6d379,0xf507,0x44c2,0xa2,0x3c,{0x23,0x8f,0x2a,0x3d,0xf9,0x28}}
+
#endif /* _SYS_GPT_H_ */
OpenPOWER on IntegriCloud