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 _scratch_mkfs_xfs >/dev/null 2>&1
42 # pipe error into /dev/null, in case not mounted (after _require_scratch)
43 umount $SCRATCH_MNT 2>/dev/null
54 # create file with async I/O
55 xfs_io -f -c 'pwrite -b 4k -S 0x12 0 4k' async_file > /dev/null
57 # create file with sync I/O
58 xfs_io -f -s -c 'pwrite -b 4k -S 0x34 0 4k' sync_file > /dev/null
60 # create file with sync I/O
61 xfs_io -f -d -c 'pwrite -b 4k -S 0x56 0 4k' direct_file > /dev/null
65 # check file size and contents
70 rm -f async_file sync_file direct_file