From 7bf298bcada534ae5403699444944355edebb1c5 Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Thu, 5 Aug 2004 17:44:07 +0000 Subject: [PATCH] Don't use type unknown for partitions that we don't care about because the chunk will never be added to the list in that case. Use type mbr for GPT nested MBRs and use type part for any partition we don't know or care about. Since the subtype is 0, this should not cause confusion. --- lib/libdisk/open_ia64_disk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libdisk/open_ia64_disk.c b/lib/libdisk/open_ia64_disk.c index 476185dd508b..8fc9f64817ee 100644 --- a/lib/libdisk/open_ia64_disk.c +++ b/lib/libdisk/open_ia64_disk.c @@ -250,7 +250,7 @@ Int_Open_Disk(const char *name, char *conftxt) else if (uuid_equal(&uuid, &_efi, NULL)) chunk.type = efi; else if (uuid_equal(&uuid, &_mbr, NULL)) - chunk.type = unknown; + chunk.type = mbr; else if (uuid_equal(&uuid, &_fbsd, NULL)) { chunk.type = freebsd; chunk.subtype = 0xa5; @@ -261,7 +261,7 @@ Int_Open_Disk(const char *name, char *conftxt) chunk.type = part; chunk.subtype = FS_BSDFFS; } else - chunk.type = unknown; + chunk.type = part; } else abort();