freebsd-src/sbin/growfs
Mina Galić 70a0fb43f9 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
2023-10-06 15:02:40 +02:00
..
tests Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
debug.c Purge more stray embedded $FreeBSD$ strings 2023-09-25 07:54:56 -07:00
debug.h Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:23 -06:00
growfs.8 growfs: make exit codes more consistent 2023-10-06 15:02:40 +02:00
growfs.c growfs: make exit codes more consistent 2023-10-06 15:02:40 +02:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00