commit | e4f26f0245491bcb4b10606e50f075c586687f16 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@suse.de> | Mon Jun 12 15:21:44 2006 +0200 |
committer | Jens Axboe <axboe@suse.de> | Mon Jun 12 15:21:44 2006 +0200 |
tree | 7e6f3583d7cd7f99dfe662f717f1e2446fcb1fdf | |
parent | a71e13bb81c7943d9524e26cbad9534519ca6e2e [diff] |
[PATCH] Always create full file, don't extend
diff --git a/fio.c b/fio.c index 82f321b..af16783 100644 --- a/fio.c +++ b/fio.c
@@ -968,9 +968,6 @@ 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);