summaryrefslogtreecommitdiffstats
path: root/lib/libdisk
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2002-11-10 20:53:10 +0000
committermarcel <marcel@FreeBSD.org>2002-11-10 20:53:10 +0000
commitc0696a1676e9319ea26757b87a24a057e17c3df0 (patch)
treee5f706c4f311df76ba25c28e4fd08f2acc43be66 /lib/libdisk
parentb5cdcf6ad17d97a2b6dd9c1e1518e66c6925cffd (diff)
downloadFreeBSD-src-c0696a1676e9319ea26757b87a24a057e17c3df0.zip
FreeBSD-src-c0696a1676e9319ea26757b87a24a057e17c3df0.tar.gz
Add efi to the list of types for which we need to return tha name.
Also, return chunk type efi in case we find an EFI partition in the GPT. We used to return FAT due to a lack of EFI type.
Diffstat (limited to 'lib/libdisk')
-rw-r--r--lib/libdisk/disk.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libdisk/disk.c b/lib/libdisk/disk.c
index f0c4998..32b8409 100644
--- a/lib/libdisk/disk.c
+++ b/lib/libdisk/disk.c
@@ -55,6 +55,7 @@ chunk_name(chunk_e type)
case freebsd: return ("freebsd");
case fat: return ("fat");
case spare: return ("spare");
+ case efi: return ("efi");
default: return ("??");
}
};
@@ -72,7 +73,7 @@ uuid_type(uuid_t *uuid)
if (uuid_is_nil(uuid, NULL))
return (unused);
if (uuid_equal(uuid, &_efi, NULL))
- return (fat);
+ return (efi);
if (uuid_equal(uuid, &_mbr, NULL))
return (mbr);
if (uuid_equal(uuid, &_fbsd, NULL))
@@ -595,6 +596,8 @@ slice_type_name( int type, int subtype )
return "extended";
case part:
return "part";
+ case efi:
+ return "efi";
case unused:
return "unused";
default:
OpenPOWER on IntegriCloud