From 7f1e23515080720a597b097b6a25a11e9f96d357 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 4 Nov 2009 12:52:17 +0000 Subject: [PATCH] Added command-line options -m and -M. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1316 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scripts/blockdev-perftest | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/blockdev-perftest b/scripts/blockdev-perftest index ce9a1a40c..f8bfa004e 100755 --- a/scripts/blockdev-perftest +++ b/scripts/blockdev-perftest @@ -33,6 +33,8 @@ usage() { echo " -f - force -- skip the test if there is still data present." echo " -i - number times each test is iterated." echo " -j - use fio instead of dd for benchmarking." + echo " -m - log2 of the smallest block size to use." + echo " -M - log2 of the largest block size to use." echo " -n - do not verify the data on before overwriting it." echo " -r - only perform the read test." echo " -s - logarithm base two of the I/O size." @@ -138,7 +140,7 @@ verify_device_data=true # Argument processing # ######################### -set -- $(/usr/bin/getopt "adfhi:jnrs:t:" "$@") +set -- $(/usr/bin/getopt "adfhi:jm:M:nrs:t:" "$@") while [ "$1" != "${1#-}" ] do case "$1" in @@ -147,6 +149,8 @@ do '-f') force="true"; shift;; '-i') iterations="$2"; shift; shift;; '-j') use_fio=true; shift;; + '-m') log2_min_blocksize="$2"; shift; shift;; + '-M') log2_max_blocksize="$2"; shift; shift;; '-n') verify_device_data="false"; shift;; '-r') read_test_only="true"; shift;; '-s') log2_io_size="$2"; shift; shift;;