several fixes, should now work properly. dont go too crazy with big

files cos the scratch device may be of limited size.
This commit is contained in:
fsgqa
2002-09-04 11:14:37 +00:00
parent 4c0e31d14a
commit 4015cd25b0
2 changed files with 20 additions and 8 deletions
+11 -8
View File
@@ -1,6 +1,6 @@
#! /bin/sh #! /bin/sh
# XFS QA Test No. 069 # XFS QA Test No. 069
# $Id: 069,v 1.1 2002/09/04 07:44:40 fsgqa Exp $ # $Id: 069,v 1.2 2002/09/04 11:14:37 fsgqa Exp $
# #
# Test out writes with O_APPEND flag sets. # Test out writes with O_APPEND flag sets.
# #
@@ -68,24 +68,27 @@ mount -t xfs $SCRATCH_DEV $SCRATCH_MNT >/dev/null \
cd $SCRATCH_MNT cd $SCRATCH_MNT
sizes="1 20 300 40000 3000000 200000000 12345" sizes="1 20 300 40000 3000000 12345"
for size in $sizes ; do for size in $sizes ; do
$here/src/append_writer $size & $here/src/append_writer $size &
echo $! $size >> pids echo $! $size >> pids
done done
cd $here
wait wait
ls -lh >> $seq.full ls -lh >> $seq.full
echo "*** PIDs file" echo "*** PIDs file" >> $seq.full
cat pids >> $seq.full cat $SCRATCH_MNT/pids >> $seq.full
cat pids | while read pid size cat $SCRATCH_MNT/pids | while read pid size
do do
echo "*** checking file with $size integers $pid" echo "*** checking file with $size integers"
echo checking pid=$pid size=$size >> $seq.full echo checking pid=$pid size=$size >> $seq.full
$here/src/append_reader testfile.$pid $here/src/append_reader $SCRATCH_MNT/testfile.$pid
status=$? status=$?
[ $status -ne 0 ] && echo "corrupt O_APPEND to testfile.$pid!" [ $status -ne 0 ] && \
echo "maybe corrupt O_APPEND to $SCRATCH_MOUNT/testfile.$pid!"
echo status: $status >> $seq.full echo status: $status >> $seq.full
done done
+9
View File
@@ -0,0 +1,9 @@
QA output created by 069
*** mkfs
*** mount FS
*** checking file with 1 integers
*** checking file with 20 integers
*** checking file with 300 integers
*** checking file with 40000 integers
*** checking file with 3000000 integers
*** checking file with 12345 integers