Changeset View
Changeset View
Standalone View
Standalone View
sys/geom/part/g_part_gpt.c
| Show First 20 Lines • Show All 224 Lines • ▼ Show 20 Lines | |||||
| static struct uuid gpt_uuid_solaris_altsec = GPT_ENT_TYPE_SOLARIS_ALTSEC; | static struct uuid gpt_uuid_solaris_altsec = GPT_ENT_TYPE_SOLARIS_ALTSEC; | ||||
| static struct uuid gpt_uuid_solaris_reserved = GPT_ENT_TYPE_SOLARIS_RESERVED; | static struct uuid gpt_uuid_solaris_reserved = GPT_ENT_TYPE_SOLARIS_RESERVED; | ||||
| static struct uuid gpt_uuid_u_boot_env = GPT_ENT_TYPE_U_BOOT_ENV; | static struct uuid gpt_uuid_u_boot_env = GPT_ENT_TYPE_U_BOOT_ENV; | ||||
| static struct uuid gpt_uuid_unused = GPT_ENT_TYPE_UNUSED; | static struct uuid gpt_uuid_unused = GPT_ENT_TYPE_UNUSED; | ||||
| static struct uuid gpt_uuid_vmfs = GPT_ENT_TYPE_VMFS; | 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_vmkdiag = GPT_ENT_TYPE_VMKDIAG; | ||||
| static struct uuid gpt_uuid_vmreserved = GPT_ENT_TYPE_VMRESERVED; | 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_vmvsanhdr = GPT_ENT_TYPE_VMVSANHDR; | ||||
| static struct uuid gpt_uuid_xbootldr = GPT_ENT_TYPE_XBOOTLDR; | |||||
| static struct g_part_uuid_alias { | static struct g_part_uuid_alias { | ||||
| struct uuid *uuid; | struct uuid *uuid; | ||||
| int alias; | int alias; | ||||
| int mbrtype; | int mbrtype; | ||||
| } gpt_uuid_alias_match[] = { | } gpt_uuid_alias_match[] = { | ||||
| { &gpt_uuid_apple_apfs, G_PART_ALIAS_APPLE_APFS, 0 }, | { &gpt_uuid_apple_apfs, G_PART_ALIAS_APPLE_APFS, 0 }, | ||||
| { &gpt_uuid_apple_boot, G_PART_ALIAS_APPLE_BOOT, 0xab }, | { &gpt_uuid_apple_boot, G_PART_ALIAS_APPLE_BOOT, 0xab }, | ||||
| ▲ Show 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | static struct g_part_uuid_alias { | ||||
| { &gpt_uuid_solaris_home, G_PART_ALIAS_SOLARIS_HOME, 0 }, | { &gpt_uuid_solaris_home, G_PART_ALIAS_SOLARIS_HOME, 0 }, | ||||
| { &gpt_uuid_solaris_altsec, G_PART_ALIAS_SOLARIS_ALTSEC, 0 }, | { &gpt_uuid_solaris_altsec, G_PART_ALIAS_SOLARIS_ALTSEC, 0 }, | ||||
| { &gpt_uuid_solaris_reserved, G_PART_ALIAS_SOLARIS_RESERVED, 0 }, | { &gpt_uuid_solaris_reserved, G_PART_ALIAS_SOLARIS_RESERVED, 0 }, | ||||
| { &gpt_uuid_u_boot_env, G_PART_ALIAS_U_BOOT_ENV, 0 }, | { &gpt_uuid_u_boot_env, G_PART_ALIAS_U_BOOT_ENV, 0 }, | ||||
| { &gpt_uuid_vmfs, G_PART_ALIAS_VMFS, 0 }, | { &gpt_uuid_vmfs, G_PART_ALIAS_VMFS, 0 }, | ||||
| { &gpt_uuid_vmkdiag, G_PART_ALIAS_VMKDIAG, 0 }, | { &gpt_uuid_vmkdiag, G_PART_ALIAS_VMKDIAG, 0 }, | ||||
| { &gpt_uuid_vmreserved, G_PART_ALIAS_VMRESERVED, 0 }, | { &gpt_uuid_vmreserved, G_PART_ALIAS_VMRESERVED, 0 }, | ||||
| { &gpt_uuid_vmvsanhdr, G_PART_ALIAS_VMVSANHDR, 0 }, | { &gpt_uuid_vmvsanhdr, G_PART_ALIAS_VMVSANHDR, 0 }, | ||||
| { &gpt_uuid_xbootldr, G_PART_ALIAS_XBOOTLDR, 0 }, | |||||
| { NULL, 0, 0 } | { NULL, 0, 0 } | ||||
| }; | }; | ||||
| static int | static int | ||||
| gpt_write_mbr_entry(u_char *mbr, int idx, int typ, quad_t start, | gpt_write_mbr_entry(u_char *mbr, int idx, int typ, quad_t start, | ||||
| quad_t end) | quad_t end) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 1,185 Lines • Show Last 20 Lines | |||||