Support the FAT16 partition type in gpart(8)
PR: kern/174714 Submitted by: 4721 at hushmail dot com MFC after: 1 week
This commit is contained in:
parent
8b0d8e9f2f
commit
10f29053d2
@ -80,6 +80,7 @@ struct g_part_alias_list {
|
||||
{ "bios-boot", G_PART_ALIAS_BIOS_BOOT },
|
||||
{ "ebr", G_PART_ALIAS_EBR },
|
||||
{ "efi", G_PART_ALIAS_EFI },
|
||||
{ "fat16", G_PART_ALIAS_MS_FAT16 },
|
||||
{ "fat32", G_PART_ALIAS_MS_FAT32 },
|
||||
{ "freebsd", G_PART_ALIAS_FREEBSD },
|
||||
{ "freebsd-boot", G_PART_ALIAS_FREEBSD_BOOT },
|
||||
|
@ -68,6 +68,7 @@ enum g_part_alias {
|
||||
G_PART_ALIAS_NETBSD_SWAP, /* A NetBSD swap partition entry. */
|
||||
G_PART_ALIAS_NETBSD_LFS, /* A NetBSD LFS partition entry. */
|
||||
G_PART_ALIAS_EBR, /* A EBR partition entry. */
|
||||
G_PART_ALIAS_MS_FAT16, /* A Microsoft FAT16 partition entry. */
|
||||
G_PART_ALIAS_MS_FAT32, /* A Microsoft FAT32 partition entry. */
|
||||
G_PART_ALIAS_BIOS_BOOT, /* A GRUB 2 boot partition entry. */
|
||||
G_PART_ALIAS_VMFS, /* A VMware VMFS partition entry */
|
||||
|
@ -118,6 +118,7 @@ static struct g_part_mbr_alias {
|
||||
{ DOSPTYP_386BSD, G_PART_ALIAS_FREEBSD },
|
||||
{ DOSPTYP_EXT, G_PART_ALIAS_EBR },
|
||||
{ DOSPTYP_NTFS, G_PART_ALIAS_MS_NTFS },
|
||||
{ DOSPTYP_FAT16, G_PART_ALIAS_MS_FAT16 },
|
||||
{ DOSPTYP_FAT32, G_PART_ALIAS_MS_FAT32 },
|
||||
{ DOSPTYP_EXTLBA, G_PART_ALIAS_EBR },
|
||||
{ DOSPTYP_LDM, G_PART_ALIAS_MS_LDM_DATA },
|
||||
|
@ -45,6 +45,7 @@
|
||||
#define DOSMAGIC 0xAA55
|
||||
|
||||
#define DOSPTYP_EXT 0x05 /* DOS extended partition */
|
||||
#define DOSPTYP_FAT16 0x06 /* FAT16 partition */
|
||||
#define DOSPTYP_NTFS 0x07 /* NTFS partition */
|
||||
#define DOSPTYP_FAT32 0x0b /* FAT32 partition */
|
||||
#define DOSPTYP_EXTLBA 0x0f /* DOS extended partition */
|
||||
|
Loading…
Reference in New Issue
Block a user