qemu-iotests: fix for vmdk
cover qemu-iotests: fix for vmdk
When testing vmdk, qemu-iotests fails on 017, 018, 042 and 043 for trivial reasons. These patches try to fix those cases to pass tests on all four subformats of vmdk {monolithicSparse monolithicFlat twoGbMaxExtentSparse twoGbMaxExtentFlat}.
Fam Zheng (3):
qemu-iotests: exclude vmdk for test 042
qemu-iotests: exclude vmdk from 043
qemu-iotests: fix 017 018 for vmdk
tests/qemu-iotests/017 | 4 +++- tests/qemu-iotests/017.out | 2 +- tests/qemu-iotests/018 | 4 +++- tests/qemu-iotests/018.out | 2 +- tests/qemu-iotests/042 | 2 +- tests/qemu-iotests/043 | 2 +- 6 files changed, 10 insertions(+), 6 deletions(-)
Signature · 1 line
1.8.1.4
PATCH 1/3 qemu-iotests: exclude vmdk for test 042
Zero sized disk is not supported by qemu vmdk driver, exclude vmdk from the test script.
As tested on vmware-vdiskmanager and vmware workstation, zero sized disk is not supported by vmware, either.
--- tests/qemu-iotests/042 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/qemu-iotests/042 +1 -1
@@ -38,7 +38,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 . ./common.rc . ./common.filter -_supported_fmt qcow2 qcow qed vmdk +_supported_fmt qcow2 qcow qed _supported_proto file _supported_os Linux
Signature · 1 line
1.8.1.4
Re: [Qemu-devel] [PATCH 1/3] qemu-iotests: exclude vmdk for test 042
Quoted 28 lines · Fam Zheng
Zero sized disk is not supported by qemu vmdk driver, exclude vmdk from the test script.
As tested on vmware-vdiskmanager and vmware workstation, zero sized disk is not supported by vmware, either.
Signed-off-by Fam Zheng <[email protected]>--- tests/qemu-iotests/042 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tests/qemu-iotests/042 +1
-1@@ -38,7 +38,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 . ./common.rc . ./common.filter -_supported_fmt qcow2 qcow qed vmdk +_supported_fmt qcow2 qcow qed _supported_proto file _supported_os LinuxSignature · 1 line
1.8.1.4
PATCH 2/3 qemu-iotests: exclude vmdk from 043
In reply to Fam Zheng043 tests recursive backing file by changing backing file. VMDK has not implemented this yet.
--- tests/qemu-iotests/043 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/qemu-iotests/043 +1 -1
@@ -40,7 +40,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 . ./common.filter # Any format supporting backing files -_supported_fmt qcow qcow2 vmdk qed +_supported_fmt qcow qcow2 qed _supported_proto generic _supported_os Linux
Signature · 1 line
1.8.1.4
Re: [Qemu-devel] [PATCH 2/3] qemu-iotests: exclude vmdk from 043
Quoted 24 lines · Fam Zheng
043 tests recursive backing file by changing backing file. VMDK has not implemented this yet.
Signed-off-by Fam Zheng <[email protected]>--- tests/qemu-iotests/043 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tests/qemu-iotests/043 +1
-1@@ -40,7 +40,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 . ./common.filter # Any format supporting backing files -_supported_fmt qcow qcow2 vmdk qed +_supported_fmt qcow qcow2 qed _supported_proto generic _supported_os LinuxSignature · 1 line
1.8.1.4
PATCH 3/3 qemu-iotests: fix 017 018 for vmdk
In reply to Fam Zheng017 and 018 use /bin/mv to move base img from t.IMGFMG to t.IMGFMT.base after filling data, this is not enough for vmdk, when t.IMGFMT is only a description text file who points to t-{flat,s001,f001,...}.IMGFMT as data extent, so testing such subformats alway fails on them.
This patch use the trick of temprorily changing TEST_IMG to avoid using /bin/mv.
--- tests/qemu-iotests/017 | 4 +++- tests/qemu-iotests/017.out | 2 +- tests/qemu-iotests/018 | 4 +++- tests/qemu-iotests/018.out | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-)
tests/qemu-iotests/017 +3 -1
@@ -46,6 +46,8 @@ _supported_os Linux TEST_OFFSETS="0 4294967296" +TEST_IMG_SAVE=$TEST_IMG +TEST_IMG=$TEST_IMG.base _make_test_img 6G echo "Filling base image"
@@ -63,7 +65,7 @@ _check_test_img echo "Creating test image with backing file" echo -mv $TEST_IMG $TEST_IMG.base +TEST_IMG=$TEST_IMG_SAVE _make_test_img -b $TEST_IMG.base 6G echo "Filling test image"
tests/qemu-iotests/017.out +1 -1
@@ -1,5 +1,5 @@ QA output created by 017 -Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=6442450944 +Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=6442450944 Filling base image === IO: pattern 0
tests/qemu-iotests/018 +3 -1
@@ -46,6 +46,8 @@ _supported_os Linux TEST_OFFSETS="0 4294967296" +TEST_IMG_SAVE=$TEST_IMG +TEST_IMG=$TEST_IMG.base _make_test_img 6G echo "Filling base image"
@@ -63,7 +65,7 @@ _check_test_img echo "Creating test image with backing file" echo -mv $TEST_IMG $TEST_IMG.base +TEST_IMG=$TEST_IMG_SAVE _make_test_img -b $TEST_IMG.base 6G echo "Filling test image"
tests/qemu-iotests/018.out +1 -1
@@ -1,5 +1,5 @@ QA output created by 018 -Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=6442450944 +Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=6442450944 Filling base image === IO: pattern 0
Signature · 1 line
1.8.1.4
Re: [Qemu-devel] [PATCH 3/3] qemu-iotests: fix 017 018 for vmdk
Quoted 7 lines · Fam Zheng
017 and 018 use
/bin/mvto move base img from t.IMGFMG to t.IMGFMT.base after filling data, this is not enough for vmdk, when t.IMGFMT is only a description text file who points to t-{flat,s001,f001,...}.IMGFMT as data extent, so testing such subformats alway fails on them.This patch use the trick of temprorily changing
TEST_IMGto avoid using/bin/mv.
s/temprorily/temporarily/
Other than that, I ran the tests locally here and verified vmdk, qcow, qcow2, and qed pass both 17 and 18, so the patch itself looks good to me.
Quoted 78 lines
Signed-off-by Fam Zheng <[email protected]>--- tests/qemu-iotests/017 | 4 +++- tests/qemu-iotests/017.out | 2 +- tests/qemu-iotests/018 | 4 +++- tests/qemu-iotests/018.out | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-)tests/qemu-iotests/017 +3
-1@@ -46,6 +46,8 @@ _supported_os Linux TEST_OFFSETS="0 4294967296" +TEST_IMG_SAVE=$TEST_IMG +TEST_IMG=$TEST_IMG.base _make_test_img 6G echo "Filling base image"@@ -63,7 +65,7 @@ _check_test_img echo "Creating test image with backing file" echo -mv $TEST_IMG $TEST_IMG.base +TEST_IMG=$TEST_IMG_SAVE _make_test_img -b $TEST_IMG.base 6G echo "Filling test image"tests/qemu-iotests/017.out +1
-1@@ -1,5 +1,5 @@ QA output created by 017 -Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=6442450944 +Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=6442450944 Filling base image === IO: pattern 0tests/qemu-iotests/018 +3
-1@@ -46,6 +46,8 @@ _supported_os Linux TEST_OFFSETS="0 4294967296" +TEST_IMG_SAVE=$TEST_IMG +TEST_IMG=$TEST_IMG.base _make_test_img 6G echo "Filling base image"@@ -63,7 +65,7 @@ _check_test_img echo "Creating test image with backing file" echo -mv $TEST_IMG $TEST_IMG.base +TEST_IMG=$TEST_IMG_SAVE _make_test_img -b $TEST_IMG.base 6G echo "Filling test image"tests/qemu-iotests/018.out +1
-1@@ -1,5 +1,5 @@ QA output created by 018 -Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=6442450944 +Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=6442450944 Filling base image === IO: pattern 0Signature · 1 line
1.8.1.4
Kevin Wolf
AppliedAm 07.05.2013 um 13:13 hat Fam Zheng geschrieben:
Quoted 9 lines
When testing vmdk, qemu-iotests fails on 017, 018, 042 and 043 for trivial reasons. These patches try to fix those cases to pass tests on all four subformats of vmdk {monolithicSparse monolithicFlat twoGbMaxExtentSparse twoGbMaxExtentFlat}.
Fam Zheng (3):
qemu-iotests: exclude vmdk for test 042
qemu-iotests: exclude vmdk from 043
qemu-iotests: fix 017 018 for vmdk
Thanks, applied all to the block branch.
I extended patch 2 to also remove qcow1, which doesn't support changing the backing file either.
Kevin