4 # Test out writes with O_APPEND flag sets.
6 #-----------------------------------------------------------------------
7 # Copyright (c) 2002 Silicon Graphics, Inc. All Rights Reserved.
8 #-----------------------------------------------------------------------
14 echo "QA output created by $seq"
18 status=0 # success is the default!
19 trap "rm -rf $tmp.*; exit \$status" 0 1 2 3 15
21 # get standard environment, filters and checks
25 # real QA test starts here
26 _supported_fs xfs udf nfs
27 _supported_os IRIX Linux
32 umount $SCRATCH_DEV >/dev/null 2>&1
35 _scratch_mkfs >/dev/null || _fail "mkfs failed"
38 _scratch_mount >/dev/null || _fail "mount failed"
42 sizes="1 20 300 40000 3000000 12345"
43 for size in $sizes ; do
44 $here/src/append_writer $size &
51 ls -lh $SCRATCH_MNT >> $seq.full
52 echo "*** PIDs file" >> $seq.full
53 cat $SCRATCH_MNT/pids >> $seq.full
55 cat $SCRATCH_MNT/pids | while read pid size
57 echo "*** checking file with $size integers"
58 echo checking pid=$pid size=$size >> $seq.full
59 $here/src/append_reader $SCRATCH_MNT/testfile.$pid
61 [ $status -ne 0 ] && \
62 echo "maybe corrupt O_APPEND to $SCRATCH_MOUNT/testfile.$pid!"
63 echo status: $status >> $seq.full