loader: show APFS partition type name
Add small visual aid in lsdev output.
This commit is contained in:
parent
50dacbf6c2
commit
124003d587
@ -60,6 +60,7 @@ static const uuid_t gpt_uuid_freebsd_boot = GPT_ENT_TYPE_FREEBSD_BOOT;
|
||||
static const uuid_t gpt_uuid_freebsd_swap = GPT_ENT_TYPE_FREEBSD_SWAP;
|
||||
static const uuid_t gpt_uuid_freebsd_zfs = GPT_ENT_TYPE_FREEBSD_ZFS;
|
||||
static const uuid_t gpt_uuid_freebsd_vinum = GPT_ENT_TYPE_FREEBSD_VINUM;
|
||||
static const uuid_t gpt_uuid_apple_apfs = GPT_ENT_TYPE_APPLE_APFS;
|
||||
#endif
|
||||
|
||||
struct pentry {
|
||||
@ -98,6 +99,7 @@ static struct parttypes {
|
||||
{ PART_LINUX_SWAP, "Linux swap" },
|
||||
{ PART_DOS, "DOS/Windows" },
|
||||
{ PART_ISO9660, "ISO9660" },
|
||||
{ PART_APFS, "APFS" },
|
||||
};
|
||||
|
||||
const char *
|
||||
@ -141,6 +143,8 @@ gpt_parttype(uuid_t type)
|
||||
return (PART_FREEBSD_VINUM);
|
||||
else if (uuid_equal(&type, &gpt_uuid_freebsd, NULL))
|
||||
return (PART_FREEBSD);
|
||||
else if (uuid_equal(&type, &gpt_uuid_apple_apfs, NULL))
|
||||
return (PART_APFS);
|
||||
return (PART_UNKNOWN);
|
||||
}
|
||||
|
||||
|
@ -52,7 +52,8 @@ enum partition_type {
|
||||
PART_LINUX,
|
||||
PART_LINUX_SWAP,
|
||||
PART_DOS,
|
||||
PART_ISO9660
|
||||
PART_ISO9660,
|
||||
PART_APFS
|
||||
};
|
||||
|
||||
struct ptable_entry {
|
||||
|
Loading…
Reference in New Issue
Block a user