svn commit: r259925 - in head/sys: geom/part sys
Dmitry Morozovsky
marck at FreeBSD.org
Thu Dec 26 21:06:13 UTC 2013
Author: marck (doc committer)
Date: Thu Dec 26 21:06:12 2013
New Revision: 259925
URL: http://svnweb.freebsd.org/changeset/base/259925
Log:
Add GPT UUID for VMware vSAN meta-data partition.
Approved by: ae
MFC after: 2 weeks
Modified:
head/sys/geom/part/g_part.c
head/sys/geom/part/g_part.h
head/sys/geom/part/g_part_gpt.c
head/sys/sys/gpt.h
Modified: head/sys/geom/part/g_part.c
==============================================================================
--- head/sys/geom/part/g_part.c Thu Dec 26 19:58:30 2013 (r259924)
+++ head/sys/geom/part/g_part.c Thu Dec 26 21:06:12 2013 (r259925)
@@ -107,6 +107,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: head/sys/geom/part/g_part.h
==============================================================================
--- head/sys/geom/part/g_part.h Thu Dec 26 19:58:30 2013 (r259924)
+++ head/sys/geom/part/g_part.h Thu Dec 26 21:06:12 2013 (r259925)
@@ -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: head/sys/geom/part/g_part_gpt.c
==============================================================================
--- head/sys/geom/part/g_part_gpt.c Thu Dec 26 19:58:30 2013 (r259924)
+++ head/sys/geom/part/g_part_gpt.c Thu Dec 26 21:06:12 2013 (r259925)
@@ -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: head/sys/sys/gpt.h
==============================================================================
--- head/sys/sys/gpt.h Thu Dec 26 19:58:30 2013 (r259924)
+++ head/sys/sys/gpt.h Thu Dec 26 21:06:12 2013 (r259925)
@@ -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_VSANHDR
+ {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-head
mailing list