From owner-freebsd-current Thu May 11 09:19:23 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id JAA03197 for current-outgoing; Thu, 11 May 1995 09:19:23 -0700 Received: from ref.tfs.com (ref.tfs.com [140.145.254.251]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id JAA03191 for ; Thu, 11 May 1995 09:19:22 -0700 Received: (from phk@localhost) by ref.tfs.com (8.6.8/8.6.6) id JAA29332; Thu, 11 May 1995 09:18:39 -0700 From: Poul-Henning Kamp Message-Id: <199505111618.JAA29332@ref.tfs.com> Subject: Re: problem with new biosboot? To: bde@zeta.org.au (Bruce Evans) Date: Thu, 11 May 1995 09:18:38 -0700 (PDT) Cc: current@FreeBSD.org, mark@linus.demon.co.uk In-Reply-To: <199505110607.QAA07289@godzilla.zeta.org.au> from "Bruce Evans" at May 11, 95 04:07:55 pm Content-Type: text Content-Length: 697 Sender: current-owner@FreeBSD.org Precedence: bulk > > /* This is a good idea for all disks */ > > bsize = dl->d_partitions[part].p_size; > > bend = boff + bsize - 1 ; > > if (bend / spt > 1024) { > ^^^ > > printf("partition is out of reach from the bios\n"); > > return 1; > > } > > spc should work better :-). It's amazing that spt often works. It works > here because bend = 32767 and spt = 32 on one system and 52 on another. DUH! -- Poul-Henning Kamp -- TRW Financial Systems, Inc. 'All relevant people are pertinent' && 'All rude people are impertinent' => 'no rude people are relevant'