generic: test MADV_POPULATE_READ with IO errors
[xfstests-dev.git] / tests / xfs / 222
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2010 Dave Chinner.  All Rights Reserved.
4 #
5 # FS QA Test No. 222
6 #
7 # xfs_fsr QA tests
8 # run xfs_fsr over the test filesystem to give it a wide and varied set of
9 # inodes to try to defragment. This is effectively a crash/assert failure
10 # test looking for corruption induced by xfs_fsr runs.
11 #
12 . ./common/preamble
13 _begin_fstest auto fsr ioctl quick
14
15 # Import common functions.
16 . ./common/filter
17
18 # real QA test starts here
19 _supported_fs xfs
20 _require_test
21
22 [ "$XFS_FSR_PROG" = "" ] && _notrun "xfs_fsr not found"
23
24 xfs_fsr -d -v $TEST_DIR > $seqres.full 2>&1
25
26 echo "--- silence is golden ---"
27 status=0 ; exit