Persist reallocated mapping before parity resize in force-realloc sync

This commit is contained in:
Andrea Mazzoleni 2026-08-28 18:08:29 +02:00
parent f4a5b58c52
commit 408d4be1b5
5 changed files with 81 additions and 20 deletions

View file

@ -250,8 +250,13 @@ void state_locate_mark_tail_blocks_for_resync(struct snapraid_state* state, uint
/*
* Explicit force-realloc overrides an in-place REBUILD request.
* REP makes the block eligible for the normal reallocation path.
*
* This transition changes persistent block-state semantics. Mark the
* state dirty explicitly rather than relying on the following scan to
* incidentally do so.
*/
block_state_set(block, BLOCK_STATE_REP);
state->need_write = 1;
}
}
}