From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.openvz.org (mail.openvz.org [69.168.225.77]) by lore.virtuozzo.com (Postfix) with ESMTPS id 165A680031 for ; Thu, 19 Nov 2026 11:49:43 +0000 (UTC) Received: from mail.openvz.org (localhost [127.0.0.1]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6AJBmWxH021333; Thu, 19 Nov 2026 14:48:33 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AJBmWxH021333 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openvz.org; s=default; t=1795088914; bh=QM7wbklQgNPT6v51HXUDdZSAimQEmMuu+P4O31RNypA=; h=From:To:Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe; b=uwYm262Kwvy13I2UAaQ6U1HVn79aUBeJDH0l5dbRi0YzGt6LEx81mAtOB6JUDzkOe XXmY4Obnfpthov0uiwW5Z4mkrIdElRtWVXdbH1ZfBalVTMm5IQxnTysLPTJpmcacPk Ff+3+XMIA82Xy3dnMvZnR9MHOOkD0dEi8eqMxX2427+n6+M5EiimKXlqb3RxNYfoNC 4CUb6D4cfD7fd+RPP9siHoZSkaDQVXN/1plXoLQ0m8d4WR2KBBmGPgeTDK+oBBmTLW UggTLzZH7acctAzSu04HNUgWe8L1sMtrfkfGGowvo67hBRhJzJW2Ohw8+1li/u7W2+ 7W1CCdCgmVbXw== Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6AJBmVLB021324 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Thu, 19 Nov 2026 14:48:31 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AJBmVLB021324 Authentication-Results: mail.openvz.org; dkim=pass (2048-bit key) header.d=openvz.org header.i=@openvz.org header.b="oiht3ox6" Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-4ba078f26f4so10171885e9.2 for ; Thu, 19 Nov 2026 03:48:31 -0800 (PST) X-Forwarded-Encrypted: i=2; AL+hErHym/AlSt38Id4XtxQ8OYGiEtduNa0q3kGjU4rW+yYvtRkBpHDfoTEUuHq/AHlxeOwVjx2mgA==@openvz.org X-Gm-Message-State: APuU4Z9BN7Gceh64tIS/2y884BG8xUPy1zQkvl92dZdv85r6bgM/PenO ZttIg+fOy092JXwKAj5nzMa74gTL5pBTpU3hGl6oSoKSGN1wIvn2QPPKdDC6NvtvzroK8PW78mv dzzDWLxs/XM6DZGETYj8iQbJFZH4+m9eH8dm3fAtcVBJURYkXKrFFnw== X-Gm-Gg: AYBFou0+/g5mkpqCGXVTvaleSvV8/esro2Ecd0dYGLw4Bz2XefqHGiSdre0ThlQH+aq EFP6d0vy64BKnexSX43pQkFmNdnYR9/wnCnBB8Aq7Bmm2wjxBK5AvJKItmhC07PkKU0HK0Uj98A a0JJFtbr5GpjEoANm0Gyx2hHe2gi3OfhvGnjEtbmwIPuKLlgx4Pec8DrZGYBCpMlgZNWmPv5uaL d8KGKoZT5RlOrukhYKvy8ZRByBy47tr9ypq/2/OUUwb9FAO7r24Oo6OPj41lF8JxLBNohJk1Ogs gCzB7ekZ1A== X-Received: by 2002:a05:600c:5491:b0:4bb:5e6b:49e with SMTP id 5b1f17b1804b1-4bb7d9fb0e0mr111727675e9.6.1795088911230; Thu, 19 Nov 2026 03:48:31 -0800 (PST) X-Received: by 2002:a05:600c:5491:b0:4bb:5e6b:49e with SMTP id 5b1f17b1804b1-4bb7d9fb0e0mr111727095e9.6.1795088910768; Thu, 19 Nov 2026 03:48:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1795088910; cv=none; d=google.com; s=arc-20260327; b=aaphP1bZ9BMYr5LW4ifypV65vFekE5Yfr+iaxP0s0tj+++DRI2NWRruUD09ZvRINn7 W1DEBX30VoSzlfWnT5+KKglhZ0rHPpsUByLm87E61dwpwO4UL0Z4qIj3Y4wdzDjdhJsG BUw12GGpSFuKtdTxCUL4QJD/NRyxNfQlF5tVbUU5HJgepdqHwTZWiCaqD7lHKr6gBOcJ 8G34M5fHomx+yVzhvUqcQjynJGGFAgwvAFyO9GOlOpPIrVGk9Rys+rlDCd0EtDbXQWo1 2V5ALRklw4TZfrYeB2KnDMRrnsRwCurnzSMW+g/bNnt0iLs2Jju7r2OEIh9CxAGIceHX eiVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=MRS03gwVvB9DccXbjHjU7p/GxMK/oAkfw6SkN7bqDGM=; fh=NVkckqXvP1H0bCNYUCWXn+5i7xZa78ldjHu4plwBRWA=; b=jS+ywUiIssCt0rrvuGsu4NX93UUvjfLuvuekqpZKG9S4A/Unh+5SIbNuaRejtl2dcq vPpoddr9Uc+CA4WNd7StWQe/EwtKDpFCy+cfIQW97bHjFY/L1s+cjE/3oRj5ZHHGDmu2 LYJVoeG5OhWqMbfarjn+7pQ+nX0IGR9XrhDEaxUpzMdf7qwLn5NEACdB4DYVDhnhCsin cY4Bo7tTmF230YTjq5IZur5S92avJ1sT3IOiPt3oGqsRIxMl/xpwu8ng16jhQFjv8kfo hsRA9XxeFXB83gKlo2IwsK6m6OZXA31wl7MFCRqMUK+kn7AqHutGkmigUJz1Ku7LjKZO QYyg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@openvz.org header.s=google header.b=oiht3ox6; spf=softfail (google.com: domain of transitioning den@openvz.org does not designate 2a06:5b06:b600:300:989f:a206:d03d:c3d5 as permitted sender) smtp.mailfrom=den@openvz.org; dara=neutral header.i=@openvz.org Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id ffacd0b85a97d-4a8a360ba72sor483812f8f.0.2026.11.19.03.48.30 for (Google Transport Security); Thu, 19 Nov 2026 03:48:30 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning den@openvz.org does not designate 2a06:5b06:b600:300:989f:a206:d03d:c3d5 as permitted sender) client-ip=2a06:5b06:b600:300:989f:a206:d03d:c3d5; Authentication-Results: mx.google.com; dkim=pass header.i=@openvz.org header.s=google header.b=oiht3ox6; spf=softfail (google.com: domain of transitioning den@openvz.org does not designate 2a06:5b06:b600:300:989f:a206:d03d:c3d5 as permitted sender) smtp.mailfrom=den@openvz.org; dara=neutral header.i=@openvz.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openvz.org; s=google; t=1795088910; x=1795693710; darn=openvz.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=MRS03gwVvB9DccXbjHjU7p/GxMK/oAkfw6SkN7bqDGM=; b=oiht3ox6ERH8hVKXNFhBt/Bex3ecXyjAepeXlUYBOa3WwnXS8sRBLPmBO+QMUOHXha IcJGxasgHta5cQdz4mSAFp3GvJkXSm53BU9QGN7HrkZXhOqgmp1c/EESxwfW4VLJ+aEI ht4TFpNhsoL8Q9RrwnEE4A2YT30EB/eg0O8G3v4Q/5HI4FYHpaORQfNjPkDNwoSbKZaz tGRy5pclHZW5Lz2xOBJ8D+MsMoKzRfmGkkf0sE6IhKJLj4JhGaeAJG07mXrlr3fvM6k9 V2olLdqb9woMpeA+TKvecEoSz6uG40GumOewK3qS23miaVJx+7TAxadORQvXe5hoqBB2 9s1w== X-Forwarded-Encrypted: i=1; AL+hErHrB3Hye6iQXAY0RQrtq97/khcBy7N93JasLJHWPr9McpLAo4EjOinLSJUodBY9QkwZy885Pw==@openvz.org X-Received: by 2002:a5d:5e85:0:b0:48e:6f76:de9d with SMTP id ffacd0b85a97d-4a63ecb2aa8mr11453310f8f.46.1795088910290; Thu, 19 Nov 2026 03:48:30 -0800 (PST) Received: from artemis.sw.ru ([2a06:5b06:b600:300:989f:a206:d03d:c3d5]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4a6560961cfsm10426160f8f.39.2026.11.19.03.48.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Nov 2026 03:48:29 -0800 (PST) From: "Denis V. Lunev" To: alexander.ivanov@virtuozzo.com, vasileios.almpanis@virtuozzo.com Date: Thu, 19 Nov 2026 12:48:28 +0100 Message-ID: <20261119114828.766329-1-den@openvz.org> X-Mailer: git-send-email 2.55.0 MIME-Version: 1.0 X-OZ-Fwd: true Cc: devel@openvz.org Subject: [Devel] [PATCH hci-8.2] dm-qcow2: log the image, offset and ext_l2 word of an invalid entry X-BeenThere: devel@openvz.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: OpenVZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: devel-bounces@openvz.org Errors-To: devel-bounces@openvz.org From: Denis V. Lunev parse_l2() reports an ext_l2 entry with allocated subclusters and no cluster by l2->index_in_page and the page id. On ext_l2 images index_in_page counts u64 words, two per entry, so the number it calls the entry is twice the entry's index within the page. The ext_l2 word that makes the entry invalid is not shown, nor is the image of a chain the entry is in. Print the image number as the table status does, the ext_l2 word with both bitmaps, and the file offset of the entry, which can be looked up in that image as is. https://virtuozzo.atlassian.net/browse/VSTOR-156041 Feature: dm-qcow2: block device over QCOW2 files driver Signed-off-by: Denis V. Lunev --- Applies on top of the series "dm-qcow2: fix the revert of a failed L2 writeback". drivers/md/dm-qcow2-map.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/md/dm-qcow2-map.c b/drivers/md/dm-qcow2-map.c index 89e569d09133..a44e41c512df 100644 --- a/drivers/md/dm-qcow2-map.c +++ b/drivers/md/dm-qcow2-map.c @@ -1980,9 +1980,11 @@ static loff_t parse_l2(struct qcow2 *qcow2, struct qcow2_map *map, if (WARN_ON_ONCE(all_zeroes || (ext_l2 & (ext_l2 >> 32)))) goto out; if (!pos && (u32)ext_l2) { - pr_err_ratelimited(QCOW2_FMT("invalid ext_l2 entry %u in page %llu"), + pr_err_ratelimited(QCOW2_FMT("img %u: ext_l2 %#llx at %#llx, no cluster"), qcow2_device_name(qcow2->tgt->ti), - l2->index_in_page, l2->md->id); + qcow2->img_id + 1, ext_l2, + (l2->md->id << PAGE_SHIFT) + + l2->index_in_page * sizeof(u64)); goto out; } -- 2.55.0 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel