[PATCH 0/3] qcow2: fix discard-no-unref=on data corruption

Andrey Drobyshev posted 3 patches 3 weeks, 5 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20261027104441.830212-1-andrey.drobyshev@virtuozzo.com
Maintainers: Kevin Wolf <kwolf@redhat.com>, Hanna Reitz <hreitz@redhat.com>
There is a newer version of this series
block/qcow2-cluster.c      |  6 +++--
tests/qemu-iotests/290     | 50 ++++++++++++++++++++++++++++++++++++++
tests/qemu-iotests/290.out | 33 +++++++++++++++++++++++++
3 files changed, 87 insertions(+), 2 deletions(-)
[PATCH 0/3] qcow2: fix discard-no-unref=on data corruption
Posted by Andrey Drobyshev 3 weeks, 5 days ago
1st commit with tests is my own old commit from previously unmerged
subcluster series [1].
2nd is the actual bug fix, 3rd is the regression test.

[1] https://lore.kernel.org/qemu-devel/20240913163942.423050-1-andrey.drobyshev@virtuozzo.com

Andrey Drobyshev (3):
  iotests/290: add test case to check 'discard-no-unref' option behavior
  qcow2: fix snapshot data corruption with discard-no-unref=on
    #VSTOR-151885
  iotests/290: add 'discard' and 'write -z -u' case with a snapshot
    #VSTOR-151885

 block/qcow2-cluster.c      |  6 +++--
 tests/qemu-iotests/290     | 50 ++++++++++++++++++++++++++++++++++++++
 tests/qemu-iotests/290.out | 33 +++++++++++++++++++++++++
 3 files changed, 87 insertions(+), 2 deletions(-)

-- 
2.47.1
Re: [PATCH 0/3] qcow2: fix discard-no-unref=on data corruption
Posted by Kevin Wolf 2 weeks, 5 days ago
Am 27.10.2026 um 11:44 hat Andrey Drobyshev geschrieben:
> 1st commit with tests is my own old commit from previously unmerged
> subcluster series [1].
> 2nd is the actual bug fix, 3rd is the regression test.
> 
> [1] https://lore.kernel.org/qemu-devel/20240913163942.423050-1-andrey.drobyshev@virtuozzo.com
> 
> Andrey Drobyshev (3):
>   iotests/290: add test case to check 'discard-no-unref' option behavior
>   qcow2: fix snapshot data corruption with discard-no-unref=on
>     #VSTOR-151885
>   iotests/290: add 'discard' and 'write -z -u' case with a snapshot
>     #VSTOR-151885
> 
>  block/qcow2-cluster.c      |  6 +++--
>  tests/qemu-iotests/290     | 50 ++++++++++++++++++++++++++++++++++++++
>  tests/qemu-iotests/290.out | 33 +++++++++++++++++++++++++
>  3 files changed, 87 insertions(+), 2 deletions(-)

Patches 2 and 3:
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Re: [PATCH 0/3] qcow2: fix discard-no-unref=on data corruption
Posted by Denis V. Lunev 3 weeks, 5 days ago
On 10/27/26 11:44, Andrey Drobyshev wrote:
> 1st commit with tests is my own old commit from previously unmerged
> subcluster series [1].
> 2nd is the actual bug fix, 3rd is the regression test.
>
> [1] https://lore.kernel.org/qemu-devel/20240913163942.423050-1-andrey.drobyshev@virtuozzo.com
>
> Andrey Drobyshev (3):
>   iotests/290: add test case to check 'discard-no-unref' option behavior
>   qcow2: fix snapshot data corruption with discard-no-unref=on
>     #VSTOR-151885
>   iotests/290: add 'discard' and 'write -z -u' case with a snapshot
>     #VSTOR-151885
>
>  block/qcow2-cluster.c      |  6 +++--
>  tests/qemu-iotests/290     | 50 ++++++++++++++++++++++++++++++++++++++
>  tests/qemu-iotests/290.out | 33 +++++++++++++++++++++++++
>  3 files changed, 87 insertions(+), 2 deletions(-)
>
Reviewed-by: Denis V. Lunev <den@openvz.org>