projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
205a719
)
io_u: fix refill, should be random content
author
Jens Axboe
<axboe@fb.com>
Tue, 17 Mar 2015 21:57:13 +0000
(15:57 -0600)
committer
Jens Axboe
<axboe@fb.com>
Tue, 17 Mar 2015 21:57:13 +0000
(15:57 -0600)
Unless we asked for zeroed buffers, we fill them randomly.
Signed-off-by: Jens Axboe <axboe@fb.com>
io_u.c
patch
|
blob
|
blame
|
history
diff --git
a/io_u.c
b/io_u.c
index 6567e10a5be2c65c00d73f7415952b3e7d0f6065..975d2424b2c377c39b331865df7bf8e1c5060a4b 100644
(file)
--- a/
io_u.c
+++ b/
io_u.c
@@
-1895,8
+1895,10
@@
void fill_io_buffer(struct thread_data *td, void *buf, unsigned int min_write,
} while (left);
} else if (o->buffer_pattern_bytes)
fill_buffer_pattern(td, buf, max_bs);
- else
+ else
if (o->zero_buffers)
memset(buf, 0, max_bs);
+ else
+ fill_random_buf(get_buf_state(td), buf, max_bs);
}
/*