2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2017 Oracle, Inc. All Rights Reserved.
7 # Run an all-writes fsstress run with multiple threads to shake out
8 # bugs in the write path.
11 seqres=$RESULT_DIR/$seq
12 echo "QA output created by $seq"
16 status=1 # failure is the default!
17 trap "_cleanup; exit \$status" 0 1 2 3 15
23 $KILLALL_PROG -9 fsstress > /dev/null 2>&1
26 # get standard environment, filters and checks
29 # Modify as appropriate.
33 _require_command "$KILLALL_PROG" "killall"
37 echo "Silence is golden."
39 _scratch_mkfs > $seqres.full 2>&1
40 _scratch_mount >> $seqres.full 2>&1
42 nr_cpus=$((LOAD_FACTOR * 4))
43 nr_ops=$((25000 * nr_cpus * TIME_FACTOR))
44 $FSSTRESS_PROG $FSSTRESS_AVOID -w -d $SCRATCH_MNT -n $nr_ops -p $nr_cpus >> $seqres.full