summaryrefslogtreecommitdiffstats
path: root/lib/libdisk
diff options
context:
space:
mode:
authorlulf <lulf@FreeBSD.org>2009-06-15 16:18:24 +0000
committerlulf <lulf@FreeBSD.org>2009-06-15 16:18:24 +0000
commit9aa55594f3c320c2986718fd84f7eb111dac466e (patch)
tree9ebcd460f358a680200912da1834488c32481fea /lib/libdisk
parent824168c054176f782d55ed012d01b78f0d83a26d (diff)
downloadFreeBSD-src-9aa55594f3c320c2986718fd84f7eb111dac466e.zip
FreeBSD-src-9aa55594f3c320c2986718fd84f7eb111dac466e.tar.gz
- 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
Diffstat (limited to 'lib/libdisk')
-rw-r--r--lib/libdisk/change.c10
1 files changed, 1 insertions, 9 deletions
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)
OpenPOWER on IntegriCloud