Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Nov 2002 14:08:46 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Marcel Moolenaar <marcel@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, <cvs-all@FreeBSD.org>
Subject:   Re: cvs commit: src/lib/libdisk disk.c
Message-ID:  <20021103135904.L21845-100000@gamplex.bde.org>
In-Reply-To: <200211030137.gA31b8mJ097733@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021103135904.L21845-100000>