HomeFreeBSD

growfs: make exit codes more consistent

Description

growfs: make exit codes more consistent

We have overused err(1), so it's hard to distinguish when an error is
very, very serious, and when it's just a user-error, or even harmless.

This patch changes the current behaviour to distinguish between the
following three:

1 for usage errors
2 for recoverable errors
3 or higher for unrecoverable errors

Reviewed by: jilles, pauamma_gundo.com, des
Differential Revision: https://reviews.freebsd.org/D27161

Details

Provenance
freebsd_igalic.coAuthored on Oct 5 2023, 6:24 PM
desCommitted on Oct 6 2023, 1:02 PM
Reviewer
jilles
Differential Revision
D27161: growfs: make exit codes more consistent
Parents
rG299e2d5724c2: rtw88: re-connect to the build
Branches
Unknown
Tags
Unknown