diff options
author | phk <phk@FreeBSD.org> | 1995-05-20 19:11:44 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1995-05-20 19:11:44 +0000 |
commit | 7ee584e87b77288741d4f89ccd93c8cdfd0e6c87 (patch) | |
tree | 3fc2d61ae0cf3bc224e6a018722188287c61b54d /lib/libdisk | |
parent | 9c78f8a3aea458c1d0c7e2e896cb7b1838e23359 (diff) | |
download | FreeBSD-src-7ee584e87b77288741d4f89ccd93c8cdfd0e6c87.zip FreeBSD-src-7ee584e87b77288741d4f89ccd93c8cdfd0e6c87.tar.gz |
Do not allocate the first track.
Diffstat (limited to 'lib/libdisk')
-rw-r--r-- | lib/libdisk/create_chunk.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; |