mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 10:51:54 -04:00
Fixes the outofparity check, now using the last block of the file.
This commit is contained in:
parent
bbe151792c
commit
1adbdfbc73
1 changed files with 1 additions and 1 deletions
2
parity.c
2
parity.c
|
|
@ -74,7 +74,7 @@ void parity_overflow(struct snapraid_state* state, data_off_t size)
|
|||
struct snapraid_file* file = j->data;
|
||||
|
||||
if (file->blockmax > 0) {
|
||||
if (file->blockvec[0].parity_pos >= blockalloc) {
|
||||
if (file->blockvec[file->blockmax - 1].parity_pos >= blockalloc) {
|
||||
fprintf(stdlog, "outofparity:%s:%s\n", disk->name, file->sub);
|
||||
fflush(stdlog);
|
||||
if (first) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue