On Fri, Jan 28, 2022 at 02:50:51PM -0600, Eric Blake wrote: > On Tue, Jan 18, 2022 at 06:00:00PM +0100, Hanna Reitz wrote: > > 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 <[email protected]> > > --- > > tests/qemu-iotests/tests/block-status-cache | 139 ++++++++++++++++++ > > .../qemu-iotests/tests/block-status-cache.out | 5 + > > 2 files changed, 144 insertions(+) > > create mode 100755 tests/qemu-iotests/tests/block-status-cache > > create mode 100644 tests/qemu-iotests/tests/block-status-cache.out > > Reviewed-by: Eric Blake <[email protected]>
I also tested that applying this patch but not 1/2 reproduces the failure for me, so I'm adding: Tested-by: Eric Blake <[email protected]> -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
