fstests: use _require_symlinks on all necessary tests
[xfstests-dev.git] / tests / generic / 091
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2000-2004 Silicon Graphics, Inc.  All Rights Reserved.
4 #
5 # FS QA Test No. 091
6 #
7 # fsx exercising direct IO -- sub-block sizes and concurrent buffered IO
8 #
9 seq=`basename $0`
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
12
13 here=`pwd`
14 tmp=/tmp/$$
15 status=1        # failure is the default!
16 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
17
18 # get standard environment, filters and checks
19 . ./common/rc
20 . ./common/filter
21
22 # real QA test starts here
23 _supported_fs generic
24 _supported_os Linux
25 _require_test
26 _require_odirect
27
28 rm -f $seqres.full
29
30 psize=`$here/src/feature -s`
31 bsize=`_min_dio_alignment $TEST_DEV`
32
33 # fsx usage:
34
35 # -N numops: total # operations to do 
36 # -l flen: the upper bound on file size 
37 # -o oplen: the upper bound on operation size (64k default)
38 # -r readbdy: $psize would make reads page aligned (on i386)
39 # -t truncbdy: $psize would make truncates page aligned (on i386)
40 # -w writebdy: $psize would make writes page aligned (on i386)
41
42 # -Z: O_DIRECT (use -R, -W, -r and -w too)
43 # -R: mapped read operations DISabled
44 # -W: mapped write operations DISabled
45
46 #run_fsx -N 10000            -l 500000 -r $psize -t $psize -w $psize -Z -R -W
47  run_fsx -N 10000            -l 500000 -r PSIZE -t BSIZE -w BSIZE -Z -R -W
48  run_fsx -N 10000  -o 8192   -l 500000 -r PSIZE -t BSIZE -w BSIZE -Z -R -W
49 #run_fsx -N 10000  -o 16384  -l 500000 -r PSIZE -t PSIZE -w PSIZE -Z -R -W
50  run_fsx -N 10000  -o 32768  -l 500000 -r PSIZE -t BSIZE -w BSIZE -Z -R -W
51 #run_fsx -N 10000  -o 128000 -l 500000 -r PSIZE -t PSIZE -w PSIZE -Z -R -W
52  run_fsx -N 10000  -o 8192   -l 500000 -r PSIZE -t BSIZE -w BSIZE -Z -R -W
53 #run_fsx -N 10000  -o 16384  -l 500000 -r PSIZE -t PSIZE -w PSIZE -Z -R -W
54  run_fsx -N 10000  -o 32768  -l 500000 -r PSIZE -t BSIZE -w BSIZE -Z -R -W
55 #run_fsx -N 10000  -o 128000 -l 500000 -r PSIZE -t PSIZE -w PSIZE -Z -W
56  run_fsx -N 10000  -o 128000 -l 500000 -r PSIZE -t BSIZE -w BSIZE -Z -W
57
58 status=0
59 exit