]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r335559:
authordelphij <delphij@FreeBSD.org>
Mon, 9 Jul 2018 06:02:45 +0000 (06:02 +0000)
committerdelphij <delphij@FreeBSD.org>
Mon, 9 Jul 2018 06:02:45 +0000 (06:02 +0000)
commit2362370c4d538407c9f9b6df087d961397d61e07
treec63c202a20b6f1bbf0ce54a712cdf4e6a73ea2db
parent90e8c90e851888890dabf36268b1192df45847ee
MFC r335559:

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
sbin/fsck_msdosfs/boot.c