Adds filter exclusion.

Some refactoring.
This commit is contained in:
Andrea Mazzoleni 2011-03-16 23:52:10 +01:00
parent c2d113685e
commit b9b8fd0bb8
24 changed files with 687 additions and 217 deletions

View file

@ -292,7 +292,7 @@ void state_check(struct snapraid_state* state, int fix, block_off_t blockstart)
exit(EXIT_FAILURE);
}
snprintf(path, sizeof(path), "%s", state->parity);
pathcpy(path, sizeof(path), state->parity);
if (fix) {
/* if fixing, create the file and open for writing */
/* it never fails */