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 _begin_fstest metadata rw udf auto quick stress
14 if [ -n "$pid" ]; then
15 kill -TERM $pid 2>/dev/null
21 # Override the default cleanup function.
25 _scratch_unmount 2>/dev/null
28 _register_cleanup "_cleanup; rm -f $tmp.*"
30 # Import common functions.
33 # real QA test starts here
37 _require_local_device $SCRATCH_DEV
41 _scratch_unmount >/dev/null 2>&1
42 echo "*** MKFS ***" >>$seqres.full
43 echo "" >>$seqres.full
44 _scratch_mkfs >>$seqres.full 2>&1 \
45 || _fail "mkfs failed"
48 echo "*** test concurrent block/fs access"
50 cat $SCRATCH_DEV >/dev/null &
53 FSSTRESS_ARGS=`_scale_fsstress_args -d $SCRATCH_MNT -p 2 -n 2000 $FSSTRESS_AVOID`
54 echo "run fsstress with args: $FSSTRESS_ARGS" >>$seqres.full
55 $FSSTRESS_PROG $FSSTRESS_ARGS >>$seqres.full