diff options
author | ae <ae@FreeBSD.org> | 2014-10-11 06:04:44 +0000 |
---|---|---|
committer | ae <ae@FreeBSD.org> | 2014-10-11 06:04:44 +0000 |
commit | cd29b4a4d0464f96c3ffd334e8cac748beefe6e2 (patch) | |
tree | 9cb155787b56e1ac453faac3c826a39d7a7ff72f | |
parent | 31f18a365baca98f976c0dd67c44d218a2d31952 (diff) | |
download | FreeBSD-src-cd29b4a4d0464f96c3ffd334e8cac748beefe6e2.zip FreeBSD-src-cd29b4a4d0464f96c3ffd334e8cac748beefe6e2.tar.gz |
MFC r272487:
Add UUID of FreeBSD slice to GPT scheme.
-rw-r--r-- | sys/boot/common/part.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/boot/common/part.c b/sys/boot/common/part.c index 086809f..4457619 100644 --- a/sys/boot/common/part.c +++ b/sys/boot/common/part.c @@ -53,6 +53,7 @@ static const uuid_t gpt_uuid_unused = GPT_ENT_TYPE_UNUSED; static const uuid_t gpt_uuid_ms_basic_data = GPT_ENT_TYPE_MS_BASIC_DATA; static const uuid_t gpt_uuid_freebsd_ufs = GPT_ENT_TYPE_FREEBSD_UFS; static const uuid_t gpt_uuid_efi = GPT_ENT_TYPE_EFI; +static const uuid_t gpt_uuid_freebsd = GPT_ENT_TYPE_FREEBSD; static const uuid_t gpt_uuid_freebsd_boot = GPT_ENT_TYPE_FREEBSD_BOOT; static const uuid_t gpt_uuid_freebsd_nandfs = GPT_ENT_TYPE_FREEBSD_NANDFS; static const uuid_t gpt_uuid_freebsd_swap = GPT_ENT_TYPE_FREEBSD_SWAP; @@ -139,6 +140,8 @@ gpt_parttype(uuid_t type) return (PART_FREEBSD_VINUM); else if (uuid_equal(&type, &gpt_uuid_freebsd_nandfs, NULL)) return (PART_FREEBSD_NANDFS); + else if (uuid_equal(&type, &gpt_uuid_freebsd, NULL)) + return (PART_FREEBSD); return (PART_UNKNOWN); } |