4 # Concurrent I/O to same file to ensure no deadlocks
6 #-----------------------------------------------------------------------
7 # Copyright (c) 2006 Silicon Graphics, Inc. All Rights Reserved.
8 #-----------------------------------------------------------------------
14 echo "QA output created by $seq"
18 status=1 # failure is the default!
19 trap "_cleanup; exit \$status" 0 1 2 3 15
26 # get standard environment, filters and checks
30 # real QA test starts here
32 _supported_os Linux IRIX
36 echo "Buffered writer, buffered reader"
37 xfs_io -f -d -c 'pwrite -b 64k 0 512m' $testdir/io_test > /dev/null
38 xfs_io -f -c 'pwrite -b 64k 0 512m' $testdir/io_test >/dev/null &
39 xfs_io -c 'pread -b 64k 0 512m' $testdir/io_test > /dev/null
43 echo "Direct writer, buffered reader"
44 xfs_io -f -d -c 'pwrite -b 64k 0 512m' $testdir/io_test > /dev/null
45 xfs_io -f -d -c 'pwrite -b 64k 0 512m' $testdir/io_test >/dev/null &
46 xfs_io -c 'pread -b 64k 0 512m' $testdir/io_test > /dev/null
50 echo "Buffered writer, direct reader"
51 xfs_io -f -d -c 'pwrite -b 64k 0 512m' $testdir/io_test > /dev/null
52 xfs_io -f -c 'pwrite -b 64k 0 512m' $testdir/io_test >/dev/null &
53 xfs_io -d -c 'pread -b 64k 0 512m' $testdir/io_test > /dev/null
57 echo "Direct writer, direct reader"
58 xfs_io -f -d -c 'pwrite -b 64k 0 512m' $testdir/io_test > /dev/null
59 xfs_io -f -d -c 'pwrite -b 64k 0 512m' $testdir/io_test >/dev/null &
60 xfs_io -d -c 'pread -b 64k 0 512m' $testdir/io_test > /dev/null