mkimg: Add fat32lba partition type

Syntactic sugar for a `gpart add -t '!12' ...` equivalent.

Reviewed by:	emaste
Pull Request:	https://github.com/freebsd/freebsd-src/pull/484
This commit is contained in:
Jose Luis Duran 2021-06-18 11:55:24 -03:00 committed by Ed Maste
parent 15fccd86b9
commit d98a4eb807
4 changed files with 4 additions and 0 deletions

View File

@ -42,6 +42,7 @@ __FBSDID("$FreeBSD$");
static struct mkimg_alias ebr_aliases[] = {
{ ALIAS_FAT16B, ALIAS_INT2TYPE(DOSPTYP_FAT16) },
{ ALIAS_FAT32, ALIAS_INT2TYPE(DOSPTYP_FAT32) },
{ ALIAS_FAT32LBA, ALIAS_INT2TYPE(DOSPTYP_FAT32LBA) },
{ ALIAS_FREEBSD, ALIAS_INT2TYPE(DOSPTYP_386BSD) },
{ ALIAS_NONE, 0 }
};

View File

@ -44,6 +44,7 @@ static struct mkimg_alias mbr_aliases[] = {
{ ALIAS_EFI, ALIAS_INT2TYPE(DOSPTYP_EFI) },
{ ALIAS_FAT16B, ALIAS_INT2TYPE(DOSPTYP_FAT16) },
{ ALIAS_FAT32, ALIAS_INT2TYPE(DOSPTYP_FAT32) },
{ ALIAS_FAT32LBA, ALIAS_INT2TYPE(DOSPTYP_FAT32LBA) },
{ ALIAS_FREEBSD, ALIAS_INT2TYPE(DOSPTYP_386BSD) },
{ ALIAS_NTFS, ALIAS_INT2TYPE(DOSPTYP_NTFS) },
{ ALIAS_PPCBOOT, ALIAS_INT2TYPE(DOSPTYP_PPCBOOT) },

View File

@ -47,6 +47,7 @@ static struct {
{ "efi", ALIAS_EFI },
{ "fat16b", ALIAS_FAT16B },
{ "fat32", ALIAS_FAT32 },
{ "fat32lba", ALIAS_FAT32LBA },
{ "freebsd", ALIAS_FREEBSD },
{ "freebsd-boot", ALIAS_FREEBSD_BOOT },
{ "freebsd-nandfs", ALIAS_FREEBSD_NANDFS },

View File

@ -36,6 +36,7 @@ enum alias {
ALIAS_EFI,
ALIAS_FAT16B,
ALIAS_FAT32,
ALIAS_FAT32LBA,
ALIAS_FREEBSD,
ALIAS_FREEBSD_BOOT,
ALIAS_FREEBSD_NANDFS,