fsx/fsstress: round blocksize properly
[xfstests-dev.git] / tests / generic / 346
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (C) 2016 SUSE Linux Products GmbH. All Rights Reserved.
4 #
5 # FSQA Test No. 346
6 #
7 # Test races between mmap and normal writes from racing threads
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 "_cleanup; exit \$status" 0 1 2 3 15
17
18 _cleanup()
19 {
20         cd /
21         rm -f $tmp.*
22 }
23
24 # get standard environment and checks
25 . ./common/rc
26
27 # real QA test starts here
28 _supported_fs generic
29 _require_scratch
30 _require_test_program "holetest"
31
32 rm -f $seqres.full
33
34 _scratch_mkfs >>$seqres.full 2>&1
35 _scratch_mount
36
37 $here/src/holetest -f -w $SCRATCH_MNT/testfile 1
38 $here/src/holetest -f -w $SCRATCH_MNT/testfile 16
39 $here/src/holetest -f -w $SCRATCH_MNT/testfile 256
40
41 status=0
42 exit