generic: test for file loss after mix of rename, fsync and inode eviction
[xfstests-dev.git] / tests / generic / 522
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2018 Oracle.  All Rights Reserved.
4 #
5 # FS QA Test No. 522
6 #
7 # Long-soak buffered fsx test
8 #
9 . ./common/preamble
10 _begin_fstest soak long_rw
11
12 # Import common functions.
13 . ./common/filter
14
15 # real QA test starts here
16
17 # Modify as appropriate.
18 _supported_fs generic
19 _require_test
20
21 # Run fsx for a million ops or more
22 nr_ops=$((1000000 * TIME_FACTOR))
23 op_sz=$((128000 * LOAD_FACTOR))
24 file_sz=$((600000 * LOAD_FACTOR))
25 fsx_file=$TEST_DIR/fsx.$seq
26
27 fsx_args=(-q)
28 fsx_args+=(-N $nr_ops)
29 fsx_args+=(-p $((nr_ops / 100)))
30 fsx_args+=(-o $op_sz)
31 fsx_args+=(-l $file_sz)
32
33 run_fsx "${fsx_args[@]}" | sed -e '/^fsx.*/d'
34
35 # success, all done
36 echo Silence is golden
37 status=0
38 exit