summaryrefslogtreecommitdiff
path: root/lib/rand.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2014-12-03 19:55:33 -0700
committerMohamad Ayyash <mkayyash@google.com>2015-03-06 17:58:05 -0800
commitfd1583f077bb4f77a462ca1ac7274f443f9372ce (patch)
treee882d315d6b190a76f500fc7e034506b821f1bfa /lib/rand.h
parentd18c04151dc0ab322067e604596cbd6d66845c27 (diff)
downloadfio-fd1583f077bb4f77a462ca1ac7274f443f9372ce.tar.gz
Use specified buffer_pattern (if given) for all io_u fills
For compression, we use a fixed '0' pattern. But if the user specified a pattern to use in the job file, then we should use that instead. It could slightly skew the compression ratio for long patterns, but that is to be expected. Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'lib/rand.h')
-rw-r--r--lib/rand.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rand.h b/lib/rand.h
index 8c35ab1f..803bea48 100644
--- a/lib/rand.h
+++ b/lib/rand.h
@@ -30,6 +30,7 @@ extern void init_rand(struct frand_state *);
extern void init_rand_seed(struct frand_state *, unsigned int seed);
extern void __fill_random_buf(void *buf, unsigned int len, unsigned long seed);
extern unsigned long fill_random_buf(struct frand_state *, void *buf, unsigned int len);
-extern unsigned long fill_random_buf_percentage(struct frand_state *, void *buf, unsigned int percentage, unsigned int segment, unsigned int len);
+extern unsigned long fill_random_buf_percentage(struct frand_state *, void *, unsigned int, unsigned int, unsigned int, char *, unsigned int);
+extern void fill_pattern(void *p, unsigned int len, char *pattern, unsigned int pattern_bytes);
#endif