Changeset View
Changeset View
Standalone View
Standalone View
sys/geom/part/g_part_gpt.c
Show First 20 Lines • Show All 162 Lines • ▼ Show 20 Lines | |||||
static struct uuid gpt_uuid_apple_core_storage = | static struct uuid gpt_uuid_apple_core_storage = | ||||
GPT_ENT_TYPE_APPLE_CORE_STORAGE; | GPT_ENT_TYPE_APPLE_CORE_STORAGE; | ||||
static struct uuid gpt_uuid_apple_hfs = GPT_ENT_TYPE_APPLE_HFS; | static struct uuid gpt_uuid_apple_hfs = GPT_ENT_TYPE_APPLE_HFS; | ||||
static struct uuid gpt_uuid_apple_label = GPT_ENT_TYPE_APPLE_LABEL; | static struct uuid gpt_uuid_apple_label = GPT_ENT_TYPE_APPLE_LABEL; | ||||
static struct uuid gpt_uuid_apple_raid = GPT_ENT_TYPE_APPLE_RAID; | static struct uuid gpt_uuid_apple_raid = GPT_ENT_TYPE_APPLE_RAID; | ||||
static struct uuid gpt_uuid_apple_raid_offline = GPT_ENT_TYPE_APPLE_RAID_OFFLINE; | static struct uuid gpt_uuid_apple_raid_offline = GPT_ENT_TYPE_APPLE_RAID_OFFLINE; | ||||
static struct uuid gpt_uuid_apple_tv_recovery = GPT_ENT_TYPE_APPLE_TV_RECOVERY; | static struct uuid gpt_uuid_apple_tv_recovery = GPT_ENT_TYPE_APPLE_TV_RECOVERY; | ||||
static struct uuid gpt_uuid_apple_ufs = GPT_ENT_TYPE_APPLE_UFS; | static struct uuid gpt_uuid_apple_ufs = GPT_ENT_TYPE_APPLE_UFS; | ||||
static struct uuid gpt_uuid_apple_zfs = GPT_ENT_TYPE_APPLE_ZFS; | |||||
static struct uuid gpt_uuid_bios_boot = GPT_ENT_TYPE_BIOS_BOOT; | static struct uuid gpt_uuid_bios_boot = GPT_ENT_TYPE_BIOS_BOOT; | ||||
static struct uuid gpt_uuid_chromeos_firmware = GPT_ENT_TYPE_CHROMEOS_FIRMWARE; | static struct uuid gpt_uuid_chromeos_firmware = GPT_ENT_TYPE_CHROMEOS_FIRMWARE; | ||||
static struct uuid gpt_uuid_chromeos_kernel = GPT_ENT_TYPE_CHROMEOS_KERNEL; | static struct uuid gpt_uuid_chromeos_kernel = GPT_ENT_TYPE_CHROMEOS_KERNEL; | ||||
static struct uuid gpt_uuid_chromeos_reserved = GPT_ENT_TYPE_CHROMEOS_RESERVED; | static struct uuid gpt_uuid_chromeos_reserved = GPT_ENT_TYPE_CHROMEOS_RESERVED; | ||||
static struct uuid gpt_uuid_chromeos_root = GPT_ENT_TYPE_CHROMEOS_ROOT; | static struct uuid gpt_uuid_chromeos_root = GPT_ENT_TYPE_CHROMEOS_ROOT; | ||||
static struct uuid gpt_uuid_dfbsd_ccd = GPT_ENT_TYPE_DRAGONFLY_CCD; | static struct uuid gpt_uuid_dfbsd_ccd = GPT_ENT_TYPE_DRAGONFLY_CCD; | ||||
static struct uuid gpt_uuid_dfbsd_hammer = GPT_ENT_TYPE_DRAGONFLY_HAMMER; | static struct uuid gpt_uuid_dfbsd_hammer = GPT_ENT_TYPE_DRAGONFLY_HAMMER; | ||||
static struct uuid gpt_uuid_dfbsd_hammer2 = GPT_ENT_TYPE_DRAGONFLY_HAMMER2; | static struct uuid gpt_uuid_dfbsd_hammer2 = GPT_ENT_TYPE_DRAGONFLY_HAMMER2; | ||||
Show All 25 Lines | |||||
static struct uuid gpt_uuid_netbsd_ccd = GPT_ENT_TYPE_NETBSD_CCD; | static struct uuid gpt_uuid_netbsd_ccd = GPT_ENT_TYPE_NETBSD_CCD; | ||||
static struct uuid gpt_uuid_netbsd_cgd = GPT_ENT_TYPE_NETBSD_CGD; | static struct uuid gpt_uuid_netbsd_cgd = GPT_ENT_TYPE_NETBSD_CGD; | ||||
static struct uuid gpt_uuid_netbsd_ffs = GPT_ENT_TYPE_NETBSD_FFS; | static struct uuid gpt_uuid_netbsd_ffs = GPT_ENT_TYPE_NETBSD_FFS; | ||||
static struct uuid gpt_uuid_netbsd_lfs = GPT_ENT_TYPE_NETBSD_LFS; | static struct uuid gpt_uuid_netbsd_lfs = GPT_ENT_TYPE_NETBSD_LFS; | ||||
static struct uuid gpt_uuid_netbsd_raid = GPT_ENT_TYPE_NETBSD_RAID; | static struct uuid gpt_uuid_netbsd_raid = GPT_ENT_TYPE_NETBSD_RAID; | ||||
static struct uuid gpt_uuid_netbsd_swap = GPT_ENT_TYPE_NETBSD_SWAP; | static struct uuid gpt_uuid_netbsd_swap = GPT_ENT_TYPE_NETBSD_SWAP; | ||||
static struct uuid gpt_uuid_openbsd_data = GPT_ENT_TYPE_OPENBSD_DATA; | static struct uuid gpt_uuid_openbsd_data = GPT_ENT_TYPE_OPENBSD_DATA; | ||||
static struct uuid gpt_uuid_prep_boot = GPT_ENT_TYPE_PREP_BOOT; | static struct uuid gpt_uuid_prep_boot = GPT_ENT_TYPE_PREP_BOOT; | ||||
static struct uuid gpt_uuid_solaris_boot = GPT_ENT_TYPE_SOLARIS_BOOT; | |||||
static struct uuid gpt_uuid_solaris_root = GPT_ENT_TYPE_SOLARIS_ROOT; | |||||
static struct uuid gpt_uuid_solaris_swap = GPT_ENT_TYPE_SOLARIS_SWAP; | |||||
static struct uuid gpt_uuid_solaris_backup = GPT_ENT_TYPE_SOLARIS_BACKUP; | |||||
static struct uuid gpt_uuid_solaris_var = GPT_ENT_TYPE_SOLARIS_VAR; | |||||
static struct uuid gpt_uuid_solaris_home = GPT_ENT_TYPE_SOLARIS_HOME; | |||||
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_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 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 }, | ||||
{ &gpt_uuid_apple_core_storage, G_PART_ALIAS_APPLE_CORE_STORAGE, 0 }, | { &gpt_uuid_apple_core_storage, G_PART_ALIAS_APPLE_CORE_STORAGE, 0 }, | ||||
{ &gpt_uuid_apple_hfs, G_PART_ALIAS_APPLE_HFS, 0xaf }, | { &gpt_uuid_apple_hfs, G_PART_ALIAS_APPLE_HFS, 0xaf }, | ||||
{ &gpt_uuid_apple_label, G_PART_ALIAS_APPLE_LABEL, 0 }, | { &gpt_uuid_apple_label, G_PART_ALIAS_APPLE_LABEL, 0 }, | ||||
{ &gpt_uuid_apple_raid, G_PART_ALIAS_APPLE_RAID, 0 }, | { &gpt_uuid_apple_raid, G_PART_ALIAS_APPLE_RAID, 0 }, | ||||
{ &gpt_uuid_apple_raid_offline, G_PART_ALIAS_APPLE_RAID_OFFLINE, 0 }, | { &gpt_uuid_apple_raid_offline, G_PART_ALIAS_APPLE_RAID_OFFLINE, 0 }, | ||||
{ &gpt_uuid_apple_tv_recovery, G_PART_ALIAS_APPLE_TV_RECOVERY, 0 }, | { &gpt_uuid_apple_tv_recovery, G_PART_ALIAS_APPLE_TV_RECOVERY, 0 }, | ||||
{ &gpt_uuid_apple_ufs, G_PART_ALIAS_APPLE_UFS, 0 }, | { &gpt_uuid_apple_ufs, G_PART_ALIAS_APPLE_UFS, 0 }, | ||||
{ &gpt_uuid_apple_zfs, G_PART_ALIAS_APPLE_ZFS, 0 }, | |||||
{ &gpt_uuid_bios_boot, G_PART_ALIAS_BIOS_BOOT, 0 }, | { &gpt_uuid_bios_boot, G_PART_ALIAS_BIOS_BOOT, 0 }, | ||||
{ &gpt_uuid_chromeos_firmware, G_PART_ALIAS_CHROMEOS_FIRMWARE, 0 }, | { &gpt_uuid_chromeos_firmware, G_PART_ALIAS_CHROMEOS_FIRMWARE, 0 }, | ||||
{ &gpt_uuid_chromeos_kernel, G_PART_ALIAS_CHROMEOS_KERNEL, 0 }, | { &gpt_uuid_chromeos_kernel, G_PART_ALIAS_CHROMEOS_KERNEL, 0 }, | ||||
{ &gpt_uuid_chromeos_reserved, G_PART_ALIAS_CHROMEOS_RESERVED, 0 }, | { &gpt_uuid_chromeos_reserved, G_PART_ALIAS_CHROMEOS_RESERVED, 0 }, | ||||
{ &gpt_uuid_chromeos_root, G_PART_ALIAS_CHROMEOS_ROOT, 0 }, | { &gpt_uuid_chromeos_root, G_PART_ALIAS_CHROMEOS_ROOT, 0 }, | ||||
{ &gpt_uuid_dfbsd_ccd, G_PART_ALIAS_DFBSD_CCD, 0 }, | { &gpt_uuid_dfbsd_ccd, G_PART_ALIAS_DFBSD_CCD, 0 }, | ||||
{ &gpt_uuid_dfbsd_hammer, G_PART_ALIAS_DFBSD_HAMMER, 0 }, | { &gpt_uuid_dfbsd_hammer, G_PART_ALIAS_DFBSD_HAMMER, 0 }, | ||||
{ &gpt_uuid_dfbsd_hammer2, G_PART_ALIAS_DFBSD_HAMMER2, 0 }, | { &gpt_uuid_dfbsd_hammer2, G_PART_ALIAS_DFBSD_HAMMER2, 0 }, | ||||
Show All 25 Lines | static struct g_part_uuid_alias { | ||||
{ &gpt_uuid_netbsd_ccd, G_PART_ALIAS_NETBSD_CCD, 0 }, | { &gpt_uuid_netbsd_ccd, G_PART_ALIAS_NETBSD_CCD, 0 }, | ||||
{ &gpt_uuid_netbsd_cgd, G_PART_ALIAS_NETBSD_CGD, 0 }, | { &gpt_uuid_netbsd_cgd, G_PART_ALIAS_NETBSD_CGD, 0 }, | ||||
{ &gpt_uuid_netbsd_ffs, G_PART_ALIAS_NETBSD_FFS, 0 }, | { &gpt_uuid_netbsd_ffs, G_PART_ALIAS_NETBSD_FFS, 0 }, | ||||
{ &gpt_uuid_netbsd_lfs, G_PART_ALIAS_NETBSD_LFS, 0 }, | { &gpt_uuid_netbsd_lfs, G_PART_ALIAS_NETBSD_LFS, 0 }, | ||||
{ &gpt_uuid_netbsd_raid, G_PART_ALIAS_NETBSD_RAID, 0 }, | { &gpt_uuid_netbsd_raid, G_PART_ALIAS_NETBSD_RAID, 0 }, | ||||
{ &gpt_uuid_netbsd_swap, G_PART_ALIAS_NETBSD_SWAP, 0 }, | { &gpt_uuid_netbsd_swap, G_PART_ALIAS_NETBSD_SWAP, 0 }, | ||||
{ &gpt_uuid_openbsd_data, G_PART_ALIAS_OPENBSD_DATA, 0 }, | { &gpt_uuid_openbsd_data, G_PART_ALIAS_OPENBSD_DATA, 0 }, | ||||
{ &gpt_uuid_prep_boot, G_PART_ALIAS_PREP_BOOT, 0x41 }, | { &gpt_uuid_prep_boot, G_PART_ALIAS_PREP_BOOT, 0x41 }, | ||||
{ &gpt_uuid_solaris_boot, G_PART_ALIAS_SOLARIS_BOOT, 0 }, | |||||
{ &gpt_uuid_solaris_root, G_PART_ALIAS_SOLARIS_ROOT, 0 }, | |||||
{ &gpt_uuid_solaris_swap, G_PART_ALIAS_SOLARIS_SWAP, 0 }, | |||||
{ &gpt_uuid_solaris_backup, G_PART_ALIAS_SOLARIS_BACKUP, 0 }, | |||||
{ &gpt_uuid_solaris_var, G_PART_ALIAS_SOLARIS_VAR, 0 }, | |||||
{ &gpt_uuid_solaris_home, G_PART_ALIAS_SOLARIS_HOME, 0 }, | |||||
{ &gpt_uuid_solaris_altsec, G_PART_ALIAS_SOLARIS_ALTSEC, 0 }, | |||||
{ &gpt_uuid_solaris_reserved, G_PART_ALIAS_SOLARIS_RESERVED, 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 }, | ||||
{ NULL, 0, 0 } | { NULL, 0, 0 } | ||||
}; | }; | ||||
static int | static int | ||||
▲ Show 20 Lines • Show All 1,140 Lines • Show Last 20 Lines |