mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 10:51:54 -04:00
Refreshes free space info also before first content write.
This commit is contained in:
parent
d0f9ba3180
commit
f200a1f6b8
2 changed files with 4 additions and 1 deletions
|
|
@ -934,6 +934,9 @@ int main(int argc, char* argv[])
|
|||
|
||||
state_scan(&state, 0);
|
||||
|
||||
/* refresh the size info before the content write */
|
||||
state_refresh(state);
|
||||
|
||||
memory();
|
||||
|
||||
/* intercept Ctrl+C */
|
||||
|
|
|
|||
|
|
@ -1110,7 +1110,7 @@ int state_sync(struct snapraid_state* state, block_off_t blockstart, block_off_t
|
|||
}
|
||||
}
|
||||
|
||||
/* after opening and resizing parity files, refresh the free info */
|
||||
/* after resizing parity files, refresh again the free info */
|
||||
state_refresh(state);
|
||||
|
||||
unrecoverable_error = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue