4 # Test to reproduce PV#: 964316
5 # Check sync reclaims and flushes unlinked inodes to their buffers.
6 #-----------------------------------------------------------------------
7 # Copyright (c) 2007 Silicon Graphics, Inc. All Rights Reserved.
8 #-----------------------------------------------------------------------
11 owner=mohamedb@sgi.com
14 echo "QA output created by $seq"
18 status=1 # failure is the default!
19 trap "_cleanup; exit \$status" 0 1 2 3 15
27 # get standard environment, filters and checks
31 # real QA test starts here
33 # Modify as appropriate.
39 _scratch_mkfs_xfs >/dev/null 2>&1 \
40 || _fail "mkfs failed"
43 || _fail "mount failed"
45 # run Mark Goodwin test here
46 # Usage: ./bulkstat_unlink_test iterations nfiles stride dir
47 # Create dir with nfiles, unlink each stride'th file, sync, bulkstat
48 echo "Start original bulkstat_unlink_test"
49 $here/src/bulkstat_unlink_test 10 100 1 $SCRATCH_MNT/bulkstat
50 $here/src/bulkstat_unlink_test 10 1000 1 $SCRATCH_MNT/bulkstat
51 $here/src/bulkstat_unlink_test 15 100 6 $SCRATCH_MNT/bulkstat
52 $here/src/bulkstat_unlink_test 20 1000 3 $SCRATCH_MNT/bulkstat
54 # Mount scratch with ikeep enabled
56 _scratch_mount "-o dmapi,mtpt=$SCRATCH_MNT" \
57 || _fail "mount failed"
59 echo "Start bulkstat_unlink_test_modified"
60 $here/src/bulkstat_unlink_test_modified 10 1000 1 $SCRATCH_MNT/bulkstat