]> xenbits.xensource.com Git - qemu-xen.git/commit
iotests/block-status-cache: New test
authorHanna Reitz <hreitz@redhat.com>
Tue, 18 Jan 2022 17:00:00 +0000 (18:00 +0100)
committerEric Blake <eblake@redhat.com>
Fri, 28 Jan 2022 22:55:23 +0000 (16:55 -0600)
commit6384dd534d742123d26c008d9794b20bc41359d5
tree7df9fecef293dd8af36385e83d75a34b61e0b3d9
parent113b727ce788335cf76f65355d670c9bc130fd75
iotests/block-status-cache: New test

Add a new test to verify that want_zero=false block-status calls do not
pollute the block-status cache for want_zero=true calls.

We check want_zero=true calls and their results using `qemu-img map`
(over NBD), and want_zero=false calls also using `qemu-img map` over
NBD, but using the qemu:allocation-depth context.

(This test case cannot be integrated into nbd-qemu-allocation, because
that is a qcow2 test, and this is a raw test.)

Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Message-Id: <20220118170000.49423-3-hreitz@redhat.com>
Reviewed-by: Nir Soffer <nsoffer@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Tested-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
tests/qemu-iotests/tests/block-status-cache [new file with mode: 0755]
tests/qemu-iotests/tests/block-status-cache.out [new file with mode: 0644]