diff options
author | Ulf Lilleengen <lulf@FreeBSD.org> | 2009-06-15 16:18:24 +0000 |
---|---|---|
committer | Ulf Lilleengen <lulf@FreeBSD.org> | 2009-06-15 16:18:24 +0000 |
commit | 3eba49339705fa389fb0bccb341ce202095458bb (patch) | |
tree | 9ebcd460f358a680200912da1834488c32481fea /lib/libdisk | |
parent | 7b593c5d9d0df04fc40eef27fdf42d10ec4df7b9 (diff) | |
download | src-3eba49339705fa389fb0bccb341ce202095458bb.tar.gz src-3eba49339705fa389fb0bccb341ce202095458bb.zip |
- 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
Notes
Notes:
svn path=/head/; revision=194241
Diffstat (limited to 'lib/libdisk')
-rw-r--r-- | lib/libdisk/change.c | 10 |
1 files changed, 1 insertions, 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) |