mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Sync rejects block ranges and always process full parity
This commit is contained in:
parent
1b7f210e3b
commit
e4abd2b080
43 changed files with 179 additions and 84 deletions
|
|
@ -1491,6 +1491,29 @@ int snapraid_main(int argc, char* argv[])
|
|||
|
||||
/* check options compatibility */
|
||||
switch (operation) {
|
||||
#if HAVE_CHECKER
|
||||
case OPERATION_SYNC :
|
||||
#endif
|
||||
case OPERATION_DRY :
|
||||
case OPERATION_CHECK :
|
||||
case OPERATION_FIX :
|
||||
break;
|
||||
default :
|
||||
if (blockstart != 0) {
|
||||
/* LCOV_EXCL_START */
|
||||
log_fatal(EUSER, "You cannot use -S, --start with the '%s' command\n", command);
|
||||
exit(EXIT_FAILURE);
|
||||
/* LCOV_EXCL_STOP */
|
||||
}
|
||||
if (blockcount != 0) {
|
||||
/* LCOV_EXCL_START */
|
||||
log_fatal(EUSER, "You cannot use -B, --count with the '%s' command\n", command);
|
||||
exit(EXIT_FAILURE);
|
||||
/* LCOV_EXCL_STOP */
|
||||
}
|
||||
}
|
||||
|
||||
switch (operation) {
|
||||
case OPERATION_CHECK :
|
||||
break;
|
||||
default :
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue