Revert "Fallocate space in advance on decompression."

This reverts commit cf03cb0c04.

Fallocating for some reason fails to write the end of the file! Revert change pending further investigation.
This commit is contained in:
Con Kolivas 2011-02-28 22:13:36 +11:00
parent 9e548448d6
commit 624de254ce

3
main.c
View file

@ -350,9 +350,6 @@ static void decompress_file(void)
failure("Inadequate free space to decompress file, use -f to override.\n"); failure("Inadequate free space to decompress file, use -f to override.\n");
} }
if (unlikely(posix_fallocate(fd_out, 0, expected_size)))
failure("Failed to fallocate fd_out in decompress_file\n");
fd_hist = open(control.outfile, O_RDONLY); fd_hist = open(control.outfile, O_RDONLY);
if (unlikely(fd_hist == -1)) if (unlikely(fd_hist == -1))
fatal("Failed to open history file %s\n", control.outfile); fatal("Failed to open history file %s\n", control.outfile);