4 # Test preallocated_rw_pattern_test modified from CXFSQA test preallocated_rw_pattern_test
6 # pat stands for pattern. First 8 bytes contains the 64-bit number 0,
7 # second is 1, ..., until last 8 bytes (1048568-1048575) contain 131071.
8 # patw preallocates the file and then writes the pattern, patr checks it
10 #-----------------------------------------------------------------------
11 # Copyright (c) 2006 Silicon Graphics, Inc. All Rights Reserved.
12 #-----------------------------------------------------------------------
18 echo "QA output created by $seq"
22 status=1 # failure is the default!
23 trap "_cleanup; exit \$status" 0 1 2 3 15
31 # get standard environment, filters and checks
35 # real QA test starts here
36 _supported_fs xfs udf nfs
41 _scratch_mkfs >/dev/null 2>&1
44 # Run preallo_rw_pattern on both test and scratch partitions
45 for TESTFILE in $testdir/rw_pattern.tmp $SCRATCH_MNT/rw_pattern.tmp
48 while (( count < 101 ))
50 src/preallo_rw_pattern_writer $TESTFILE
51 src/preallo_rw_pattern_reader $TESTFILE
52 if (test $? -ne 0) then
53 echo Read/Write Pattern Test FAILED.
59 done #done for count of 100
62 if (test $? -eq 0 ) then