]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Don't bail out when we find primary and secondary bootblocks miscompare.
authorXin LI <delphij@FreeBSD.org>
Fri, 22 Jun 2018 16:18:19 +0000 (16:18 +0000)
committerXin LI <delphij@FreeBSD.org>
Fri, 22 Jun 2018 16:18:19 +0000 (16:18 +0000)
commitb7d6282aaec58918ccd946efc3b383b4fc3cdcc8
tree0dd2827ff7ef8bbe2fe98ca86172f6b9440ca2d4
parentcbafd2630b811d90130261b97421f246d8ea2a50
Don't bail out when we find primary and secondary bootblocks miscompare.
We do not have code to fix this situation, and the mismatch does not
prevent the kernel driver from consuming the file system, and some factory
formatted SD cards seem to have a garbage backup block.

This makes the code match to its comments (replacing pfatal with pwarn).

Inspired by: NetBSD r1.13
Inspired by: https://android.googlesource.com/platform/external/fsck_msdos/+/b47b16353f3db228711dded9f7c975b820059ddc
MFC after: 2 weeks
sbin/fsck_msdosfs/boot.c