From 34ceed81f9ca31829448276dafe3d9151d66962c Mon Sep 17 00:00:00 2001 From: Fam Zheng Date: Tue, 21 Jan 2014 15:07:43 +0800 Subject: vmdk: Check for overhead when opening Report an error if file size is even smaller than metadata. Signed-off-by: Fam Zheng Signed-off-by: Kevin Wolf --- tests/qemu-iotests/059 | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/qemu-iotests/059') diff --git a/tests/qemu-iotests/059 b/tests/qemu-iotests/059 index 64ed04cfce..2d604d3a91 100755 --- a/tests/qemu-iotests/059 +++ b/tests/qemu-iotests/059 @@ -97,6 +97,12 @@ RW 12582912 VMFS "dummy.vmdk" 1 EOF _img_info +echo +echo "=== Testing truncated sparse ===" +IMGOPTS="subformat=monolithicSparse" _make_test_img 100G +truncate -s 10M $TEST_IMG +_img_info + echo echo "=== Testing version 3 ===" _use_sample_img iotest-version3.vmdk.bz2 -- cgit v1.2.3