svn commit: r260981 - in stable/9/sys: geom/part sys

Dmitry Morozovsky marck at FreeBSD.org
Tue Jan 21 09:20:47 UTC 2014


Author: marck (doc committer)
Date: Tue Jan 21 09:20:45 2014
New Revision: 260981
URL: http://svnweb.freebsd.org/changeset/base/260981

Log:
  MFC r259925-259926:
  
    Add GPT UUID for VMware vSAN meta-data partition.
  
  Approved by:	ae

Modified:
  stable/9/sys/geom/part/g_part.c
  stable/9/sys/geom/part/g_part.h
  stable/9/sys/geom/part/g_part_gpt.c
  stable/9/sys/sys/gpt.h
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/sys/   (props changed)

Modified: stable/9/sys/geom/part/g_part.c
==============================================================================
--- stable/9/sys/geom/part/g_part.c	Tue Jan 21 09:19:28 2014	(r260980)
+++ stable/9/sys/geom/part/g_part.c	Tue Jan 21 09:20:45 2014	(r260981)
@@ -108,6 +108,7 @@ struct g_part_alias_list {
 	{ "vmware-vmfs", G_PART_ALIAS_VMFS },
 	{ "vmware-vmkdiag", G_PART_ALIAS_VMKDIAG },
 	{ "vmware-reserved", G_PART_ALIAS_VMRESERVED },
+	{ "vmware-vsanhdr", G_PART_ALIAS_VMVSANHDR },
 };
 
 SYSCTL_DECL(_kern_geom);

Modified: stable/9/sys/geom/part/g_part.h
==============================================================================
--- stable/9/sys/geom/part/g_part.h	Tue Jan 21 09:19:28 2014	(r260980)
+++ stable/9/sys/geom/part/g_part.h	Tue Jan 21 09:20:45 2014	(r260981)
@@ -74,6 +74,7 @@ enum g_part_alias {
 	G_PART_ALIAS_VMFS,		/* A VMware VMFS partition entry */
 	G_PART_ALIAS_VMKDIAG,		/* A VMware vmkDiagnostic partition entry */
 	G_PART_ALIAS_VMRESERVED,	/* A VMware reserved partition entry */
+	G_PART_ALIAS_VMVSANHDR,		/* A VMware vSAN header partition entry */
 	/* Keep the following last */
 	G_PART_ALIAS_COUNT
 };

Modified: stable/9/sys/geom/part/g_part_gpt.c
==============================================================================
--- stable/9/sys/geom/part/g_part_gpt.c	Tue Jan 21 09:19:28 2014	(r260980)
+++ stable/9/sys/geom/part/g_part_gpt.c	Tue Jan 21 09:20:45 2014	(r260981)
@@ -167,6 +167,7 @@ static struct uuid gpt_uuid_linux_swap =
 static struct uuid gpt_uuid_vmfs = GPT_ENT_TYPE_VMFS;
 static struct uuid gpt_uuid_vmkdiag = GPT_ENT_TYPE_VMKDIAG;
 static struct uuid gpt_uuid_vmreserved = GPT_ENT_TYPE_VMRESERVED;
+static struct uuid gpt_uuid_vmvsanhdr = GPT_ENT_TYPE_VMVSANHDR;
 static struct uuid gpt_uuid_ms_basic_data = GPT_ENT_TYPE_MS_BASIC_DATA;
 static struct uuid gpt_uuid_ms_reserved = GPT_ENT_TYPE_MS_RESERVED;
 static struct uuid gpt_uuid_ms_ldm_data = GPT_ENT_TYPE_MS_LDM_DATA;
@@ -208,6 +209,7 @@ static struct g_part_uuid_alias {
 	{ &gpt_uuid_vmfs,		G_PART_ALIAS_VMFS,		 0 },
 	{ &gpt_uuid_vmkdiag,		G_PART_ALIAS_VMKDIAG,		 0 },
 	{ &gpt_uuid_vmreserved,		G_PART_ALIAS_VMRESERVED,	 0 },
+	{ &gpt_uuid_vmvsanhdr,		G_PART_ALIAS_VMVSANHDR,		 0 },
 	{ &gpt_uuid_mbr,		G_PART_ALIAS_MBR,		 0 },
 	{ &gpt_uuid_ms_basic_data,	G_PART_ALIAS_MS_BASIC_DATA,	 0x0b },
 	{ &gpt_uuid_ms_ldm_data,	G_PART_ALIAS_MS_LDM_DATA,	 0 },

Modified: stable/9/sys/sys/gpt.h
==============================================================================
--- stable/9/sys/sys/gpt.h	Tue Jan 21 09:19:28 2014	(r260980)
+++ stable/9/sys/sys/gpt.h	Tue Jan 21 09:20:45 2014	(r260981)
@@ -128,6 +128,8 @@ struct gpt_ent {
 	{0x9d275380,0x40ad,0x11db,0xbf,0x97,{0x00,0x0c,0x29,0x11,0xd1,0xb8}}
 #define	GPT_ENT_TYPE_VMRESERVED		\
 	{0x9198effc,0x31c0,0x11db,0x8f,0x78,{0x00,0x0c,0x29,0x11,0xd1,0xb8}}
+#define	GPT_ENT_TYPE_VMVSANHDR		\
+	{0x381cfccc,0x7288,0x11e0,0x92,0xee,{0x00,0x0c,0x29,0x11,0xd0,0xb2}}
 
 #define	GPT_ENT_TYPE_APPLE_BOOT		\
 	{0x426F6F74,0x0000,0x11aa,0xaa,0x11,{0x00,0x30,0x65,0x43,0xec,0xac}}


More information about the svn-src-stable-9 mailing list