HomeFreeBSD

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

Description

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

Details

Provenance
mckusickAuthored on Feb 4 2022, 7:46 PM
Parents
rG930a7c2ac67e: compiler-rt: re-exec with ASLR disabled when necessary
Branches
Unknown
Tags
Unknown