From 7ee584e87b77288741d4f89ccd93c8cdfd0e6c87 Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 20 May 1995 19:11:44 +0000 Subject: Do not allocate the first track. --- lib/libdisk/create_chunk.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/libdisk/create_chunk.c') diff --git a/lib/libdisk/create_chunk.c b/lib/libdisk/create_chunk.c index 18f71e3..ab1f082 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.16 1995/05/15 00:58:25 phk Exp $ + * $Id: create_chunk.c,v 1.17 1995/05/15 19:03:08 phk Exp $ * */ @@ -156,6 +156,10 @@ Create_Chunk(struct disk *d, u_long offset, u_long size, chunk_e type, int subty { int i; + if (!offset) { + offset += d->bios_sect; + size -= d->bios_sect; + } i = Add_Chunk(d,offset,size,"X",type,subtype,flags); Fixup_Names(d); return i; -- cgit v1.1