HomeFreeBSD

Avoid unnecessary setting of UFS flag requesting fsck(8) be run.

Description

Avoid unnecessary setting of UFS flag requesting fsck(8) be run.

When the kernel is requested to mount a filesystem with a bad superblock
check hash, it would set the flag in the superblock requesting that the
fsck(8) program be run. The flag is only written to disk as part of a
superblock update. Since the superblock always has its check hash updated
when it is written to disk, the problem for which the flag has been set
will no longer exist. Hence, it is counter-productive to set the flag
as it will just cause an unnecessary run of fsck if it ever gets written.

Sponsored by: Netflix

Details

Provenance
mckusickAuthored on Jan 10 2022, 12:17 AM
Parents
rG174d86a01bf6: tws: fix "set but not used" in the tws driver
Branches
Unknown
Tags
Unknown