From 3eba49339705fa389fb0bccb341ce202095458bb Mon Sep 17 00:00:00 2001 From: Ulf Lilleengen Date: Mon, 15 Jun 2009 16:18:24 +0000 Subject: [PATCH] - 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 --- lib/libdisk/change.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/lib/libdisk/change.c b/lib/libdisk/change.c index 7b6356156733..297ac11efa9d 100644 --- a/lib/libdisk/change.c +++ b/lib/libdisk/change.c @@ -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)