qemu-iotests: add 053 unaligned compressed image size test

Test that qemu-img convert -c works when input image length is not a
multiple of the cluster size.

Previously an error message would be produced:

  qemu-img: error while compressing sector 0: Input/output error

Now that qcow2 and qcow handle this case the test passes successfully.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
Stefan Hajnoczi 2013-04-16 11:14:23 +02:00 committed by Kevin Wolf
parent 1cb6f50644
commit 7da94ca741
3 changed files with 91 additions and 0 deletions

View file

@ -0,0 +1,17 @@
QA output created by 053
== Creating single sector image ==
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=512
wrote 512/512 bytes at offset 0
512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
== Converting the image, compressed ==
No errors were found on the image.
== Checking compressed image virtual disk size ==
virtual size: 512 (512 bytes)
== Verifying the compressed image ==
read 512/512 bytes at offset 0
512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
*** done