HomeFreeBSD

Ensure that fsck(8) / fsck_ffs(8) produces the correct exit code

Description

Ensure that fsck(8) / fsck_ffs(8) produces the correct exit code
for missing devices.

The fsck_ffs(8) utility uses its internal function openfilesys()
when opening a disk to be checked. This change avoids the use
of pfatal() in openfilesys() which always exits with failure (exit
value 8) so that the caller can choose the correct exit value.
In the case of a non-existent device it should exit with value 3
which allows the startup system to wait for drives (such as those
attached by USB) to come online.

Reported by: karels
Tested by: karels
PR: 262580
MFC after: 3 days

Details

Provenance
mckusickAuthored on Mar 16 2022, 6:37 PM
Parents
rGe997f3370082: Add Tempo Semiconductor 92HD95B HDA codec ID
Branches
Unknown
Tags
Unknown