]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r197608:
authorae <ae@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 7 Jun 2010 20:31:55 +0000 (20:31 +0000)
committerae <ae@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 7 Jun 2010 20:31:55 +0000 (20:31 +0000)
commit0a4573e984d85dc4654a1eb00364fd2643ff27f4
tree7404dd011325284e06c404339547d7d8aaa2f27b
parent489cecdb521f579037891822084825677b0e4b6c
MFC r197608:

The first 96 bytes may not be zeroes. It can contain trivial boot
code that merely emits an error and waits for a key press before
rebooting. The error being that extended partitions are not
bootable. The origin is presumed to be Windows 2000; Windows XP
does not do this...

For now, ignore the first 96 bytes when checking that the EBR is
(for the most part) all zeroes.

Tested by: Mario Lobo <mlobo at digiart.art.br>
Dieter <dieterbsd at engineer.com>
PR: kern/141235
Reviewed by: marcel
Approved by: kib (mentor)
Approved by: re (bz)

git-svn-id: svn://svn.freebsd.org/base/stable/8@208899 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/geom/part/g_part_ebr.c