svn commit: r194241 - head/lib/libdisk

Ulf Lilleengen lulf at FreeBSD.org
Mon Jun 15 16:18:25 UTC 2009


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)


More information about the svn-src-head mailing list