Extend the disk filtering to parity disk

You can now fix a specific parity disk,
without touching the others.
This commit is contained in:
Andrea Mazzoleni 2015-10-17 17:36:40 +02:00
parent 3e83b15bbb
commit 2b69cfa073
9 changed files with 72 additions and 19 deletions

View file

@ -885,6 +885,15 @@ int main(int argc, char* argv[])
}
}
/* errors must be always fixed on all disks */
/* becasue we don't keep the information on what disk is the error */
if (filter_error != 0 && !tommy_list_empty(&filterlist_disk)) {
/* LCOV_EXCL_START */
log_fatal("You cannot use -e, --filter-error and -d, --filter-disk at the same time\n");
exit(EXIT_FAILURE);
/* LCOV_EXCL_STOP */
}
switch (operation) {
case OPERATION_CHECK :
case OPERATION_FIX :