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

(cherry picked from commit 70a0fb43f91cfe3d08db7cb443d9690f8bff065e)

Details

Provenance
freebsd_igalic.coAuthored on Oct 5 2023, 6:24 PM
desCommitted on Dec 13 2023, 4:19 PM
Reviewer
jilles
Differential Revision
D27161: growfs: make exit codes more consistent
Parents
rG7ef70d24eee7: Update tzcode to 2023c.
Branches
Unknown
Tags
Unknown