07a4e1f8e5
This tests that when an error happens while writing back bitmaps to the image file in qcow2_inactivate(), 'qemu-img bitmap/commit' actually return an error value in their exit code instead of making the operation look successful to scripts. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Message-Id: <20230112191454.169353-5-kwolf@redhat.com> Reviewed-by: Hanna Czenczek <hreitz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
24 lines
1.2 KiB
Plaintext
24 lines
1.2 KiB
Plaintext
QA output created by qemu-img-close-errors
|
|
|
|
=== Test with 6 bitmaps ===
|
|
wrote 132120576/132120576 bytes at offset 0
|
|
126 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
Image committed.
|
|
qemu-img commit exit code: 0
|
|
qemu-img bitmap --add exit code: 0
|
|
qemu-img: Lost persistent bitmaps during inactivation of node 'NODE_NAME': Failed to write bitmap 'good-bitmap' to file: No space left on device
|
|
qemu-img: Error while closing the image: Invalid argument
|
|
qemu-img: Lost persistent bitmaps during inactivation of node 'NODE_NAME': Failed to write bitmap 'good-bitmap' to file: No space left on device
|
|
qemu-img bitmap --merge exit code: 1
|
|
|
|
=== Test with 7 bitmaps ===
|
|
wrote 132120576/132120576 bytes at offset 0
|
|
126 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
qemu-img: Lost persistent bitmaps during inactivation of node 'NODE_NAME': Failed to write bitmap 'stale-bitmap-7' to file: No space left on device
|
|
qemu-img: Lost persistent bitmaps during inactivation of node 'NODE_NAME': Failed to write bitmap 'stale-bitmap-7' to file: No space left on device
|
|
qemu-img: Error while closing the image: Invalid argument
|
|
qemu-img commit exit code: 1
|
|
qemu-img bitmap --add exit code: 0
|
|
qemu-img bitmap --merge exit code: 0
|
|
*** done
|