From: Jens Axboe Date: Mon, 12 Jun 2006 13:21:44 +0000 (+0200) Subject: [PATCH] Always create full file, don't extend X-Git-Tag: fio-1.5~3 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=e4f26f0245491bcb4b10606e50f075c586687f16;p=fio.git [PATCH] Always create full file, don't extend --- 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);