From: narasimd Date: Wed, 11 Dec 2002 06:49:07 +0000 (+0000) Subject: Updating b_narasimd branch. X-Git-Tag: v1_7_100~1^38~24 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=efbf96fd5bb0621046e9b0fe745fec4ea1529dbe;p=fs%2Flustre-release.git Updating b_narasimd branch. --- diff --git a/lustre/tests/runiozone b/lustre/tests/runiozone index aa2a2c2..cf198ad 100755 --- a/lustre/tests/runiozone +++ b/lustre/tests/runiozone @@ -1,16 +1,17 @@ #!/bin/sh -SIZE=5g -COUNT=0 +[ -z "$SIZE" ] && SIZE=5g +[ -z "$LOOPS" ] && LOOPS=9999 [ -z "$VERIFY" ] && VERIFY="-+d" [ -z "$ODIR" ] && ODIR="-I" [ -z "$REC" ] && REC=64 -FILE=/mnt/lustre/test.$$ +[ -z "$FILE" ] && FILE=/mnt/lustre/test.$$ [ $1 ] && SIZE=$1 +COUNT=0 rm -f endiozone echo 0 > /proc/sys/portals/debug while date; do echo "Test #$COUNT" iozone $VERIFY $ODIR -r $REC -i 0 -i 1 -f $FILE -s $SIZE 2>&1 || exit $? COUNT=`expr $COUNT + 1` - [ -f endiozone ] && rm endiozone && exit 0 + [ -f endiozone -o $COUNT -ge $LOOPS ] && rm -f endiozone && exit 0 done | tee /tmp/iozone.log