iotests: Fix CID for VMDK afl image
Quoted 22 lines · Fam Zheng
This reverts commit
76bf133c4which updated the reference output, and fixed the reference image, because the code path we want to exercise is actually the invalid image size.The descriptor block in the image, which includes the CID to verify, has been invalid since the reference image was added. Since commit
9877860e7bdwe report this error earlier than the "file too large", so 059.out mismatches.The binary change is generated along the operations of:
$ bunzip2 afl9.vmdk.bz2 $ qemu-img create -f vmdk fix.vmdk 1G $ dd if=afl9.vmdk of=fix.vmdk bs=512 count=1 conv=notrunc $ mv fix.vmdk afl9.vmdk $ bzip2 afl9.vmdkSigned-off-by Fam Zheng <[email protected]>---
v3: Skip test when ENOMEM. [Max, Eric]
Quoted 7 lines
v2: Fix commit message "qcow2 -> vmdk". [Kevin]
Revert 76bf133c4. --- tests/qemu-iotests/059 | 5 ++--- tests/qemu-iotests/059.out | 2 +- tests/qemu-iotests/sample_images/afl9.vmdk.bz2 | Bin 178 -> 618 bytes 3 files changed, 3 insertions(+), 4 deletions(-)
Nice, thanks.
PATCH v3 1/1 iotests: Fix CID for VMDK afl image
This reverts commit 76bf133c4 which updated the reference output, and fixed the reference image, because the code path we want to exercise is actually the invalid image size.
The descriptor block in the image, which includes the CID to verify, has been invalid since the reference image was added. Since commit 9877860e7bd we report this error earlier than the "file too large", so 059.out mismatches.
The binary change is generated along the operations of:
$ bunzip2 afl9.vmdk.bz2 $ qemu-img create -f vmdk fix.vmdk 1G $ dd if=afl9.vmdk of=fix.vmdk bs=512 count=1 conv=notrunc $ mv fix.vmdk afl9.vmdk $ bzip2 afl9.vmdk
---
v3: Skip test when ENOMEM. [Max, Eric]
v2: Fix commit message "qcow2 -> vmdk". [Kevin]
Revert 76bf133c4. --- tests/qemu-iotests/059 | 5 ++--- tests/qemu-iotests/059.out | 2 +- tests/qemu-iotests/sample_images/afl9.vmdk.bz2 | Bin 178 -> 618 bytes 3 files changed, 3 insertions(+), 4 deletions(-)
tests/qemu-iotests/059 +2 -3
@@ -152,9 +152,8 @@ done echo echo "=== Testing afl image with a very large capacity ===" _use_sample_img afl9.vmdk.bz2 -# The sed makes this test pass on machines with little RAM -# (and also with 32 bit builds) -_img_info | sed -e 's/Cannot allocate memory/Invalid argument/' +_img_info | grep -q 'Cannot allocate memory' && _notrun "Insufficent memory, skipped test" +_img_info _cleanup_test_img # success, all done
tests/qemu-iotests/059.out +1 -1
@@ -2358,5 +2358,5 @@ Offset Length Mapped to File 0x140000000 0x10000 0x50000 TEST_DIR/t-s003.vmdk === Testing afl image with a very large capacity === -qemu-img: Could not open 'TEST_DIR/afl9.IMGFMT': Could not open 'TEST_DIR/afl9.IMGFMT': Invalid argument +qemu-img: Can't get image size 'TEST_DIR/afl9.IMGFMT': File too large *** done
tests/qemu-iotests/sample_images/afl9.vmdk.bz2 binary +0 -0
Signature · 1 line
2.14.3
Quoted 16 lines · Fam Zheng
This reverts commit
76bf133c4which updated the reference output, and fixed the reference image, because the code path we want to exercise is actually the invalid image size.The descriptor block in the image, which includes the CID to verify, has been invalid since the reference image was added. Since commit
9877860e7bdwe report this error earlier than the "file too large", so 059.out mismatches.The binary change is generated along the operations of:
$ bunzip2 afl9.vmdk.bz2 $ qemu-img create -f vmdk fix.vmdk 1G $ dd if=afl9.vmdk of=fix.vmdk bs=512 count=1 conv=notrunc $ mv fix.vmdk afl9.vmdk $ bzip2 afl9.vmdk
Quoted 3 lines
Signed-off-by Fam Zheng <[email protected]>---
Could you rebase this on master (so only the _notrun portion remains)? It appears that v2 has hit master already...
Max
Quoted 17 lines · Max Reitz
Quoted 16 lines · Fam Zheng
This reverts commit
76bf133c4which updated the reference output, and fixed the reference image, because the code path we want to exercise is actually the invalid image size.The descriptor block in the image, which includes the CID to verify, has been invalid since the reference image was added. Since commit
9877860e7bdwe report this error earlier than the "file too large", so 059.out mismatches.The binary change is generated along the operations of:
$ bunzip2 afl9.vmdk.bz2 $ qemu-img create -f vmdk fix.vmdk 1G $ dd if=afl9.vmdk of=fix.vmdk bs=512 count=1 conv=notrunc $ mv fix.vmdk afl9.vmdk $ bzip2 afl9.vmdk
Quoted 6 lines
Quoted 3 lines
Signed-off-by Fam Zheng <[email protected]>---
Could you rebase this on master (so only the
_notrunportion remains)? It appears that v2 has hit master already...
OK, will do!
Fam