generic: test MADV_POPULATE_READ with IO errors
[xfstests-dev.git] / tests / xfs / 517
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0-or-later
3 # Copyright (c) 2020 Oracle, Inc.  All Rights Reserved.
4 #
5 # FS QA Test No. 517
6 #
7 # Race freeze and fsmap for a while to see if we crash or livelock.
8 #
9 . ./common/preamble
10 _begin_fstest auto quick fsmap freeze
11
12 _register_cleanup "_cleanup" BUS
13
14 # Override the default cleanup function.
15 _cleanup()
16 {
17         cd /
18         _scratch_xfs_stress_scrub_cleanup
19         rm -rf $tmp.*
20 }
21
22 # Import common functions.
23 . ./common/filter
24 . ./common/fuzzy
25 . ./common/inject
26
27 # real QA test starts here
28 _supported_fs xfs
29 _require_xfs_scratch_rmapbt
30 _require_xfs_io_command "fsmap"
31 _require_xfs_stress_scrub
32
33 _scratch_mkfs > "$seqres.full" 2>&1
34 _scratch_mount
35 _scratch_xfs_stress_scrub -f -i 'fsmap -v'
36
37 # success, all done
38 echo "Silence is golden"
39 status=0
40 exit