~ubuntu-core-dev/flashbench/debian

Viewing all changes in revision 58.

  • Committer: Arnd Bergmann
  • Date: 2011-03-27 20:06:57 UTC
  • Revision ID: git-v1:c32531a81a6206588ebb6b2413675c715dccb76e
flashbench: add --offset command line argument

This makes it easier to do the --open-au test case
on drives whose erase block is not a power of two.
Note that for those, you have to pass a blocksize
that is also not a power of two, but a fraction
of the erase size, e.g.

flashbench --open-au --random --open-au-nr=6 \
        --erasesize=$[3 * 1024 * 1024] \
        --blocksize=$[24 * 1024] \
        --offset=$[24 * 1024 * 1024] \
        /dev/sde

Signed-off-by: Arnd Bergmann <arnd@arndb.de>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: