projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Honor random/zero/compressible settings for filling an initial file
[fio.git]
/
filesetup.c
diff --git
a/filesetup.c
b/filesetup.c
index 9f186fb46436a4d46998709a787050be24905316..6427f3e4e2317901159f7061ce9a74538d288aaa 100644
(file)
--- a/
filesetup.c
+++ b/
filesetup.c
@@
-127,7
+127,6
@@
static int extend_file(struct thread_data *td, struct fio_file *f)
}
b = malloc(td->o.max_bs[DDIR_WRITE]);
- memset(b, 0, td->o.max_bs[DDIR_WRITE]);
left = f->real_file_size;
while (left && !td->terminate) {
@@
-135,6
+134,8
@@
static int extend_file(struct thread_data *td, struct fio_file *f)
if (bs > left)
bs = left;
+ fill_io_buffer(td, b, bs, bs);
+
r = write(f->fd, b, bs);
if (r > 0) {