Date: Thu, 28 Feb 2008 22:30:41 +0000 (UTC) From: Marcel Moolenaar <marcel@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/geom/part g_part_mbr.c Message-ID: <200802282230.m1SMUf7R009576@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
marcel 2008-02-28 22:30:41 UTC FreeBSD src repository Modified files: sys/geom/part g_part_mbr.c Log: Better handle false positives. The MBR differs from the boot sector only because there's a partition table where the boot sector has boot code. Boot sectors without boot code look like a MBR for all practical purposes. This change adds a check for the partition table and fails the probe when it's obvously invalid. The assumption being that the sector contains a boot sector and not a MBR. More checks are needed to distinguish a boot secto without boot code from a (empty) MBR. Revision Changes Path 1.3 +24 -6 src/sys/geom/part/g_part_mbr.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802282230.m1SMUf7R009576>