diff options
author | nyan <nyan@FreeBSD.org> | 2009-09-21 04:04:02 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2009-09-21 04:04:02 +0000 |
commit | 3efb1881d99b44f76a42605a56ddd591651850c1 (patch) | |
tree | d2ee157c2d8627b7a2d4d8ff72b670f8d1e20bbf /lib | |
parent | dfb74491e6e67eeb88b7a8c4b312e4750bcdc724 (diff) | |
download | FreeBSD-src-3efb1881d99b44f76a42605a56ddd591651850c1.zip FreeBSD-src-3efb1881d99b44f76a42605a56ddd591651850c1.tar.gz |
Disable a check on a disk size because it's too strict. This change is
to avoid using incorrect geometry.
It seems that this is the same problem in g_part_bsd_read()@g_part_bsd.c.
Reviewed by: rink
MFC after: 3 days
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libdisk/change.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libdisk/change.c b/lib/libdisk/change.c index 0ee047f..5f0c9c6 100644 --- a/lib/libdisk/change.c +++ b/lib/libdisk/change.c @@ -47,9 +47,11 @@ Sanitize_Bios_Geom(struct disk *disk) if (disk->bios_sect > 63) sane = 0; #endif +#if 0 /* Disable a check on a disk size. It's too strict. */ if (disk->bios_cyl * disk->bios_hd * disk->bios_sect != disk->chunks->size) sane = 0; +#endif if (sane) return; |