diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1995-05-20 19:11:44 +0000 | 
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1995-05-20 19:11:44 +0000 | 
| commit | 13da1b061240d235aca1f750bb5c220042f08c0f (patch) | |
| tree | 3fc2d61ae0cf3bc224e6a018722188287c61b54d /lib/libdisk/create_chunk.c | |
| parent | 7b9728ce0bb1dd9c9759a22a7720c73008f4525a (diff) | |
Notes
Diffstat (limited to 'lib/libdisk/create_chunk.c')
| -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 18f71e3a3e00..ab1f0828b162 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;  | 
