From b47053bd0359c68094d7a25a65687c0844771e34 Mon Sep 17 00:00:00 2001 From: Fam Zheng Date: Mon, 9 Dec 2013 13:24:36 +0800 Subject: vmdk: Check VMFS extent line field number VMFS extent line in description file should be with 4 fields: RW VMFS "file-name.vmdk" Check the number explicitly and report error if offset is appended as FLAT, which should be invalid format. Reported-by: Paolo Bonzini Signed-off-by: Fam Zheng Signed-off-by: Stefan Hajnoczi --- tests/qemu-iotests/059 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tests/qemu-iotests/059') diff --git a/tests/qemu-iotests/059 b/tests/qemu-iotests/059 index 73941c3e61..65bea1d6c6 100755 --- a/tests/qemu-iotests/059 +++ b/tests/qemu-iotests/059 @@ -80,6 +80,20 @@ echo "=== Testing big twoGbMaxExtentFlat ===" IMGOPTS="subformat=twoGbMaxExtentFlat" _make_test_img 1000G $QEMU_IMG info $TEST_IMG | _filter_testdir | sed -e 's/cid: [0-9]*/cid: XXXXXXXX/' +echo +echo "=== Testing malformed VMFS extent description line ===" +cat >"$TEST_IMG" <