Fix file leak in _get_max_file_size - This is obviously mostly
problematic for FS lacking support for sparse files.
There seems to be some seek_sanity_testfile files that are not
cleaned up and take up space:
-rwxr-xr-x. 1 root root 8.0G Sep 22 13:39 seek_sanity_testfile10
g/394: Clean up test files taking space:
-rwxr-xr-x. 1 root root 1.0G Sep 22 14:58 394.
1183899
-rwxr-xr-x. 1 root root 1.0G Sep 22 14:58 394.
1183899-1
-rwxr-xr-x. 1 root root 0 sep 22 14:58 394.
1183899+1
Signed-off-by: Pavel Reichl <preichl@redhat.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
l=$m
fi
done
+ rm -f $testfile
echo $l
}
# Override the default cleanup function.
_cleanup()
{
- eval "rm -f $BASE_TEST_FILE.*"
+ rm -f $BASE_TEST_FILE*
}
_run_seek_sanity_test $BASE_TEST_FILE > $seqres.full 2>&1 ||
{
cd /
ulimit -f unlimited
- rm -f $tmp.*
+ rm -f $tmp.* $TEST_DIR/$seq.*
}
# Import common functions.
# Override the default cleanup function.
_cleanup()
{
- rm -f $tmp.* $BASE_TEST_FILE.*
+ rm -f $tmp.* $BASE_TEST_FILE*
}
# Import common functions.
# Override the default cleanup function.
_cleanup()
{
- rm -f $tmp.* $BASE_TEST_FILE.*
+ rm -f $tmp.* $BASE_TEST_FILE*
}
# Import common functions.
_cleanup()
{
cd /
- rm -f $tmp.* $BASE_TEST_FILE
+ rm -f $tmp.* $BASE_TEST_FILE*
}
# Import common functions.