Don't claim all MBR's have subtype 165 on i386.
Spotted by: Frode Nordahl <frode@nordahl.net>
This commit is contained in:
parent
45330340f4
commit
01e8832a61
@ -244,7 +244,6 @@ Add_Chunk(struct disk *d, long offset, u_long size, const char *name,
|
||||
case mbr:
|
||||
case extended:
|
||||
case freebsd:
|
||||
subtype = 0xa5;
|
||||
c1 = Find_Mother_Chunk(d->chunks, offset, end, whole);
|
||||
break;
|
||||
case part:
|
||||
|
@ -223,9 +223,9 @@ Int_Open_Disk(const char *name)
|
||||
if (!strcmp(t, "SUN"))
|
||||
i = Add_Chunk(d, off, len, n, part, 0, 0, 0);
|
||||
else if (!strcmp(t, "MBR") && ty == 165)
|
||||
i = Add_Chunk(d, off, len, n, freebsd, 0, 0, 0);
|
||||
i = Add_Chunk(d, off, len, n, freebsd, ty, 0, 0);
|
||||
else if (!strcmp(t, "MBR"))
|
||||
i = Add_Chunk(d, off, len, n, mbr, 0, 0, 0);
|
||||
i = Add_Chunk(d, off, len, n, mbr, ty, 0, 0);
|
||||
else if (!strcmp(t, "BSD"))
|
||||
i = Add_Chunk(d, off, len, n, part, 0, 0, 0);
|
||||
else if (!strcmp(t, "PC98"))
|
||||
|
Loading…
Reference in New Issue
Block a user