From e1c6f2e1ed79734328949dc91aa7ce84281e8112 Mon Sep 17 00:00:00 2001 From: Erwan Velu Date: Wed, 10 Jul 2013 16:50:20 +0200 Subject: [PATCH] genfio: Claryfing default options Let's show the help if no disks are given as parameter. This patch does also clarify the default values of each parameter. That clearly helps understanding what's the default settings if no option used. --- tools/genfio | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/tools/genfio b/tools/genfio index 306d97e5..195a8613 100755 --- a/tools/genfio +++ b/tools/genfio @@ -37,20 +37,26 @@ show_help() { cat << EOF -h : Show this help & exit -c : Enable cached-based IOs - by default, fio is run in direct mode + Disabled by default -a : Run sequential test then parallel one + Disabled by default -s : Run sequential test (default value) one test after another then one disk after another + Disabled by default -p : Run parallel test one test after anoter but all disks at the same time + Enabled by default -d disk1[,disk2,disk3,..] : Run the tests on the selected disks Separated each disk with a comma Disk name shall be "sdxx", /dev/ shall NOT be used here --r seconds : Time in seconds per benchmark (300 as default) +-r seconds : Time in seconds per benchmark 0 means till the end of the device + Default is 300 seconds -b blocksize[,blocksize1, ...] : The blocksizes to test under fio format (4k, 1m, ...) Separated each blocksize with a comma + Default is 4k -m mode1,[mode2,mode3, ...] : Define the fio IO profile to use like read, write, randread, randwrite + Default is "read,write,randread,randwrite" Example: @@ -229,7 +235,8 @@ esac if [ -z "$DISKS" ]; then echo "Missing DISKS !" - echo "Exiting !" + echo "Please read the help !" + show_help exit 1 fi -- 2.25.1