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
This commit is contained in:
Poul-Henning Kamp 2002-10-29 17:12:02 +00:00
parent d8011e5791
commit 30820b02ab
2 changed files with 3 additions and 4 deletions

View File

@ -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 ------------------------------------- */
}

View File

@ -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 --------------------------------------- */