Add support for ia64. This is almost identical to i386, except that

with GPT chunks of type "part" do not necessarily live under chunks
of type "freebsd". We don't necessarily have a disklabel.
This commit is contained in:
marcel 2002-11-02 12:05:16 +00:00
parent b737405ed3
commit 24ab0000c9

View File

@ -253,6 +253,26 @@ Add_Chunk(struct disk *d, long offset, u_long size, const char *name,
return(-1);
}
break;
case p_ia64:
switch (type) {
case freebsd:
subtype = 0xa5;
/* FALL THROUGH */
case fat:
case mbr:
c1 = Find_Mother_Chunk(d->chunks, offset, end, whole);
break;
case part:
c1 = Find_Mother_Chunk(d->chunks, offset, end,
freebsd);
if (!c1)
c1 = Find_Mother_Chunk(d->chunks, offset, end,
whole);
break;
default:
return (-1);
}
break;
case p_pc98:
switch (type) {
case freebsd: