bin/113682: [sysinstall][patch] sysinstall warn for invalid geometry which is not

Cedric GROSS cedric.gross at cnv.fr
Thu Jun 14 14:50:04 UTC 2007


>Number:         113682
>Category:       bin
>Synopsis:       [sysinstall][patch] sysinstall warn for invalid geometry which is not
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 14 14:50:02 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Cedric GROSS
>Release:        6.2
>Organization:
CNV
>Environment:
FreeBSD prt-freebsd.cnv.local 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 10:40:27 UTC 2007     root at dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
When running install with HDD > 32Gb slice editor warn a geometry of xxx/xxx/255 is invalid which is not.

In fact, condition for showing message and sanitize the geometry is wrong and should be same as for PC98 configuration.

Also, Sanitize_Bios_Geom in  src/lib/libdisk/change.c should be change because we first test for head<16 and for HDD >32Gb we reach head=255 (SCSI Setting).
Seems that Sanitize is base on the 528Mb barrier (1024/16/63)

>How-To-Repeat:
Use disk with capacity > 32Gb and run slice editor on it.
>Fix:
Review print_chunks in src/usr.sbin/sysinstall/disks.c (patch included) and
review Sanitize_Bios_Geom in src/lib/libdisk/change.c 


Patch attached with submission follows:

--- disks.c.origin	Thu Jun 14 16:08:08 2007
+++ disks.c	Thu Jun 14 16:18:23 2007
@@ -119,11 +119,7 @@
     Total = 0;
     for (i = 0; chunk_info[i]; i++)
 	Total += chunk_info[i]->size;
-#ifdef PC98
-    if (d->bios_cyl >= 65536 || d->bios_hd > 256 || d->bios_sect >= 256) {
-#else
-    if (d->bios_cyl > 65536 || d->bios_hd > 256 || d->bios_sect >= 64) {
-#endif
+    if (d->bios_cyl > 65536 || d->bios_hd > 256 || d->bios_sect >= 256) {
 	dialog_clear_norefresh();
 	msgConfirm("WARNING:  A geometry of %lu/%lu/%lu for %s is incorrect.  Using\n"
 		   "a more likely geometry.  If this geometry is incorrect or you\n"


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list