From: robert.read Date: Thu, 5 Jun 2008 23:03:15 +0000 (+0000) Subject: Branch b1_6 X-Git-Tag: GIT_EPOCH_B_RELEASE_1_6_7~2^3~578 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=f8c02e2623219d125277b3f464594b4f87619bd9;p=fs%2Flustre-release.git Branch b1_6 b=13537 i=grev The old test was using the used space rather than free space. This fixes that and also cuts the amount by half, so we don't completely fill up the fs. It also caps the size at 1GB, like the previous version. --- diff --git a/lustre/tests/replay-ost-single.sh b/lustre/tests/replay-ost-single.sh index 260ec07..97e2eca 100755 --- a/lustre/tests/replay-ost-single.sh +++ b/lustre/tests/replay-ost-single.sh @@ -97,10 +97,11 @@ run_test 4 "Fail OST during read, with verification" test_5() { [ -z "`which iozone 2> /dev/null`" ] && log "iozone missing" && return - FREE=`df -P -h $DIR | tail -n 1 | awk '{ print $3 }'` - case $FREE in - *T|*G) FREE=1G;; - esac + FREE=`df -P $DIR | tail -n 1 | awk '{ print $4/2 }'` + GB=1048576 # 1048576KB == 1GB + if (( FREE > GB )); then + FREE=$GB + fi IOZONE_OPTS="-i 0 -i 1 -i 2 -+d -r 4 -s $FREE" iozone $IOZONE_OPTS -f $DIR/$tfile & PID=$!