[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 82f321b..af16783 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);