Some minor changes.

This commit is contained in:
Andrea Mazzoleni 2011-09-19 20:45:35 +02:00
parent 50078b8155
commit 83f89f4f0e
9 changed files with 53 additions and 27 deletions

View file

@ -261,12 +261,12 @@ void state_config(struct snapraid_state* state, const char* path, int verbose, i
exit(EXIT_FAILURE);
}
if (state->qarity[0] != 0) {
content_required = 2;
content_required = 3;
} else {
content_required = 1;
content_required = 2;
}
if (content_count < content_required) {
fprintf(stderr, "You must have one 'content' file for each parity disk.\n");
fprintf(stderr, "You must have at least %d 'content' files. One for each parity disk plus one.\n", content_required);
exit(EXIT_FAILURE);
}