From: Konstantin Khorenko <khorenko@virtuozzo.com>
To: "Denis V. Lunev" <den@openvz.org>
Cc: devel@openvz.org
Subject: Re: [Devel] [PATCH hci-8.2] dm-qcow2: log the image, offset and ext_l2 word of an invalid entry
Date: Thu, 19 Nov 2026 13:17:09 +0100 [thread overview]
Message-ID: <179509062921.273274.8123321947564963387.b4-review@b4> (raw)
In-Reply-To: <20261119114828.766329-1-den@openvz.org>
I won't apply this version, please send v2 with the changes below.
- Print qcow2->img_id as is (or the file with %pD), not img_id + 1.
- Say whose offset it is: the entry starts there, the ext_l2 word is
8 bytes later.
- Keep "invalid" in the line.
- Drop "as the table status does" from the message.
On Thu, 19 Nov 2026 12:48:28 +0100, Denis V. Lunev wrote:
> + pr_err_ratelimited(QCOW2_FMT("img %u: ext_l2 %#llx at %#llx, no cluster"),
> qcow2_device_name(qcow2->tgt->ti),
> + qcow2->img_id + 1, ext_l2,
img_id is 0-based, and get_img_name, get_img_fd and
set_fault_injection take it as is. The table status prints img_id + 1
of the top image only, which is the number of images. So in a chain of
two an entry in the base image is logged as "img 1", and
"get_img_name 1" returns the top delta.
"ext_l2 %#llx at %#llx" reads as the offset of the ext_l2 word, while
the offset is of the L2 entry; parse_l2() reads ext_l2 from
index_in_page + 1. And an operator who got -EIO greps for "invalid".
As 4/4 of "dm-qcow2: fix the revert of a failed L2 writeback" is not
committed yet, I will fold v2 into it when applying that series.
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
prev parent reply other threads:[~2026-11-19 12:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 11:48 Denis V. Lunev
2026-11-19 12:17 ` Konstantin Khorenko [this message]
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=179509062921.273274.8123321947564963387.b4-review@b4 \
--to=khorenko@virtuozzo.com \
--cc=den@openvz.org \
--cc=devel@openvz.org \
/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