X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fmdsrate-create-small.sh;h=59b33a637995535383f273bc070791fde2d67409;hb=6fcbb85b3a9a618e8dd7ee14c9fc7da7d23dab5d;hp=c7ca1c73b53574cd6ee7c2d019579c58121d5110;hpb=02b8c957baa3b8742bbcde895a22ad498c6fbe25;p=fs%2Flustre-release.git diff --git a/lustre/tests/mdsrate-create-small.sh b/lustre/tests/mdsrate-create-small.sh index c7ca1c7..59b33a6 100644 --- a/lustre/tests/mdsrate-create-small.sh +++ b/lustre/tests/mdsrate-create-small.sh @@ -1,4 +1,4 @@ -#!/bin/bash + #!/bin/bash # # This test was used in a set of CMD3 tests (cmd3-3 test). @@ -45,7 +45,7 @@ chmod 0777 $BASEDIR $LFS setstripe $BASEDIR -i 0 -c 1 get_stripe $BASEDIR -IFree=$(inodes_available) +IFree=$(mdsrate_inodes_available) if [ $IFree -lt $NUM_FILES ]; then NUM_FILES=$IFree fi @@ -80,7 +80,7 @@ else log "===== $0 ### 1 NODE UNLINK ###" if [ -f "$LOG" ]; then - CREATED=$(awk '/total:/ { print $7 }' $LOG) + CREATED=$(sed -n '/^Rate:/s/^.* \([0-9]*\) creates .*/\1/p' $LOG) [ $CREATED -gt 0 ] && NUM_FILES=$CREATED fi @@ -98,7 +98,7 @@ else fi fi -IFree=$(inodes_available) +IFree=$(mdsrate_inodes_available) if [ $IFree -lt $NUM_FILES ]; then NUM_FILES=$IFree fi @@ -130,7 +130,7 @@ else log "===== $0 ### $NUM_CLIENTS NODES UNLINK with $THREADS_PER_CLIENT threads per client ###" if [ -f "$LOG" ]; then - CREATED=$(awk '/total:/ { print $7 }' $LOG) + CREATED=$(sed -n '/^Rate:/s/^.* \([0-9]*\) creates .*/\1/p' $LOG) [ $CREATED -gt 0 ] && NUM_FILES=$CREATED fi