[Bug 245916] Superblock check-hash failed

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 04 Feb 2022 19:49:04 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245916

--- Comment #4 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

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

commit c0bfa109b942659f609b7e2bf3ba042ec0cb3f9d
Author:     Kirk McKusick <mckusick@FreeBSD.org>
AuthorDate: 2022-02-04 19:46:36 +0000
Commit:     Kirk McKusick <mckusick@FreeBSD.org>
CommitDate: 2022-02-04 19:47:48 +0000

    Have fsck_ffs(8) properly correct superblock check-hash failures.

    Part of the problem was that fsck_ffs would read the superblock
    multiple times complaining and repairing the superblock check hash
    each time and then at the end failing to write out the superblock
    with the corrected check hash. This fix reads the superblock just
    once and if the check hash is corrected ensures that the fixed
    superblock gets written.

    Tested by:    Peter Holm
    PR:           245916
    MFC after:    1 week
    Sponsored by: Netflix

 sbin/fsck_ffs/fsck.h   |   1 +
 sbin/fsck_ffs/fsutil.c |   4 +-
 sbin/fsck_ffs/globs.c  |   6 +-
 sbin/fsck_ffs/main.c   | 309 +++++++++++++++++++++++++++++++++----------------
 sbin/fsck_ffs/setup.c  | 182 +++++++----------------------
 5 files changed, 258 insertions(+), 244 deletions(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.