Unified the two --force-realloc logics

This commit is contained in:
Andrea Mazzoleni 2026-02-09 11:46:38 +01:00
parent 966583e6f0
commit f89d5fa4f3
3 changed files with 25 additions and 18 deletions

View file

@ -1820,7 +1820,7 @@ int snapraid_main(int argc, char* argv[])
/* mark the files that have to be reallocated */
/* it will happen in inside scan_file_keep() called in state_scan() */
if (state.opt.force_realloc && opt.parity_tail != 0)
if (state.opt.force_realloc)
state_locate_mark_tail_blocks_for_resync(&state, opt.parity_tail);
state_scan(&state);