Fixed a bug that was introduced in the previous revision: the script entered an infinite loop when the size specified through -s was smaller than 64MB.

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@932 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2009-07-03 19:54:09 +00:00
parent 2de35d6ad4
commit ed81fdc037

View File

@@ -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)