stand: Search less agressively for UFS super block
authorWarner Losh <imp@FreeBSD.org>
Thu, 18 Aug 2022 12:40:24 +0000 (06:40 -0600)
committerWarner Losh <imp@FreeBSD.org>
Thu, 18 Aug 2022 12:41:11 +0000 (06:41 -0600)
commit6d645da0d49decc0352f27b8b5ff1983c611659d
treebf9c261e45152d226924b52df5f885be14ccacc9
parenteed634d113df69d26eb9480e4e95919b2e9ee5bc
stand: Search less agressively for UFS super block

The boot loader should look in the standard places for the UFS
superblock, but not go too far into the speculative realm. Supress
errors about hash being invalid, which will allow us to boot, even when
the superblock looks good, but fails the hash test. This defers any
policy decisions about booting and/or recovery to userland. This also
has the side effect of eliminating some rather spammy messages when UFS
searches devices with filesystems that are not UFS...

Sponsored by: Netflix
Reviewed by: mckusick
Differential Revision: https://reviews.freebsd.org/D36253
stand/libsa/ufs.c