From e4f26f0245491bcb4b10606e50f075c586687f16 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 12 Jun 2006 15:21:44 +0200 Subject: [PATCH] [PATCH] Always create full file, don't extend --- fio.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/fio.c b/fio.c index 82f321bf..af167832 100644 --- a/fio.c +++ b/fio.c @@ -968,9 +968,6 @@ static int create_file(struct thread_data *td, unsigned long long size, if (!extend) { oflags = O_CREAT | O_TRUNC; fprintf(f_out, "%s: Laying out IO file (%LuMiB)\n", td->name, size >> 20); - } else { - oflags = O_APPEND; - fprintf(f_out, "%s: Extending IO file (%Lu -> %LuMiB)\n", td->name, (td->file_size - size) >> 20, td->file_size >> 20); } td->fd = open(td->file_name, O_WRONLY | oflags, 0644); -- 2.25.1