diff options
author | Thomas Huth <thuth@redhat.com> | 2019-04-28 15:28:11 +0200 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2019-05-21 10:05:21 +0200 |
commit | b807a99369ef534b9e7c10f34f8c64ce708332f3 (patch) | |
tree | 37300dd25aad0e847f9c4ddc6213efbe28ce3b87 /tests/qemu-iotests/005 | |
parent | 44c2364aaa5e366c44b07714c22e874f547883a5 (diff) |
tests/qemu-iotests/005: Add a sanity check for large sparse file support
"check -raw 005" fails when running on certain filesystems - these do not
support such large sparse files. Use the same check as in test 220 to
skip the test in this case.
Suggested-by: Eric Blake <eblake@redhat.com>
Message-Id: <20190502084506.8009-2-thuth@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/005')
-rwxr-xr-x | tests/qemu-iotests/005 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/qemu-iotests/005 b/tests/qemu-iotests/005 index 2fef63af88..9c7681c19b 100755 --- a/tests/qemu-iotests/005 +++ b/tests/qemu-iotests/005 @@ -55,6 +55,15 @@ if [ "$IMGPROTO" = "sheepdog" ]; then _notrun "image protocol $IMGPROTO does not support large image sizes" fi +# Sanity check: For raw, we require a file system that permits the creation +# of a HUGE (but very sparse) file. Check we can create it before continuing. +if [ "$IMGFMT" = "raw" ]; then + if ! truncate --size=5T "$TEST_IMG"; then + _notrun "file system on $TEST_DIR does not support large enough files" + fi + rm "$TEST_IMG" +fi + echo echo "creating large image" _make_test_img 5000G |