From: Erwan Velu Date: Fri, 12 Jul 2013 15:13:59 +0000 (+0200) Subject: genfio: Enforce time_based if runtime > 0 X-Git-Tag: fio-2.1.2~49 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=d1415111eebe7a95d8de1af1ec61e80f9d534552;hp=7d1ca6cfa8c1440ddc095faf7f4e6c8716629838 genfio: Enforce time_based if runtime > 0 If the device is short and the bandwidth pretty high, we can exit _before_ runtime is achieved. To avoid this phenomena, let's use time_based directive that will ensure that no run will be shorten. --- diff --git a/tools/genfio b/tools/genfio index 4c1e710d..6d3220da 100755 --- a/tools/genfio +++ b/tools/genfio @@ -101,6 +101,7 @@ EOF if [ "$RUNTIME" != "0" ]; then cat >>$TEMPLATE << EOF runtime=$RUNTIME +time_based EOF fi