1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

- 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
This commit is contained in:
Ulf Lilleengen 2009-06-15 16:18:24 +00:00
parent 7b593c5d9d
commit 3eba493397
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=194241

View File

@ -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)