From 9aa55594f3c320c2986718fd84f7eb111dac466e Mon Sep 17 00:00:00 2001 From: lulf Date: Mon, 15 Jun 2009 16:18:24 +0000 Subject: - 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(-) (limited to 'lib/libdisk') diff --git a/lib/libdisk/change.c b/lib/libdisk/change.c index 7b63561..297ac11 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) -- cgit v1.1