mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-30 20:06:56 -05:00
Extend the disk filtering to parity disk
You can now fix a specific parity disk, without touching the others.
This commit is contained in:
parent
3e83b15bbb
commit
2b69cfa073
9 changed files with 72 additions and 19 deletions
|
|
@ -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 :
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue