filter_cmd=$5
testfile=$6
+ # initial test state must be defined, otherwise the first test can fail
+ # due ot stale file state left from previous tests.
+ rm -f $testfile
+
echo " 1. into a hole"
- if [ "$remove_testfile" ]; then
- rm -f $testfile
- fi
$XFS_IO_PROG -f -c "truncate 20k" \
-c "$zero_cmd 4k 8k" \
-c "$map_cmd -v" $testfile | $filter_cmd