On 4/27/26 19:05, Kevin Wolf wrote:
> This is an alternative fix for the corruption problem reported by Denis:
> https://patchew.org/QEMU/20260421155628.3600671-1-den@openvz.org/
>
> I think it really is a qcow2 level bug and should be fixed on the qcow2
> level. The test is also more targeted than just doing random I/O for a
> while, and therefore runs faster and documents the problem better.
>
> Kevin Wolf (4):
> commit: Drain nodes across all of bdrv_commit()
> qemu-io: Add 'aio_discard' command
> qcow2: Fix corruption on discard during write with COW
> iotests/046: Test that discard/write_zeroes wait for dependencies
>
> block/commit.c | 10 +++-
> block/qcow2-cluster.c | 52 ++++++++++++++++-
> qemu-io-cmds.c | 113 +++++++++++++++++++++++++++++++++++++
> tests/qemu-iotests/046 | 46 +++++++++++++++
> tests/qemu-iotests/046.out | 36 ++++++++++++
> 5 files changed, 252 insertions(+), 5 deletions(-)
>
with a 2 small nickpicks fixed
Reviewed-by: Denis V. Lunev <den@openvz.org>
Tested-by: Denis V. Lunev <den@openvz.org>