summaryrefslogtreecommitdiffstats
path: root/lib/libdisk/rules.c
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2002-10-31 05:51:25 +0000
committernyan <nyan@FreeBSD.org>2002-10-31 05:51:25 +0000
commit674ee796106bc578b59d4a3393360011bd29341a (patch)
tree9ed6f712cb503ca9efae0d2053d5105b16b30748 /lib/libdisk/rules.c
parent0315c477ee0eedac4a4b0aab922b03f26c915f5d (diff)
downloadFreeBSD-src-674ee796106bc578b59d4a3393360011bd29341a.zip
FreeBSD-src-674ee796106bc578b59d4a3393360011bd29341a.tar.gz
Restore to pc98 support.
Diffstat (limited to 'lib/libdisk/rules.c')
-rw-r--r--lib/libdisk/rules.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/lib/libdisk/rules.c b/lib/libdisk/rules.c
index 87846c9..b6a35fc 100644
--- a/lib/libdisk/rules.c
+++ b/lib/libdisk/rules.c
@@ -156,7 +156,6 @@ Rule_001(const struct disk *d, const struct chunk *c, char *msg)
static void
Rule_002(const struct disk *d, const struct chunk *c, char *msg)
{
-#ifndef PC98
int i;
struct chunk *c1;
@@ -171,7 +170,6 @@ Rule_002(const struct disk *d, const struct chunk *c, char *msg)
sprintf(msg + strlen(msg),
"Max one 'fat' allowed as child of 'whole'\n");
}
-#endif
}
/*
@@ -181,7 +179,6 @@ Rule_002(const struct disk *d, const struct chunk *c, char *msg)
static void
Rule_003(const struct disk *d, const struct chunk *c, char *msg)
{
-#ifndef PC98
int i;
struct chunk *c1;
@@ -196,7 +193,6 @@ Rule_003(const struct disk *d, const struct chunk *c, char *msg)
sprintf(msg + strlen(msg),
"Max one 'extended' allowed as child of 'whole'\n");
}
-#endif
}
/*
@@ -234,7 +230,8 @@ static void
Check_Chunk(const struct disk *d, const struct chunk *c, char *msg)
{
- if (platform == p_i386) {
+ switch (platform) {
+ case p_i386:
Rule_000(d, c, msg);
Rule_001(d, c, msg);
Rule_002(d, c, msg);
@@ -244,6 +241,16 @@ Check_Chunk(const struct disk *d, const struct chunk *c, char *msg)
Check_Chunk(d, c->part, msg);
if (c->next)
Check_Chunk(d, c->next, msg);
+ break;
+ case p_pc98:
+ Rule_000(d, c, msg);
+ Rule_001(d, c, msg);
+ Rule_004(d, c, msg);
+ if (c->part)
+ Check_Chunk(d, c->part, msg);
+ if (c->next)
+ Check_Chunk(d, c->next, msg);
+ break;
}
}
OpenPOWER on IntegriCloud