2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2000-2004 Silicon Graphics, Inc. All Rights Reserved.
7 # Test blockdev reads in parallel with filesystem reads/writes
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
19 if [ -n "$pid" ]; then
20 kill -TERM $pid 2>/dev/null
29 _scratch_unmount 2>/dev/null
32 trap "_cleanup; rm -f $tmp.*; exit \$status" 0 1 2 3 15
34 # get standard environment, filters and checks
38 # real QA test starts here
43 _require_local_device $SCRATCH_DEV
48 _scratch_unmount >/dev/null 2>&1
49 echo "*** MKFS ***" >>$seqres.full
50 echo "" >>$seqres.full
51 _scratch_mkfs >>$seqres.full 2>&1 \
52 || _fail "mkfs failed"
55 echo "*** test concurrent block/fs access"
57 cat $SCRATCH_DEV >/dev/null &
60 FSSTRESS_ARGS=`_scale_fsstress_args -d $SCRATCH_MNT -p 2 -n 2000 $FSSTRESS_AVOID`
61 echo "run fsstress with args: $FSSTRESS_ARGS" >>$seqres.full
62 $FSSTRESS_PROG $FSSTRESS_ARGS >>$seqres.full