mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-29 11:26:48 -05:00
Some more regression tests for move/copy/invalidate
This commit is contained in:
parent
4209f0cec3
commit
a66ccb5cc1
2 changed files with 29 additions and 2 deletions
|
|
@ -1133,8 +1133,12 @@ int main(int argc, char* argv[])
|
|||
ret = state_sync(&state, blockstart, blockcount);
|
||||
|
||||
/* save the new state if required */
|
||||
if (!opt.kill_after_sync && (state.need_write || state.opt.force_content_write))
|
||||
state_write(&state);
|
||||
if (!opt.kill_after_sync) {
|
||||
if ((state.need_write || state.opt.force_content_write))
|
||||
state_write(&state);
|
||||
} else {
|
||||
log_fatal("WARNING! Skipped state write for --test-kill-after-sync option.\n");
|
||||
}
|
||||
|
||||
/* abort if required */
|
||||
if (ret != 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue