More coverage test
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-win (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run

This commit is contained in:
Andrea Mazzoleni 2026-02-28 10:08:09 +01:00
parent 748c086edb
commit 21561e6cf9
10 changed files with 88 additions and 4 deletions

View file

@ -1655,7 +1655,7 @@ static void state_map(struct snapraid_state* state)
/* recommend number of parities */
if (!state->opt.no_warnings) {
/* intentionally use log_fatal() instead of log_error() to give more visibility at the warning */
/* LCOV_EXCL_START */
if (diskcount >= 36 && state->level < 6) {
log_error(EUSER, "WARNING! For %u disks, it's recommended to use six parity levels.\n", diskcount);
} else if (diskcount >= 29 && state->level < 5) {
@ -1667,6 +1667,7 @@ static void state_map(struct snapraid_state* state)
} else if (diskcount >= 5 && state->level < 2) {
log_error(EUSER, "WARNING! For %u disks, it's recommended to use two parity levels.\n", diskcount);
}
/* LCOV_EXCL_STOP */
}
}