iotests: Provide a function for checking the creation of huge files
commit059f708d0c440a2be255dd3c46d536c095ee19a3
authorThomas Huth <thuth@redhat.com>
Mon, 2 Dec 2019 10:16:29 +0000 (2 11:16 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 18 Dec 2019 10:20:57 +0000 (18 11:20 +0100)
tree6e2fcac35de1be97484e875dfa0b11519b6cb362
parentaceeaa69d28e6f08a24395d0aa6915b687d0a681
iotests: Provide a function for checking the creation of huge files

Some tests create huge (but sparse) files, and to be able to run those
tests in certain limited environments (like CI containers), we have to
check for the possibility to create such files first. Thus let's introduce
a common function to check for large files, and replace the already
existing checks in the iotests 005 and 220 with this function.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/005
tests/qemu-iotests/220
tests/qemu-iotests/common.rc