From 624de254ced11dc3100de65a75b5bed2bfefae47 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 28 Feb 2011 22:13:36 +1100 Subject: [PATCH] Revert "Fallocate space in advance on decompression." This reverts commit cf03cb0c04772f9b128dec948dc9643be146c0b6. Fallocating for some reason fails to write the end of the file! Revert change pending further investigation. --- main.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/main.c b/main.c index 7a0a635..f4240eb 100644 --- a/main.c +++ b/main.c @@ -350,9 +350,6 @@ static void decompress_file(void) 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); if (unlikely(fd_hist == -1)) fatal("Failed to open history file %s\n", control.outfile);