From owner-cvs-all Sat Nov 2 18:57:33 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 61AB837B401; Sat, 2 Nov 2002 18:57:32 -0800 (PST) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id D35DE43E4A; Sat, 2 Nov 2002 18:57:30 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id NAA09137; Sun, 3 Nov 2002 13:57:28 +1100 Date: Sun, 3 Nov 2002 14:08:46 +1100 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Marcel Moolenaar Cc: cvs-committers@FreeBSD.org, Subject: Re: cvs commit: src/lib/libdisk disk.c In-Reply-To: <200211030137.gA31b8mJ097733@repoman.freebsd.org> Message-ID: <20021103135904.L21845-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, 2 Nov 2002, Marcel Moolenaar wrote: > marcel 2002/11/02 17:37:08 PST > > Modified files: > lib/libdisk disk.c > Log: > Initialize d->bios_cyl. We know the media size in sectors, the number > of heads end the number of sectors per track. If there's an obvious > insanity (heads and sectors are both zero or the media size is not > an integral multiple of heads times sector) we set the number of > cylinders to zero. The media size not being a multiple of heads times sector (sic) is normal, no insane, since the number of heads and sectors per track are nominal and not all media sizes have enough factors to be divisible by any possible and/or reasonable choices for the number of heads and sectors, and not all ****ware is dumbed down to pretend that the media size is smaller than it is so that it can have enough factors. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message