freebsd-src/sbin/growfs
Mina Galić 06c9bece28 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 70a0fb43f9)
2023-12-13 17:19:56 +01:00
..
tests Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
debug.c Purge more stray embedded $FreeBSD$ strings 2023-10-24 11:13:18 -07:00
debug.h Remove $FreeBSD$: one-line .h pattern 2023-08-23 11:43:22 -06:00
growfs.8 growfs: make exit codes more consistent 2023-12-13 17:19:56 +01:00
growfs.c growfs: make exit codes more consistent 2023-12-13 17:19:56 +01:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00