2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2007 Silicon Graphics, Inc. All Rights Reserved.
7 # Test to reproduce PV#: 964316
8 # Check sync reclaims and flushes unlinked inodes to their buffers.
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
30 # real QA test starts here
32 # Modify as appropriate.
39 # test that we have DMAPI support
41 _scratch_unmount > /dev/null 2>&1
43 _scratch_mkfs_xfs >/dev/null 2>&1 \
44 || _fail "mkfs failed"
48 # run Mark Goodwin test here
49 # Usage: ./bulkstat_unlink_test iterations nfiles stride dir
50 # Create dir with nfiles, unlink each stride'th file, sync, bulkstat
51 echo "Start original bulkstat_unlink_test"
52 $here/src/bulkstat_unlink_test 10 100 1 $SCRATCH_MNT/bulkstat
53 $here/src/bulkstat_unlink_test 10 1000 1 $SCRATCH_MNT/bulkstat
54 $here/src/bulkstat_unlink_test 15 100 6 $SCRATCH_MNT/bulkstat
55 $here/src/bulkstat_unlink_test 20 1000 3 $SCRATCH_MNT/bulkstat
57 # Mount scratch with ikeep enabled
59 _scratch_mount "-o dmapi,mtpt=$SCRATCH_MNT"
61 echo "Start bulkstat_unlink_test_modified"
62 $here/src/bulkstat_unlink_test_modified 10 1000 1 $SCRATCH_MNT/bulkstat