diff options
author | rpaulo <rpaulo@FreeBSD.org> | 2008-09-05 12:49:14 +0000 |
---|---|---|
committer | rpaulo <rpaulo@FreeBSD.org> | 2008-09-05 12:49:14 +0000 |
commit | ed7177a94f36fcc7c19de810e6feae21ae110f66 (patch) | |
tree | c53fdf22825abad36d8d86345147ed26bc94afac /sys/geom/part/g_part_gpt.c | |
parent | 1dfa0b9157918610241fac142e3dc1f8af0bbbc0 (diff) | |
download | FreeBSD-src-ed7177a94f36fcc7c19de810e6feae21ae110f66.zip FreeBSD-src-ed7177a94f36fcc7c19de810e6feae21ae110f66.tar.gz |
Detect Apple HFS GPT slices.
Diffstat (limited to 'sys/geom/part/g_part_gpt.c')
-rw-r--r-- | sys/geom/part/g_part_gpt.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/geom/part/g_part_gpt.c b/sys/geom/part/g_part_gpt.c index d700d0e..3a3179d 100644 --- a/sys/geom/part/g_part_gpt.c +++ b/sys/geom/part/g_part_gpt.c @@ -140,6 +140,7 @@ static struct uuid gpt_uuid_freebsd_vinum = GPT_ENT_TYPE_FREEBSD_VINUM; static struct uuid gpt_uuid_freebsd_zfs = GPT_ENT_TYPE_FREEBSD_ZFS; static struct uuid gpt_uuid_linux_swap = GPT_ENT_TYPE_LINUX_SWAP; static struct uuid gpt_uuid_mbr = GPT_ENT_TYPE_MBR; +static struct uuid gpt_uuid_apple_hfs = GPT_ENT_TYPE_APPLE_HFS; static struct uuid gpt_uuid_unused = GPT_ENT_TYPE_UNUSED; static void @@ -337,6 +338,11 @@ gpt_parse_type(const char *type, struct uuid *uuid) *uuid = gpt_uuid_mbr; return (0); } + alias = g_part_alias_name(G_PART_ALIAS_APPLE_HFS); + if (!strcasecmp(type, alias)) { + *uuid = gpt_uuid_apple_hfs; + return (0); + } return (EINVAL); } |