Sanitizing a geometry in libdisk

Takahashi Yoshihiro nyan at jp.FreeBSD.org
Sat Sep 19 04:23:02 UTC 2009


The Sanitize_Bios_Geom() is always called after r188408.  But the
function has a problem of checking a disk size.  So it causes to using
incorrect geometry.

I think that it's the same problem in g_part_bsd_read()@g_part_bsd.c

The attached patch is useful for pc98 at least so it should be in 8.0.

Please review it.

---
TAKAHASHI Yoshihiro <nyan at jp.FreeBSD.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: l.diff
Type: text/x-patch
Size: 442 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20090919/c8fffa42/l.bin


More information about the freebsd-current mailing list