Detect degraded filesystems in device commands and exit with EXIT_DEGRADED

This commit is contained in:
Andrea Mazzoleni 2026-09-18 23:28:47 +02:00
parent 2a4335ef7d
commit 929ba5cebe
47 changed files with 183 additions and 4 deletions

View file

@ -228,11 +228,13 @@ extern FILE* stdlog;
extern int exit_success;
extern int exit_failure;
extern int exit_sync_needed;
extern int exit_degraded;
#undef EXIT_SUCCESS
#undef EXIT_FAILURE
#define EXIT_SUCCESS exit_success
#define EXIT_FAILURE exit_failure
#define EXIT_SYNC_NEEDED exit_sync_needed
#define EXIT_DEGRADED exit_degraded
/**
* Standard SMART attributes.