Refreshes free space info also before first content write.

This commit is contained in:
Andrea Mazzoleni 2014-12-07 00:06:53 +01:00
parent d0f9ba3180
commit f200a1f6b8
2 changed files with 4 additions and 1 deletions

View file

@ -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 */

View file

@ -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;