qemu-iotests: Skip 099 for VMDK subformats with desc file
PATCH 1/1 qemu-iotests: Skip 099 for VMDK subformats with desc file
VMDK extent parsing code doesn't handle the JSON file name, so the case fails for these subformats. Disabled them.
Signed-off-by Fam Zheng <[email protected]>
--- tests/qemu-iotests/099 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
tests/qemu-iotests/099 +2 -1
@@ -44,7 +44,8 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 _supported_fmt qcow qcow2 qed vdi vhdx vmdk vpc _supported_proto file _supported_os Linux - +_unsupported_imgopts "subformat=monolithicFlat" "subformat=twoGbMaxExtentFlat" \ + "subformat=twoGbMaxExtentSparse" function do_run_qemu() {
Signature · 1 line
1.9.3
Quoted 13 lines · Fam Zheng
VMDK extent parsing code doesn't handle the JSON file name, so the case fails for these subformats. Disabled them.
Signed-off-by Fam Zheng <[email protected]>--- tests/qemu-iotests/099 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)tests/qemu-iotests/099 +0
-0
tests/qemu-iotests/099 trap "_cleanup; exit \$status" 0 1 2 3 15 · line 51
Quoted 9 lines
tests/qemu-iotests/099 +2
-1@@ -44,7 +44,8 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 _supported_fmt qcow qcow2 qed vdi vhdx vmdk vpc _supported_proto file _supported_os Linux - +_unsupported_imgopts "subformat=monolithicFlat" "subformat=twoGbMaxExtentFlat" \ + "subformat=twoGbMaxExtentSparse" function do_run_qemu() {
This is most certainly necessary, therefore: Thanks, applied to my block-next tree:
https://github.com/XanClic/qemu/commits/block-next
However, as I said in our private email exchange, we need to fix the error message, too.
$ qemu-img create -f vmdk -o subformat=monolithicFlat test.vmdk 64M Formatting 'test.vmdk', fmt=vmdk size=67108864 compat6=off subformat='monolithicFlat' $ qemu-io -c 'open -o file.driver=blkdebug,file.image.filename=test.vmdk,file.inject-error.0.event=read_aio'
qemu-io: can't open: Could not parse the JSON options
That's not very helpful. I'll send a patch for that.
Max