The branch main has been updated by mckusick:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=4f9606c9a6155075847b9dc3e5cb67906484195c

commit 4f9606c9a6155075847b9dc3e5cb67906484195c
Author:     Kirk McKusick <[email protected]>
AuthorDate: 2022-08-17 20:52:41 +0000
Commit:     Kirk McKusick <[email protected]>
CommitDate: 2022-08-17 20:54:07 +0000

    When reading backup UFS superblocks, report reason if they cannot be used.
    
    When either searching for backup UFS superblocks or when explicitly asked
    to use one with the -b option, report the reason for failure if it cannot
    be used.
    
    Reported by:  Peter Holm
    Sponsored by: The FreeBSD Foundation
---
 sbin/fsck_ffs/setup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sbin/fsck_ffs/setup.c b/sbin/fsck_ffs/setup.c
index 3db59e611729..69b027a3a5c8 100644
--- a/sbin/fsck_ffs/setup.c
+++ b/sbin/fsck_ffs/setup.c
@@ -230,7 +230,7 @@ readsb(void)
         * If bflag is given, then check just that superblock.
         */
        if (bflag) {
-               switch (sbget(fsreadfd, &fs, bflag * dev_bsize, UFS_NOMSG)) {
+               switch (sbget(fsreadfd, &fs, bflag * dev_bsize, 0)) {
                case 0:
                        goto goodsb;
                case EINTEGRITY:

Reply via email to