From c3e6b1182b12c7c159a1999823e8ceebb43917c8 Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Wed, 13 Nov 2002 05:31:32 +0000 Subject: [PATCH] Handle EFI partitions the same as regular FAT partitions. The only difference between the two from a low-level point of view is that the partition type is different. This change adds EFI related cases to existing switch statements with existing FAT related cases. --- lib/libdisk/chunk.c | 1 + lib/libdisk/disk.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/lib/libdisk/chunk.c b/lib/libdisk/chunk.c index 199e6b74eb67..f1f95b6c0b8d 100644 --- a/lib/libdisk/chunk.c +++ b/lib/libdisk/chunk.c @@ -259,6 +259,7 @@ Add_Chunk(struct disk *d, long offset, u_long size, const char *name, subtype = 0xa5; /* FALL THROUGH */ case fat: + case efi: case mbr: c1 = Find_Mother_Chunk(d->chunks, offset, end, whole); break; diff --git a/lib/libdisk/disk.c b/lib/libdisk/disk.c index d2dcafd98182..ee917be3e5b0 100644 --- a/lib/libdisk/disk.c +++ b/lib/libdisk/disk.c @@ -278,6 +278,9 @@ Int_Open_Disk(const char *name) case 0x0e: i = Add_Chunk(d, off, len, n, fat, ty, 0, 0); break; + case 0xef: /* EFI */ + i = Add_Chunk(d, off, len, n, efi, ty, 0, 0); + break; default: i = Add_Chunk(d, off, len, n, mbr, ty, 0, 0); break;