mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
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:
parent
1cb6f50644
commit
7da94ca741
3 changed files with 91 additions and 0 deletions
17
tests/qemu-iotests/053.out
Normal file
17
tests/qemu-iotests/053.out
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue