From owner-cvs-all Sat Nov 2 17:38:42 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 86CE537B401; Sat, 2 Nov 2002 17:38:41 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 367F043E4A; Sat, 2 Nov 2002 17:38:41 -0800 (PST) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id gA31b8mV097734; Sat, 2 Nov 2002 17:37:08 -0800 (PST) (envelope-from marcel@repoman.freebsd.org) Received: (from marcel@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id gA31b8mJ097733; Sat, 2 Nov 2002 17:37:08 -0800 (PST) Message-Id: <200211030137.gA31b8mJ097733@repoman.freebsd.org> From: Marcel Moolenaar Date: Sat, 2 Nov 2002 17:37:08 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libdisk disk.c X-FreeBSD-CVS-Branch: HEAD 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 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. Revision Changes Path 1.102 +10 -4 src/lib/libdisk/disk.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message