svn commit: r272487 - head/sys/boot/common

Andrey V. Elsukov ae at FreeBSD.org
Fri Oct 3 21:46:08 UTC 2014


Author: ae
Date: Fri Oct  3 21:46:07 2014
New Revision: 272487
URL: https://svnweb.freebsd.org/changeset/base/272487

Log:
  Add GUID of FreeBSD slice to GPT scheme.
  
  MFC after:	1 week

Modified:
  head/sys/boot/common/part.c

Modified: head/sys/boot/common/part.c
==============================================================================
--- head/sys/boot/common/part.c	Fri Oct  3 20:54:35 2014	(r272486)
+++ head/sys/boot/common/part.c	Fri Oct  3 21:46:07 2014	(r272487)
@@ -53,6 +53,7 @@ static const uuid_t gpt_uuid_unused = GP
 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);
 }
 


More information about the svn-src-all mailing list