Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jun 2009 16:18:24 +0000 (UTC)
From:      Ulf Lilleengen <lulf@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r194241 - head/lib/libdisk
Message-ID:  <200906151618.n5FGIO0o094444@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: lulf
Date: Mon Jun 15 16:18:24 2009
New Revision: 194241
URL: http://svn.freebsd.org/changeset/base/194241

Log:
  - Relax sanitazion requirements in libdisk, as a previous commit enabling this
    sanitization broke sysinstall on some disks.  This was due to the disks
    reporting a geometry that was incorrectly sanitized by sysinstall. This makes
    the sanitization consistent with fdisk.
  
  Tested by:	randi

Modified:
  head/lib/libdisk/change.c

Modified: head/lib/libdisk/change.c
==============================================================================
--- head/lib/libdisk/change.c	Mon Jun 15 15:43:00 2009	(r194240)
+++ head/lib/libdisk/change.c	Mon Jun 15 16:18:24 2009	(r194241)
@@ -34,17 +34,9 @@ Sanitize_Bios_Geom(struct disk *disk)
 
 	sane = 1;
 
-#ifdef PC98
 	if (disk->bios_cyl >= 65536)
-#else
-	if (disk->bios_cyl > 1024)
-#endif
 		sane = 0;
-#ifdef PC98
-	if (disk->bios_hd >= 256)
-#else
-	if (disk->bios_hd > 16)
-#endif
+	if (disk->bios_hd > 256)
 		sane = 0;
 #ifdef PC98
 	if (disk->bios_sect >= 256)



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