summaryrefslogtreecommitdiff
path: root/lib/libdisk/chunk.c
diff options
context:
space:
mode:
authorYoshihiro Takahashi <nyan@FreeBSD.org>2002-10-31 05:51:25 +0000
committerYoshihiro Takahashi <nyan@FreeBSD.org>2002-10-31 05:51:25 +0000
commitfe1f2a9a84d8f5d824230509cdbfb568b786d0a8 (patch)
tree9ed6f712cb503ca9efae0d2053d5105b16b30748 /lib/libdisk/chunk.c
parentfecafa765a7dddf75c9766571dcc4051f48cbaec (diff)
Notes
Diffstat (limited to 'lib/libdisk/chunk.c')
-rw-r--r--lib/libdisk/chunk.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/lib/libdisk/chunk.c b/lib/libdisk/chunk.c
index 07f5aefba5ef..a93314d24190 100644
--- a/lib/libdisk/chunk.c
+++ b/lib/libdisk/chunk.c
@@ -255,7 +255,19 @@ Add_Chunk(struct disk *d, long offset, u_long size, const char *name,
}
break;
case p_pc98:
- subtype = 0xc494;
+ switch (type) {
+ case freebsd:
+ subtype = 0xc494;
+ /* FALLTHROUGH */
+ case fat:
+ c1 = Find_Mother_Chunk(d->chunks, offset, end, whole);
+ break;
+ case part:
+ c1 = Find_Mother_Chunk(d->chunks, offset, end, freebsd);
+ break;
+ default:
+ return(-1);
+ }
break;
case p_sparc64:
case p_alpha:
@@ -286,7 +298,7 @@ Add_Chunk(struct disk *d, long offset, u_long size, const char *name,
if (platform == p_sparc64) {
offset = Prev_Cyl_Aligned(d, offset);
size = Next_Cyl_Aligned(d, size);
- } else if (platform == p_i386) {
+ } else if (platform == p_i386 || platform == p_pc98) {
if (type != freebsd)
break;
if (!(flags & CHUNK_ALIGN))