projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a71e13b
)
[PATCH] Always create full file, don't extend
author
Jens Axboe
<axboe@suse.de>
Mon, 12 Jun 2006 13:21:44 +0000
(15:21 +0200)
committer
Jens Axboe
<axboe@suse.de>
Mon, 12 Jun 2006 13:21:44 +0000
(15:21 +0200)
fio.c
patch
|
blob
|
blame
|
history
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);