generic: test for creating duplicate filenames in encrypted dir
[xfstests-dev.git] / tests / generic / 616
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2020 Red Hat Inc.  All Rights Reserved.
4 #
5 # FS QA Test No. 616
6 #
7 # IO_URING soak buffered fsx test, copy from generic/522 but reduce the number
8 # fsx ops to limit the testing time to be an auto group test.
9 #
10 seq=`basename $0`
11 seqres=$RESULT_DIR/$seq
12 echo "QA output created by $seq"
13
14 here=`pwd`
15 tmp=/tmp/$$
16 status=1        # failure is the default!
17 trap "_cleanup; exit \$status" 0 1 2 3 15
18
19 _cleanup()
20 {
21         cd /
22         rm -f $tmp.*
23 }
24
25 # get standard environment, filters and checks
26 . ./common/rc
27 . ./common/filter
28
29 # remove previous $seqres.full before test
30 rm -f $seqres.full
31
32 # real QA test starts here
33
34 # Modify as appropriate.
35 _supported_fs generic
36 _require_test
37 _require_io_uring
38
39 # Run fsx for 100 thousand ops or more
40 nr_ops=$((100000 * TIME_FACTOR))
41 op_sz=$((128000 * LOAD_FACTOR))
42 file_sz=$((600000 * LOAD_FACTOR))
43 fsx_file=$TEST_DIR/fsx.$seq
44
45 fsx_args=(-S 0)
46 fsx_args+=(-U)
47 fsx_args+=(-q)
48 fsx_args+=(-N $nr_ops)
49 fsx_args+=(-p $((nr_ops / 100)))
50 fsx_args+=(-o $op_sz)
51 fsx_args+=(-l $file_sz)
52
53 run_fsx "${fsx_args[@]}" | sed -e '/^fsx.*/d'
54
55 # success, all done
56 echo "Silence is golden"
57 status=0
58 exit