5 ENDRUN=endrun-`hostname`
9 [ $2 ] && RC=$2 || RC=1
13 export PATH=/sbin:/usr/sbin:$SRCDIR:$PATH
17 $LCONF --cleanup $OPTS
20 [ "$COUNT" ] || COUNT=1000
22 [ "$LCONF" ] || LCONF=$SRCDIR/../utils/lconf
24 [ -z "$*" ] && fail "usage: $0 [--reformat] <conf>.xml" 1
26 OSCMT="`mount | awk '/ lustre_lite / { print $3 }' | tail -n 1`"
27 if [ -z "$OSCMT" ]; then
30 OSCMT="`mount | awk '/ lustre_lite / { print $3 }' | tail -n 1`"
31 [ -z "$OSCMT" ] && fail "no lustre filesystem mounted" 1
44 OSCTMP=`echo $OSCMT | tr "/" "."`
45 USED=`df | awk "/$OSCTMP/ { print \\$3 }" | tail -n 1`
46 USED=`expr $USED + 16` # Some space for the status file
49 while [ $THREADS -lt 196 ]; do
50 echo "starting $THREADS threads at `date`"
51 [ $V -gt 0 ] || echo 0 > /proc/sys/portals/debug
52 $SRCDIR/createdestroy /mnt/lustre/file-$$ $COUNT $V $THREADS
53 $SRCDIR/openclose /mnt/lustre/file-$$ $COUNT $THREADS
54 THREADS=`expr $THREADS + 5`
55 $LCONF --cleanup $OPTS || fail 10
56 $LCONF $OPTS || fail 11
61 NOWUSED=`df | awk "/$OSCTMP/ { print \\$3 }" | tail -n 1`
62 if [ $NOWUSED -gt $USED ]; then
63 echo "Space not all freed: now ${NOWUSED}kB, was ${USED}kB." 1>&2
64 echo "This is normal on BA OSTs, because of subdirectories." 1>&2