Clarify about the space holder for Windows

In Windows we keep 256 MB to avoid warnings.
This commit is contained in:
Andrea Mazzoleni 2016-08-31 22:26:17 +02:00
parent 13aaa949a2
commit 85df40f40d
5 changed files with 18 additions and 24 deletions

View file

@ -369,6 +369,7 @@ static int parity_handle_fill(struct snapraid_split_handle* split, data_off_t si
return -1;
}
/* note that in Windows ftruncate is really allocating space */
if (ftruncate(spaceholder_f, spaceholder_size) != 0) {
log_fatal("WARNING Failed to resize the space holder file '%s' to %llu bytes.\n", spaceholder_path, spaceholder_size);
log_fatal("Assuming that no more space is available.\n");