2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2007 Silicon Graphics, Inc. All Rights Reserved.
7 # Test to check bulkstat returns unlinked-but-referenced inodes
8 # (PVs: 972128, 972004)
11 seqres=$RESULT_DIR/$seq
12 echo "QA output created by $seq"
16 status=1 # failure is the default!
17 trap "_cleanup; exit \$status" 0 1 2 3 15
25 # get standard environment, filters and checks
29 # real QA test starts here
31 # Modify as appropriate.
36 _scratch_mkfs_xfs >/dev/null 2>&1 \
37 || _fail "mkfs failed"
41 # run Mark Goodwin test here
42 # Usage: ./bulkstat_unlink_test iterations nfiles stride dir
43 # Create dir with nfiles, unlink each stride'th file, sync, bulkstat
44 echo "Start original bulkstat_unlink_test with -r switch"
45 $here/src/bulkstat_unlink_test -r 1 100 1 $SCRATCH_MNT/bulkstat