X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Frunregression-mds.sh;h=7167d2defc8152a0d31f2a7895122736c6c12e0e;hb=e52a140eb7f65a63f07dbb7e2aaff7f9e22974f2;hp=4a60a543b226b8b42f1f809ab0eb2112b6748396;hpb=aaf1d83ac7a5675f73faaf6bec4c9cfd9d3f7cbc;p=fs%2Flustre-release.git diff --git a/lustre/tests/runregression-mds.sh b/lustre/tests/runregression-mds.sh index 4a60a54..7167d2d 100755 --- a/lustre/tests/runregression-mds.sh +++ b/lustre/tests/runregression-mds.sh @@ -23,17 +23,18 @@ cleanup() { [ -z "$*" ] && fail "usage: $0 [--reformat] .xml" 1 -OSCMT="`mount | awk '/ lustre_lite / { print $3 }' | tail -1`" +OSCMT="`mount | awk '/ lustre_lite / { print $3 }' | tail -n 1`" if [ -z "$OSCMT" ]; then $LCONF $@ || exit 1 trap cleanup 0 - OSCMT="`mount | awk '/ lustre_lite / { print $3 }' | tail -1`" + OSCMT="`mount | awk '/ lustre_lite / { print $3 }' | tail -n 1`" [ -z "$OSCMT" ] && fail "no lustre filesystem mounted" 1 fi +V="-10" while [ "$1" ]; do case $1 in - -v|--verbose) V=-v;; + -v|--verbose) V="1";; --reformat) : ;; *) OPTS="$OPTS $1" ;; esac @@ -41,22 +42,23 @@ while [ "$1" ]; do done OSCTMP=`echo $OSCMT | tr "/" "."` -USED=`df | awk "/$OSCTMP/ { print \\$3 }" | tail -1` +USED=`df | awk "/$OSCTMP/ { print \\$3 }" | tail -n 1` USED=`expr $USED + 16` # Some space for the status file THREADS=1 -while [ ! -f $ENDRUN ]; do +while [ $THREADS -lt 196 ]; do echo "starting $THREADS threads at `date`" - echo 0 > /proc/sys/portals/debug - $SRCDIR/createdestroy /mnt/lustre/file-$$ $COUNT -10 $THREADS - THREADS=`expr $THREADS + 1` + [ $V -gt 0 ] || echo 0 > /proc/sys/portals/debug + $SRCDIR/createdestroy /mnt/lustre/file-$$ $COUNT $V $THREADS + $SRCDIR/openclose /mnt/lustre/file-$$ $COUNT $THREADS + THREADS=`expr $THREADS + 5` $LCONF --cleanup $OPTS || fail 10 $LCONF $OPTS || fail 11 done rm -f $ENDRUN -NOWUSED=`df | awk "/$OSCTMP/ { print \\$3 }" | tail -1` +NOWUSED=`df | awk "/$OSCTMP/ { print \\$3 }" | tail -n 1` if [ $NOWUSED -gt $USED ]; then echo "Space not all freed: now ${NOWUSED}kB, was ${USED}kB." 1>&2 echo "This is normal on BA OSTs, because of subdirectories." 1>&2