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
42 _require_local_device $SCRATCH_DEV
47 _scratch_unmount >/dev/null 2>&1
48 echo "*** MKFS ***" >>$seqres.full
49 echo "" >>$seqres.full
50 _scratch_mkfs >>$seqres.full 2>&1 \
51 || _fail "mkfs failed"
54 echo "*** test concurrent block/fs access"
56 cat $SCRATCH_DEV >/dev/null &
59 FSSTRESS_ARGS=`_scale_fsstress_args -d $SCRATCH_MNT -p 2 -n 2000 $FSSTRESS_AVOID`
60 echo "run fsstress with args: $FSSTRESS_ARGS" >>$seqres.full
61 $FSSTRESS_PROG $FSSTRESS_ARGS >>$seqres.full