diff options
-rw-r--r-- | lib/libdisk/chunk.c | 5 | ||||
-rw-r--r-- | lib/libdisk/disk.c | 2 |
2 files changed, 3 insertions, 4 deletions
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 --------------------------------------- */ |