fsx/fsstress: round blocksize properly
[xfstests-dev.git] / tests / generic / 463
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2017 Christoph Hellwig.  All Rights Reserved.
4 #
5 # FS QA Test 463
6 #
7 # Test racy COW AIO write completions.
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         rm -f $TEST_DIR/file $TEST_DIR/clone
23 }
24
25 # get standard environment, filters and checks
26 . ./common/rc
27 . ./common/filter
28 . ./common/reflink
29
30 # remove previous $seqres.full before test
31 rm -f $seqres.full
32
33 _supported_fs generic
34
35 _require_test
36 _require_test_reflink
37 _require_aiodio aio-dio-cow-race
38
39 $AIO_TEST $TEST_DIR/file $TEST_DIR/clone
40
41 echo "Silence is golden"
42 status=0
43 exit