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.
This commit is contained in:
parent
e48938dd04
commit
c3e6b1182b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106837
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user