OpenVZ / Virtuozzo kernel development (devel@openvz.org)
 help / color / mirror / Atom feed
From: no-reply@sashiko.virtuozzo.com
To: "Denis V. Lunev" <den@openvz.org>,
	alexander.ivanov@virtuozzo.com, vasileios.almpanis@virtuozzo.com
Cc: devel@openvz.org
Subject: Re: [Devel] [PATCH hci-8.2 1/2] dm-qcow2: decompress compressed clusters merged into the lower image
Date: Thu, 19 Nov 2026 14:39:03 +0000	[thread overview]
Message-ID: <010701a1f43f2c65-41e39dae-00d8-4e6c-8287-299cacbee05b-000000@eu-central-1.amazonses.com> (raw)
In-Reply-To: <20261119143026.998715-2-den@openvz.org>

> From: Denis V. Lunev <den@openvz.org>
> 
> During a backward merge, process_one_qio() sends each merge qio of the
> top image to submit_top_delta_read() before it checks map.compressed.
> That read takes clu_size bytes from the compressed data offset, and
> process_backward_merge_write() writes them into the lower image as a
> plain cluster. After the merge the device returns the compressed
> stream, and whatever follows it in the file, instead of the data, and
> qemu-img check finds nothing wrong. If the raw read runs past the end
> of the top image, the merge fails with -EIO instead, or never ends on
> a kernel that resubmits a 0-byte read.
> 
> A guest write to a compressed cluster during the merge takes the same
> path, and so does a guest read, which becomes a merge qio first.
> 
> Read such a cluster with submit_read_compressed(), as a COW does, but
> with the copy mask of the merge and new_ext_l2 left 0 for the discard
> of the top entry, and pass the decompressed slices on to the merge
> write instead of the COW write.
> 
> https://virtuozzo.atlassian.net/browse/VSTOR-156064
> 
> Fixes: 222b6f1291c1 ("dm-qcow2: Introduce driver to create block devices over QCOW2 files")
> Feature: dm-qcow2: block device over QCOW2 files driver
> Signed-off-by: Denis V. Lunev <den@openvz.org>

Sashiko has reviewed this patch and found no issues.

Carry the trailer below into the next revision and Sashiko will not review this patch again.

Reviewed-by: Sashiko <no-reply@sashiko.virtuozzo.com>

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261119143026.998715-2-den@openvz.org?part=1


_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

  reply	other threads:[~2026-11-19 14:40 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-19 14:30 [Devel] [PATCH hci-8.2 0/2] dm-qcow2: fix backward merge of compressed clusters Denis V. Lunev
2026-11-19 14:30 ` [Devel] [PATCH hci-8.2 1/2] dm-qcow2: decompress compressed clusters merged into the lower image Denis V. Lunev
2026-11-19 14:39   ` no-reply [this message]
2026-11-19 16:45   ` Konstantin Khorenko
2026-11-19 14:30 ` [Devel] [PATCH hci-8.2 2/2] dm-qcow2: end the popped qio when decompression setup fails Denis V. Lunev
2026-11-19 14:42   ` no-reply
2026-11-19 16:45   ` Konstantin Khorenko
2026-11-19 16:45 ` [Devel] [PATCH hci-8.2 0/2] dm-qcow2: fix backward merge of compressed clusters Konstantin Khorenko
2026-11-19 16:45 ` Konstantin Khorenko
2026-11-19 16:48 ` Alexander Ivanov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=010701a1f43f2c65-41e39dae-00d8-4e6c-8287-299cacbee05b-000000@eu-central-1.amazonses.com \
    --to=no-reply@sashiko.virtuozzo.com \
    --cc=alexander.ivanov@virtuozzo.com \
    --cc=den@openvz.org \
    --cc=devel@openvz.org \
    --cc=vasileios.almpanis@virtuozzo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox