Date: Mon, 21 Sep 2009 04:04:03 +0000 (UTC) From: Takahashi Yoshihiro <nyan@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r197374 - head/lib/libdisk Message-ID: <200909210404.n8L443KB075659@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: nyan Date: Mon Sep 21 04:04:02 2009 New Revision: 197374 URL: http://svn.freebsd.org/changeset/base/197374 Log: 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 Modified: head/lib/libdisk/change.c Modified: head/lib/libdisk/change.c ============================================================================== --- head/lib/libdisk/change.c Mon Sep 21 01:41:19 2009 (r197373) +++ head/lib/libdisk/change.c Mon Sep 21 04:04:02 2009 (r197374) @@ -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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909210404.n8L443KB075659>