summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2019-12-30 08:17:16 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2019-12-30 08:17:16 +0100
commit958cf91faecee758a316bd11f016ad44e8e00a1a (patch)
tree093c224d0fab5f11aacca8fec4fada0be1203a13
parenta48815d4f43ea6403a4927f9e0f63dde620d4569 (diff)
EFI GPT: List Apple Core Storage by its name
-rw-r--r--src/common.h2
-rw-r--r--src/partgpt.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
index a7361fd..69c5e12 100644
--- a/src/common.h
+++ b/src/common.h
@@ -193,6 +193,8 @@ struct efi_guid_s
((const efi_guid_t){le32(0x4c616265),le16(0x6c00),le16(0x11aa),0xaa,0x11,{0x00,0x30,0x65,0x43,0xec,0xac}})
#define GPT_ENT_TYPE_MAC_TV_RECOVERY \
((const efi_guid_t){le32(0x5265636f),le16(0x7665),le16(0x11aa),0xaa,0x11,{0x00,0x30,0x65,0x43,0xec,0xac}})
+#define GPT_ENT_TYPE_APPLE_CORE_STORAGE \
+ ((const efi_guid_t){le32(0x53746F72),le16(0x6167),le16(0x11aa),0xaa,0x11,{0x00,0x30,0x65,0x43,0xec,0xac}})
#define GPT_ENT_TYPE_SOLARIS_BOOT \
((const efi_guid_t){le32(0x6a82cb45),le16(0x1dd2),le16(0x11b2),0x99,0xa6,{0x08,0x00,0x20,0x73,0x66,0x31}})
diff --git a/src/partgpt.c b/src/partgpt.c
index 025439d..4ede59c 100644
--- a/src/partgpt.c
+++ b/src/partgpt.c
@@ -108,6 +108,7 @@ const struct systypes_gtp gpt_sys_types[] = {
{ GPT_ENT_TYPE_MAC_BOOT, "Mac Boot" },
{ GPT_ENT_TYPE_MAC_LABEL, "Mac Label" },
{ GPT_ENT_TYPE_MAC_TV_RECOVERY, "Mac TV Recovery" },
+ { GPT_ENT_TYPE_APPLE_CORE_STORAGE, "Apple Core Storage" },
{ GPT_ENT_TYPE_SOLARIS_BOOT, "Solaris /boot" },
{ GPT_ENT_TYPE_SOLARIS_ROOT, "Solaris /" },
{ GPT_ENT_TYPE_SOLARIS_SWAP, "Solaris Swap" },