#
# Buffered random write performance test.
#
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
+. ./common/preamble
+_begin_fstest auto
-here=`pwd`
-tmp=/tmp/$$
fio_config=$tmp.fio
fio_results=$tmp.json
-status=1 # failure is the default!
-trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
. ./common/filter
. ./common/perf
_require_block_device $SCRATCH_DEV
_require_fio_results
-rm -f $seqres.full
-
_size=$((16 * $LOAD_FACTOR))
cat >$fio_config <<EOF
[t1]