for i in `seq 2 $nr`; do
_cp_reflink $testdir/file1 $testdir/file$i
done
-_test_remount
+_test_cycle_mount
free_blocks1=$(stat -f $testdir -c '%f')
echo "Punch most of the blocks"
$XFS_IO_PROG -f -c "fpunch 0 $sz" $testdir/file2
$XFS_IO_PROG -f -c "fpunch 0 $((sz / 2))" $testdir/file3
$XFS_IO_PROG -f -c "fpunch $((sz / 2)) $((sz / 2))" $testdir/file4
-_test_remount
+_test_cycle_mount
free_blocks2=$(stat -f $testdir -c '%f')
echo "Punch all the files"
$XFS_IO_PROG -f -c "fpunch 0 $sz" $testdir/file$i
done
$XFS_IO_PROG -f -c "fpunch 0 $sz" $testdir/file1
-_test_remount
+_test_cycle_mount
free_blocks3=$(stat -f $testdir -c '%f')
#echo $free_blocks0 $free_blocks1 $free_blocks2 $free_blocks3