Fixed a bug that was introduced in the previous revision: the script entered an infin...
authorbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Fri, 3 Jul 2009 19:54:09 +0000 (19:54 +0000)
committerbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Fri, 3 Jul 2009 19:54:09 +0000 (19:54 +0000)
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@932 d57e44dd-8a1f-0410-8b47-8ef2f437770f

scripts/blockdev-perftest

index cacbdfe..08e434e 100755 (executable)
@@ -171,6 +171,7 @@ log2_blocksize=${log2_max_blocksize}
 while [ ! $log2_blocksize -lt $log2_min_blocksize ]
 do
   if [ $log2_blocksize -gt $log2_io_size ]; then
+    log2_blocksize=$((log2_blocksize - 1))
     continue
   fi
   iosize=$(pow2 $log2_io_size)