6 TESTSUITELOG=${TESTSUITELOG:-$TMP/recovery-mds-scale}
7 LOG=${TESTSUITELOG}_$(basename $0)-$(hostname)
15 . $(dirname $0)/functions.sh
17 assert_env MOUNT END_RUN_FILE LOAD_PID_FILE
21 # recovery-*-scale scripts use this to signal the client loads to die
22 echo $$ >$LOAD_PID_FILE
24 TESTDIR=$MOUNT/d0.dd-$(hostname)
27 while [ ! -e "$END_RUN_FILE" ] && $CONTINUE; do
28 echoerr "$(date +'%F %H:%M:%S'): dd run starting"
31 dd bs=4k count=1000000 if=/dev/zero of=$TESTDIR/dd-file 1>$LOG &
36 echoerr "$(date +'%F %H:%M:%S'): dd succeeded"
39 echoerr "$(date +'%F %H:%M:%S'): dd run finished"
41 echoerr "$(date +'%F %H:%M:%S'): dd failed"
42 if [ -z "$ERRORS_OK" ]; then
43 echo $(hostname) >> $END_RUN_FILE
45 if [ $BREAK_ON_ERROR ]; then
52 echoerr "$(date +'%F %H:%M:%S'): dd run exiting"