2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2010 Dave Chinner. All Rights Reserved.
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.
13 seqres=$RESULT_DIR/$seq
14 echo "QA output created by $seq"
18 status=1 # failure is the default!
25 trap "_cleanup ; exit \$status" 0 1 2 3 15
27 # get standard environment, filters and checks
31 # real QA test starts here
36 [ "$XFS_FSR_PROG" = "" ] && _notrun "xfs_fsr not found"
38 xfs_fsr -d -v $TEST_DIR > $seqres.full 2>&1
40 echo "--- silence is golden ---"