Date: Mon, 17 Mar 1997 05:14:38 +1100 From: Bruce Evans <bde@zeta.org.au> To: dgy@rtd.com, helbig@MX.BA-Stuttgart.De Cc: hackers@FreeBSD.org Subject: Re: wd driver questions Message-ID: <199703161814.FAA10848@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>> And, how (if at all) does the geometry written to the disklabel >> figure into the operation/calculations of the driver? > >As far as I could decipher from the driver code (wd.c) the probed geometry >is used only to read the label. No, the probed geometry is used for everything in the driver. >From there on the geometry read from the >label is used exclusively by the driver. Both are the same, if you >disklabel auto. The geometry read from the label is not used by the driver (except in `#if 0' code). It is normally only used by fdisk. newfs ignores it by default. The BIOS geometry is not used either, except in some kludgy cases involving drives that don't report their geometry (old MFM drives). Old versions of the driver worked like you thought, except for complications. First the MBR was read and the BIOS geometry was guessed from it. The the drive was programmed to use the guessed BIOS geometry. Then the label and possibly the bad block table was read. Then the drive was programmed to use the geometry in the label. There were many driver bugs (all of this must be done atomically, and some of it must be redone after drive reset ...). There were many configuration errors (it was possible to put a physically impossible. or just inconsistent, geometry in the label ...). Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703161814.FAA10848>