[PATCH] Always create full file, don't extend
authorJens Axboe <axboe@suse.de>
Mon, 12 Jun 2006 13:21:44 +0000 (15:21 +0200)
committerJens Axboe <axboe@suse.de>
Mon, 12 Jun 2006 13:21:44 +0000 (15:21 +0200)
fio.c

diff --git a/fio.c b/fio.c
index 82f321bfee82ccb9ff46f48f7bd0aeed07f217d2..af167832ed43aefcc76f01f88a143fc51e7658f7 100644 (file)
--- 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);