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

@ -1804,6 +1804,8 @@ int snapraid_main(int argc, char* argv[])
/* abort if required */
if (ret != 0) {
/* LCOV_EXCL_START */
if (ret == 1)
exit(EXIT_DEGRADED);
exit(EXIT_FAILURE);
/* LCOV_EXCL_STOP */
}