From d52f4602e266012495893d291dea249c444f9ed5 Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 29 Oct 2002 17:12:02 +0000 Subject: Getting closer to getting things right: Always ignore the RAW_PART for BSD. Having no quirks is not a mistake for an architecture. Tested by: DES --- lib/libdisk/chunk.c | 5 ++--- lib/libdisk/disk.c | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'lib/libdisk') diff --git a/lib/libdisk/chunk.c b/lib/libdisk/chunk.c index 9dfcad0..07f5aef 100644 --- a/lib/libdisk/chunk.c +++ b/lib/libdisk/chunk.c @@ -286,9 +286,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); - break; - } - if (platform == p_i386) { + } else if (platform == p_i386) { if (type != freebsd) break; if (!(flags & CHUNK_ALIGN)) @@ -320,6 +318,7 @@ Add_Chunk(struct disk *d, long offset, u_long size, const char *name, /* Convert back to size */ size -= offset; } + break; /* PLATFORM POLICY END ------------------------------------- */ } diff --git a/lib/libdisk/disk.c b/lib/libdisk/disk.c index 267ea19..bc4ce3d 100644 --- a/lib/libdisk/disk.c +++ b/lib/libdisk/disk.c @@ -209,7 +209,7 @@ Int_Open_Disk(const char *name) if (Add_Chunk(d, 0, d->chunks->size, name, freebsd, 0, 0, "-")) DPRINT(("Failed to add 'freebsd' chunk")); } - if (platform == p_i386 && !strcmp(t, "BSD") && i == 2) + if (!strcmp(t, "BSD") && i == RAW_PART) continue; /* PLATFORM POLICY END --------------------------------------- */ -- cgit v1.1