4 # fsx tests modified from CXFSQA tests
9 #-----------------------------------------------------------------------
10 # Copyright (c) 2006 Silicon Graphics, Inc. All Rights Reserved.
11 #-----------------------------------------------------------------------
17 echo "QA output created by $seq"
21 status=1 # failure is the default!
22 trap "_cleanup; exit \$status" 0 1 2 3 15
29 # get standard environment, filters and checks
34 FSX_ARGS="-q -l $FSX_FILE_SIZE -o 65536 -S 191110531 -N 100000"
38 echo "=== FSX Light Mode, No Memory Mapping ==="
39 dd if=/dev/zero of=$testdir/fsx_lite_nommap bs=${FSX_FILE_SIZE} count=1 > /dev/null 2>&1
40 if ! ltp/fsx $FSX_ARGS -L -R -W $testdir/fsx_lite_nommap > $tmp.output 2>&1
42 echo "ltp/fsx $FSX_ARGS -L -R -W $testdir/fsx_lite_nommap"
52 echo "=== FSX Light Mode, Memory Mapping ==="
53 dd if=/dev/zero of=$testdir/fsx_lite_mmap bs=${FSX_FILE_SIZE} count=1 > /dev/null 2>&1
54 if ! ltp/fsx $FSX_ARGS -L $testdir/fsx_lite_mmap > $tmp.output 2>&1
56 echo "ltp/fsx $FSX_ARGS -L fsx_lite_mmap"
66 echo "=== FSX Standard Mode, No Memory Mapping ==="
67 if ! ltp/fsx $FSX_ARGS -R -W $testdir/fsx_std_nommap > $tmp.output 2>&1
69 echo "ltp/fsx $FSX_ARGS -R -W fsx_std_nommap"
79 echo "=== FSX Standard Mode, Memory Mapping ==="
80 if ! ltp/fsx $FSX_ARGS $testdir/fsx_std_mmap > $tmp.output 2>&1
82 echo "ltp/fsx $FSX_ARGS fsx_std_mmap"
90 # real QA test starts here
103 #flush cache after write
104 FSX_ARGS="-f $FSX_ARGS"