4 # Test blockdev reads in parallel with filesystem reads/writes
6 #-----------------------------------------------------------------------
7 # Copyright (c) 2000-2004 Silicon Graphics, Inc. All Rights Reserved.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
23 # Contact information: Silicon Graphics, Inc., 1500 Crittenden Lane,
24 # Mountain View, CA 94043, USA, or: http://www.sgi.com
25 #-----------------------------------------------------------------------
31 echo "QA output created by $seq"
39 if [ -n "$pid" ]; then
40 kill -TERM $pid 2>/dev/null
49 umount $SCRATCH_MNT 2>/dev/null
52 trap "_cleanup; rm -f $tmp.*; exit \$status" 0 1 2 3 15
54 # get standard environment, filters and checks
58 # real QA test starts here
60 _supported_os IRIX Linux
67 umount $SCRATCH_DEV >/dev/null 2>&1
68 echo "*** MKFS ***" >>$seq.full
70 _scratch_mkfs >>$seq.full 2>&1 \
71 || _fail "mkfs failed"
72 _scratch_mount >>$seq.full 2>&1 \
73 || _fail "mount failed"
75 echo "*** test concurrent block/fs access"
77 cat $SCRATCH_DEV >/dev/null &
80 ltp/fsstress -d $SCRATCH_MNT -p 2 -n 2000 $FSSTRESS_AVOID >>$seq.full