diff options
author | phk <phk@FreeBSD.org> | 1995-05-15 19:03:08 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1995-05-15 19:03:08 +0000 |
commit | ff15745bd7700e77954588d31c1d1bbf3e56096b (patch) | |
tree | f1fbfd606aad6a5cbe9e6d585708a86ac4b071aa /lib/libdisk/create_chunk.c | |
parent | 50ad47cf77d66ceace4b80a8abb7a4b87c5a08f5 (diff) | |
download | FreeBSD-src-ff15745bd7700e77954588d31c1d1bbf3e56096b.zip FreeBSD-src-ff15745bd7700e77954588d31c1d1bbf3e56096b.tar.gz |
Fixed the calculation of the reserved space for bad144. Thanks Rod!
Diffstat (limited to 'lib/libdisk/create_chunk.c')
-rw-r--r-- | lib/libdisk/create_chunk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libdisk/create_chunk.c b/lib/libdisk/create_chunk.c index 3be4560..18f71e3 100644 --- a/lib/libdisk/create_chunk.c +++ b/lib/libdisk/create_chunk.c @@ -6,7 +6,7 @@ * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp * ---------------------------------------------------------------------------- * - * $Id: create_chunk.c,v 1.15 1995/05/12 18:49:57 phk Exp $ + * $Id: create_chunk.c,v 1.16 1995/05/15 00:58:25 phk Exp $ * */ @@ -180,7 +180,7 @@ Create_Chunk_DWIM(struct disk *d, struct chunk *parent , u_long size, chunk_e ty return 0; found: if (c1->flags & CHUNK_BAD144) { - edge = c1->end - (d->bios_hd * d->bios_sect); + edge = c1->end - d->bios_sect - 127; if (offset > edge) return 0; if (offset + size > edge) |