projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e98a45
)
Disable random map automatically if a non-uniform random distribution is given
author
Jens Axboe
<axboe@kernel.dk>
Thu, 15 Nov 2012 22:21:23 +0000
(15:21 -0700)
committer
Jens Axboe
<axboe@kernel.dk>
Thu, 15 Nov 2012 22:21:23 +0000
(15:21 -0700)
Doesn't make sense to use a map, if the user specifically asked for
a non-uniform distribution.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
init.c
patch
|
blob
|
blame
|
history
diff --git
a/init.c
b/init.c
index a682423e9801be03a120b6d038f0b8fd6c762c1c..70217418ce5f75df75bc88a0cec2d7223a5d7183 100644
(file)
--- a/
init.c
+++ b/
init.c
@@
-596,6
+596,13
@@
static int fixup_options(struct thread_data *td)
td->o.compress_percentage = 0;
}
+ /*
+ * Using a non-uniform random distribution excludes usage of
+ * a random map
+ */
+ if (td->o.random_distribution != FIO_RAND_DIST_RANDOM)
+ td->o.norandommap = 1;
+
return ret;
}