aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2011-03-24 13:19:38 +0100
committerArnd Bergmann <arnd@arndb.de>2011-03-24 13:19:38 +0100
commit969161a0bf57f36ee65452f8e2c2369b98957ba4 (patch)
tree0afe4c0ab6e1834612b8a4eab4ecdd64d2ddde1d
parent5c8d224bb4709c6fa65731901cf9956da544cc1f (diff)
flashbench: spread out --open-au test some more
Using every other erase block is bad when you have guessed the erase block size incorrectly. Better skip three for each one we test, to have a better chance of actually hitting separate erase blocks. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-rw-r--r--flashbench.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/flashbench.c b/flashbench.c
index f545ea6..cc5e567 100644
--- a/flashbench.c
+++ b/flashbench.c
@@ -492,7 +492,7 @@ static int try_open_au(struct device *dev, unsigned int erasesize,
{ (random ? O_OFF_RAND : O_OFF_LIN),
erasesize / blocksize, -1},
{O_REDUCE, .aggregate = A_AVERAGE},
- {O_OFF_RAND, count, 2 * erasesize}, {O_WRITE_RAND},
+ {O_OFF_RAND, count, 4 * erasesize}, {O_WRITE_RAND},
{O_NEWLINE},
{O_END},
{O_END},