mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user