mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-01 12:26:38 -05:00
Detect degraded filesystems in device commands and exit with EXIT_DEGRADED
This commit is contained in:
parent
2a4335ef7d
commit
929ba5cebe
47 changed files with 183 additions and 4 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue