diff options
author | phk <phk@FreeBSD.org> | 2002-10-29 12:13:36 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-10-29 12:13:36 +0000 |
commit | 9ac588fcdc62b97e03cc79a1fec7c4d7d3db67e7 (patch) | |
tree | bd294afda02938a99937d9c7ff93f81898710561 /lib/libdisk/rules.c | |
parent | 3957c08bfc58678219af04363a20d93436d1bc01 (diff) | |
download | FreeBSD-src-9ac588fcdc62b97e03cc79a1fec7c4d7d3db67e7.zip FreeBSD-src-9ac588fcdc62b97e03cc79a1fec7c4d7d3db67e7.tar.gz |
Since make release is toast anyway, add wood to the pyre:
This significantly rewamps libdisks discovery of existing disk
layout.
Please send me reports if this does not work as expected on
i386 or sparc64 platforms.
I need to sort out alpha, pc98 and ia64 (in that order) before
testing on those platforms make a lot of sense.
Belived to work for: i386 sparc64
Unknown state: pc98 alpha ia64
Diffstat (limited to 'lib/libdisk/rules.c')
-rw-r--r-- | lib/libdisk/rules.c | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/lib/libdisk/rules.c b/lib/libdisk/rules.c index a6a2255..87846c9 100644 --- a/lib/libdisk/rules.c +++ b/lib/libdisk/rules.c @@ -233,15 +233,18 @@ Rule_004(const struct disk *d, const struct chunk *c, char *msg) static void Check_Chunk(const struct disk *d, const struct chunk *c, char *msg) { - Rule_000(d, c, msg); - Rule_001(d, c, msg); - Rule_002(d, c, msg); - Rule_003(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); + + if (platform == p_i386) { + Rule_000(d, c, msg); + Rule_001(d, c, msg); + Rule_002(d, c, msg); + Rule_003(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); + } } char * |