From nobody Fri May 3 00:55:30 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=openvz.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1650287188492262.9157183218799; Mon, 18 Apr 2022 06:06:28 -0700 (PDT) Received: from localhost ([::1]:35680 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngR5F-0003e4-9Z for importer@patchew.org; Mon, 18 Apr 2022 09:06:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35050) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngPCY-0007MU-4m for qemu-devel@nongnu.org; Mon, 18 Apr 2022 07:05:50 -0400 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]:45008) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngPCW-0005K1-FF for qemu-devel@nongnu.org; Mon, 18 Apr 2022 07:05:49 -0400 Received: by mail-lf1-x129.google.com with SMTP id w19so23599736lfu.11 for ; Mon, 18 Apr 2022 04:05:46 -0700 (PDT) Received: from localhost.localdomain ([93.175.7.89]) by smtp.gmail.com with ESMTPSA id q21-20020a194315000000b00471083815c8sm580041lfa.168.2022.04.18.04.05.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Apr 2022 04:05:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openvz-org.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=btwyOXkmeAqfb3ol9kva0PB9oKAgCBN5T65eeafyCTI=; b=MWqXZPG70Q1jtx/N58yVldmXZgOQYoZbk1xlOqGIfEal9OdEeOQviVXz62GGSx0jdc EJb3OJZbF7uTsm1/O8mr/HWGJet6BQ0JJtOwBle6DkZ1DXmGj+uUlDncohsQYg9bGy0e GAncasS3/SouDGvUhFQzc/sVsRmXSc3EGj2Dy/+y0BH3fsXpnbMiyUD0TWip5olfhJJU MAs34a1NFAdKNJPryiwpaxb80yzdRWdWB5LpbPuyS64fASIb9J080VNtjOEuygo0+xUf xeGE3IuxE/QOZUUHwkXm62vxzKVJlAhwmaOF1l+7498rBJBxuurwUi315mDZvz3O4lgG EkVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=btwyOXkmeAqfb3ol9kva0PB9oKAgCBN5T65eeafyCTI=; b=FCLYYw04+xZuP0tTQY32AhcQ7zl1fa8J7lv3H0A3djXigg0HnxS7nSpM7sCSp6PeeJ BB5aysTQuwekRAQP4Njn9iphqbowtNTJd47AaPPn800v6CeaiUp4b+zGZHOgGB/NnJ6H ftamosS7fErUDl5EgJReH2iWEuX/Vyho/T+xPNaE9IkZ1RmQGlp9/XR5adlH5xM1i2H8 i5yq4vgvFhzIvai844tkuusOIuWdpCzRgYeANaxdI//GcWbz4k0j/ipQbrEySsWaKZ2/ gymBXaD1B1sqfnqfs0a7LWiRji4ZxLpkMysUc52Z6F0Ju1jiXPDpkfk9OaYrxzO6Oauz 6CEg== X-Gm-Message-State: AOAM533CVgwe4v0wCtaYpTLDq0ECC1h9a4zm6EX7SV+vbYEX80ax9Qle FsFf8nvgyc/LuvZjZny/6DXrTMcxll7r X-Google-Smtp-Source: ABdhPJxLl2avtGBBZtbmfrmaXYu6g5g6UvJ4906g8pVukQp5AsceBBqZsYYyUZhN82tmPKE2+pa/kg== X-Received: by 2002:ac2:5e21:0:b0:46b:b663:5539 with SMTP id o1-20020ac25e21000000b0046bb6635539mr7614999lfg.119.1650279944998; Mon, 18 Apr 2022 04:05:44 -0700 (PDT) From: Natalia Kuzmina To: qemu-devel@nongnu.org, qemu-block@nongnu.org Subject: [PATCH 1/3] qemu-img check: fixing duplicated clusters for parallels format Date: Mon, 18 Apr 2022 14:04:28 +0300 Message-Id: <20220418110430.319911-2-natalia.kuzmina@openvz.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220418110430.319911-1-natalia.kuzmina@openvz.org> References: <20220418110430.319911-1-natalia.kuzmina@openvz.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::129; envelope-from=natalia.kuzmina@openvz.org; helo=mail-lf1-x129.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 18 Apr 2022 09:01:08 -0400 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kwolf@redhat.com, v.sementsov-og@mail.ru, Natalia Kuzmina , hreitz@redhat.com, stefanha@redhat.com, den@openvz.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1650287191079100001 Content-Type: text/plain; charset="utf-8" Let qemu-img check fix corruption in the image file: two guest memory areas refer to the same host memory area (duplicated offsets in BAT). Signed-off-by: Natalia Kuzmina --- block/parallels.c | 66 +++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 64 insertions(+), 2 deletions(-) diff --git a/block/parallels.c b/block/parallels.c index 6ebad2a2bb..6a73933d45 100644 --- a/block/parallels.c +++ b/block/parallels.c @@ -418,9 +418,11 @@ static int coroutine_fn parallels_co_check(BlockDriver= State *bs, BdrvCheckMode fix) { BDRVParallelsState *s =3D bs->opaque; - int64_t size, prev_off, high_off; + int64_t size, prev_off, high_off, idx_host, sector_num; int ret; uint32_t i; + int64_t *buf; + int *reversed_bat; bool flush_bat =3D false; =20 size =3D bdrv_getlength(bs->file->bs); @@ -442,8 +444,14 @@ static int coroutine_fn parallels_co_check(BlockDriver= State *bs, } =20 res->bfi.total_clusters =3D s->bat_size; + res->bfi.allocated_clusters =3D 0; res->bfi.compressed_clusters =3D 0; /* compression is not supported */ =20 + reversed_bat =3D g_malloc(s->bat_size * sizeof(int)); + for (i =3D 0; i < s->bat_size; i++) { + reversed_bat[i] =3D -1; + } + high_off =3D 0; prev_off =3D 0; for (i =3D 0; i < s->bat_size; i++) { @@ -453,6 +461,59 @@ static int coroutine_fn parallels_co_check(BlockDriver= State *bs, continue; } =20 + /* checking bat entry uniqueness */ + idx_host =3D (off - ((s->header->data_off) << BDRV_SECTOR_BITS)) + / (s->cluster_size); + if (reversed_bat[idx_host] !=3D -1) { /* duplicated cluster */ + fprintf(stderr, "%s cluster %u is duplicated (with cluster %u)= \n", + fix & BDRV_FIX_ERRORS ? "Repairing" : "ERROR", + i, reversed_bat[idx_host]); + res->corruptions++; + res->bfi.allocated_clusters--; /* not to count this cluster tw= ice */ + if (fix & BDRV_FIX_ERRORS) { + /* copy data to new cluster */ + sector_num =3D bat2sect(s, reversed_bat[idx_host]); + buf =3D g_malloc(s->cluster_size); + ret =3D bdrv_pread(bs->file, sector_num << BDRV_SECTOR_BIT= S, + buf, s->cluster_size); + if (ret < 0) { + res->check_errors++; + g_free(buf); + goto out; + } + + ret =3D bdrv_pwrite(bs->file, s->data_end << BDRV_SECTOR_B= ITS, + buf, s->cluster_size); + if (ret < 0) { + res->check_errors++; + g_free(buf); + goto out; + } + + s->bat_bitmap[i] =3D cpu_to_le32(s->data_end / s->off_mult= iplier); + s->data_end +=3D s->tracks; + bitmap_set(s->bat_dirty_bmap, + bat_entry_off(i) / s->bat_dirty_block, 1); + g_free(buf); + + res->corruptions_fixed++; + flush_bat =3D true; + + /* these values are invalid after repairing */ + off =3D bat2sect(s, i) << BDRV_SECTOR_BITS; + idx_host =3D (off - ((s->header->data_off) << BDRV_SECTOR_= BITS)) + / (s->cluster_size); + size =3D bdrv_getlength(bs->file->bs); + if (size < 0) { + res->check_errors++; + ret =3D size; + goto out; + } + } + } + + reversed_bat[idx_host] =3D i; + /* cluster outside the image */ if (off > size) { fprintf(stderr, "%s cluster %u is outside image\n", @@ -472,7 +533,7 @@ static int coroutine_fn parallels_co_check(BlockDriverS= tate *bs, high_off =3D off; } =20 - if (prev_off !=3D 0 && (prev_off + s->cluster_size) !=3D off) { + if (prev_off !=3D 0 && (off - prev_off) % s->cluster_size !=3D 0) { res->bfi.fragmented_clusters++; } prev_off =3D off; @@ -514,6 +575,7 @@ static int coroutine_fn parallels_co_check(BlockDriverS= tate *bs, } =20 out: + g_free(reversed_bat); qemu_co_mutex_unlock(&s->lock); return ret; } --=20 2.25.1 From nobody Fri May 3 00:55:30 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=openvz.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1650286998980464.19131999848526; Mon, 18 Apr 2022 06:03:18 -0700 (PDT) Received: from localhost ([::1]:60744 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngR2D-0001Id-SB for importer@patchew.org; Mon, 18 Apr 2022 09:03:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35266) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngPDS-0007U7-2f for qemu-devel@nongnu.org; Mon, 18 Apr 2022 07:06:46 -0400 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]:33342) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngPDL-0005XG-Ro for qemu-devel@nongnu.org; Mon, 18 Apr 2022 07:06:44 -0400 Received: by mail-lf1-x133.google.com with SMTP id bu29so23706141lfb.0 for ; Mon, 18 Apr 2022 04:06:34 -0700 (PDT) Received: from localhost.localdomain ([93.175.7.89]) by smtp.gmail.com with ESMTPSA id q21-20020a194315000000b00471083815c8sm580041lfa.168.2022.04.18.04.06.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Apr 2022 04:06:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openvz-org.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kjSLGqjWh0PuAgWNTDMEuCzgKCJdcagFaDGKk4VwhNY=; b=Ki6+ebtwx7j0N7TxMTS2Od9r4S1lACC1h0trYyI/reB1PpKMwlIlEjAn0Hg1sqPQCv 7ZOnTt60n75b8oefvVrbgLIRblseqLeBqjskQcbxqb5zQhapuEJYw9Wj+bMkbLL2gW66 kYUSBNL2GG5929t0k9mAl6rLDDc+td/Er3g6G09gBsJsc9di2FNDiDS6mpE80MhqFIR7 B2rlh/9Ix8feLpIfxLFBFCdz7P5nI1LW0+DNSg7345+i9J1TAKgsM7NtVEws2MsfqV+F OaSqDXjITMtLtCVvU1amhMtMxeCuBVNsOZ+VNJB+kNfoBPBk9IIO4FpsR32hEAmTRG4Q lWjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kjSLGqjWh0PuAgWNTDMEuCzgKCJdcagFaDGKk4VwhNY=; b=4vAoSg0mwPIQPMJoNPHOW2x0HD0OQohpVkcqMWDEM7U5j0Fyo1E/2rCjtew5pJz00t WOQIjFRA+0E4xsCUy98xcoaSK1UO3ES1lC3QQK7e6ZwWpklAyyWiiNfMkTE3rO46wRJ9 Qix7mw+ysb+cDXBDNmz0tglZTFjTsItmUu/SKtTEps5B/TiqT05JxR/lg8058qff69bL JRjl0h2x+u57vqwyw6/oi5xeCE369WlCZiOLoElk3v8zdtMUHFjaNkC4AQQRvUlCcqJi hWoi5CZNkEztsy97/dt3O+SSXMQynrdxlJiaLh8zAJs1tjt0kLkuY361mOpZjeMvLmrU cLQQ== X-Gm-Message-State: AOAM5314tgSpRhr9wJxdI3ovNxMgM7pbP3nkHI7ybXUbvsnlObpIl8z0 MErpVOIb8Rzeq+R8K376Zj7RdgKx2bEU X-Google-Smtp-Source: ABdhPJxeCEZbVr7OHrAtKjWktwBEgfomY1TExoDSsU2VaK2f7RVUV2kEz6NlmNI4HwgbJCtd3y4MKg== X-Received: by 2002:a05:6512:3f04:b0:44a:8de0:15a5 with SMTP id y4-20020a0565123f0400b0044a8de015a5mr7688801lfa.278.1650279992594; Mon, 18 Apr 2022 04:06:32 -0700 (PDT) From: Natalia Kuzmina To: qemu-devel@nongnu.org, qemu-block@nongnu.org Subject: [PATCH 2/3] iotests: 314 test on duplicated clusters (parallels format) Date: Mon, 18 Apr 2022 14:04:29 +0300 Message-Id: <20220418110430.319911-3-natalia.kuzmina@openvz.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220418110430.319911-1-natalia.kuzmina@openvz.org> References: <20220418110430.319911-1-natalia.kuzmina@openvz.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::133; envelope-from=natalia.kuzmina@openvz.org; helo=mail-lf1-x133.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 18 Apr 2022 09:01:08 -0400 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kwolf@redhat.com, v.sementsov-og@mail.ru, Natalia Kuzmina , hreitz@redhat.com, stefanha@redhat.com, den@openvz.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1650287000737100001 Content-Type: text/plain; charset="utf-8" Reading from duplicated offset and from original offset returns the same data. After repairing changing either of these blocks of data does not affect another one. Signed-off-by: Natalia Kuzmina Reviewed-by: Stefan Hajnoczi --- tests/qemu-iotests/314 | 88 ++++++++++++++++++ tests/qemu-iotests/314.out | 36 +++++++ .../parallels-2-duplicated-cluster.bz2 | Bin 0 -> 148 bytes 3 files changed, 124 insertions(+) create mode 100755 tests/qemu-iotests/314 create mode 100644 tests/qemu-iotests/314.out create mode 100644 tests/qemu-iotests/sample_images/parallels-2-duplicated= -cluster.bz2 diff --git a/tests/qemu-iotests/314 b/tests/qemu-iotests/314 new file mode 100755 index 0000000000..167b75d1af --- /dev/null +++ b/tests/qemu-iotests/314 @@ -0,0 +1,88 @@ +#!/usr/bin/env bash +# group: rw auto quick +# +# Test qemu-img check on duplicated clusters +# +# Copyright (C) 2009 Red Hat, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# + +# creator +owner=3Dnatalia.kuzmina@openvz.org + +seq=3D`basename $0` +echo "QA output created by $seq" + +status=3D1 # failure is the default! + +_cleanup() +{ + _cleanup_test_img +} +trap "_cleanup; exit \$status" 0 1 2 3 15 + +# get standard environment, filters and checks +. ./common.rc +. ./common.filter +. ./common.pattern + +_supported_fmt parallels +_supported_proto file +_supported_os Linux + +echo +echo "using sample corrupted image" +echo +_use_sample_img parallels-2-duplicated-cluster.bz2 + +CLUSTER_SIZE=3D65536 + +#read one cluster from original offset +$QEMU_IO -c "read -P 0x11 0 $CLUSTER_SIZE" "$TEST_IMG" | \ + _filter_qemu_io +#read from duplicated offset (data must be the same as on original offset) +$QEMU_IO -c "read -P 0x11 $((4 * CLUSTER_SIZE)) $CLUSTER_SIZE" "$TEST_IMG"= | \ + _filter_qemu_io +#change data from original offset +$QEMU_IO -c "write -P 0x55 0 $CLUSTER_SIZE" "$TEST_IMG" | \ + _filter_qemu_io +#read from duplicated offset (data must be the same as on original offset) +$QEMU_IO -c "read -P 0x55 $((4 * CLUSTER_SIZE)) $CLUSTER_SIZE" "$TEST_IMG"= | \ + _filter_qemu_io +echo +echo "check and repair the image"=20 +echo +_check_test_img -r all +echo + +#read one cluster from original offset +$QEMU_IO -c "read -P 0x55 0 $CLUSTER_SIZE" "$TEST_IMG" | \ + _filter_qemu_io=20 +#read copied data from new offset +$QEMU_IO -c "read -P 0x55 $((4 * CLUSTER_SIZE)) $CLUSTER_SIZE" "$TEST_IMG"= | \ + _filter_qemu_io=20 +#change data from original offset +$QEMU_IO -c "write -P 0x11 0 $CLUSTER_SIZE" "$TEST_IMG" | \ + _filter_qemu_io +#read from new offset (fail, now this data was left unchanged) +$QEMU_IO -c "read -P 0x11 $((4 * CLUSTER_SIZE)) $CLUSTER_SIZE" "$TEST_IMG"= | \ + _filter_qemu_io=20 + =20 +echo +echo +# success, all done +echo "*** done" +rm -f $seq.full +status=3D0 diff --git a/tests/qemu-iotests/314.out b/tests/qemu-iotests/314.out new file mode 100644 index 0000000000..efb138e6a1 --- /dev/null +++ b/tests/qemu-iotests/314.out @@ -0,0 +1,36 @@ +QA output created by 314 + +using sample corrupted image + +read 65536/65536 bytes at offset 0 +64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +read 65536/65536 bytes at offset 262144 +64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +wrote 65536/65536 bytes at offset 0 +64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +read 65536/65536 bytes at offset 262144 +64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) + +check and repair the image + +Repairing cluster 4 is duplicated (with cluster 0) +The following inconsistencies were found and repaired: + + 0 leaked clusters + 1 corruptions + +Double checking the fixed image now... +No errors were found on the image. + +read 65536/65536 bytes at offset 0 +64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +read 65536/65536 bytes at offset 262144 +64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +wrote 65536/65536 bytes at offset 0 +64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +Pattern verification failed at offset 262144, 65536 bytes +read 65536/65536 bytes at offset 262144 +64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) + + +*** done diff --git a/tests/qemu-iotests/sample_images/parallels-2-duplicated-cluste= r.bz2 b/tests/qemu-iotests/sample_images/parallels-2-duplicated-cluster.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..ee8f0149b5ecffc4fdc5e2c0cf4= 5b731610378af GIT binary patch literal 148 zcmZ>Y%CIzaj8qGboOfsS0tPO%`U`(O5*Pv)I2hO&I2yDPt~od`068263_Exd7-leV zwiz(^Ft8k0sa3TsBZG0}Vv}35zt?O%VET5A+3Q2o4%bdpm~pLC^&`WR2CW6$VGH;& vm{u|@;OhXBE0|U>d|v){U)AOQJ)h70iu-<&;S?CYW~db}a Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1650287297796493.72951645634635; Mon, 18 Apr 2022 06:08:17 -0700 (PDT) Received: from localhost ([::1]:38144 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngR72-0005Ng-DU for importer@patchew.org; Mon, 18 Apr 2022 09:08:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35276) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngPDT-0007Uh-SF for qemu-devel@nongnu.org; Mon, 18 Apr 2022 07:06:49 -0400 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]:41912) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngPDR-0005Xu-45 for qemu-devel@nongnu.org; Mon, 18 Apr 2022 07:06:47 -0400 Received: by mail-lf1-x12d.google.com with SMTP id u7so23622376lfs.8 for ; Mon, 18 Apr 2022 04:06:37 -0700 (PDT) Received: from localhost.localdomain ([93.175.7.89]) by smtp.gmail.com with ESMTPSA id q21-20020a194315000000b00471083815c8sm580041lfa.168.2022.04.18.04.06.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Apr 2022 04:06:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openvz-org.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=c5WuC7LIBEPpZc/Qm2EzCxMC4U+NSyuBs+KpxPnHW7U=; b=06ALGvRb2P0hAb3x7A9F40Xm3SldNln3gsBJ1U7ZEWPkZRLK86D05xGLZ868p8Y9RV 3RqIITTh3DOYgDAgf75Frmrjh0bPvmEIKcHNuWA3PA078A9JkX2dhLnBTwJYBy6EPbdI sz5eOXB0M4amdvxfhJKigOzQwthEppfj2JkBsKo1T6A1C/iDIixkhhVP8zwfAkugv78x HXmsuZlgW5OkKXqELA5P1vPYnt5AJQnq4gwiksFO3mCU06isbKuZP2dOu0ITDgdwn6A4 idli3kWo5Df9S4G/FcuqPoemeovc8a2pH+1ixqgsIAn0EPCoyXsVMc8fw6Im79XA/Db2 ZOdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=c5WuC7LIBEPpZc/Qm2EzCxMC4U+NSyuBs+KpxPnHW7U=; b=oSGpzRyMPXMyK77ZiaaP+tvdVgO+E631RkKtSgsKBxL4v2aLB+edsM+ByfL/ux9+2Y I1Rb/c2pU9XF5kS6CPEPAWfJBlHTrNm2/WD5NZVGR6yFV4wUqOYauqpAOoxLbbPivohA DaQ/SetOGq/7NqjeDu//zQk4oHLFVS9zl2aYlH2U6dGwmcDcMkzMTSX7u7ijayuZqJuV BoNu+ZpXis4l2rmF+GomR6nC4E+FnDWem/zKFpAvqpeiVheLdKSFUpYSmAxc9mG/8Ro2 HnCZAUmOl1zASluoL8/AaZ1Ol4H8BGwv/RvmQw0+NXu7b8KKddUCU1YsNwXnuMob/DKd JRCA== X-Gm-Message-State: AOAM531U/YreHFxJZZq1xLN4Eafn+pbjkJ0q3svllJaeQOflYiQCkHsF c5Dgy9V5R6N9Kf2XyivdQusrs9FpyMOu X-Google-Smtp-Source: ABdhPJymgFbDcshJkby9omCyidZVpqX5d1VFINV31zs2Js4duWFCzu2zUA3MlmkZ6Q+jGaMAQk17fw== X-Received: by 2002:a05:6512:11c5:b0:46f:b725:d97b with SMTP id h5-20020a05651211c500b0046fb725d97bmr7728536lfr.394.1650279996501; Mon, 18 Apr 2022 04:06:36 -0700 (PDT) From: Natalia Kuzmina To: qemu-devel@nongnu.org, qemu-block@nongnu.org Subject: [PATCH 3/3] docs: parallels image format supports consistency checks Date: Mon, 18 Apr 2022 14:04:30 +0300 Message-Id: <20220418110430.319911-4-natalia.kuzmina@openvz.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220418110430.319911-1-natalia.kuzmina@openvz.org> References: <20220418110430.319911-1-natalia.kuzmina@openvz.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::12d; envelope-from=natalia.kuzmina@openvz.org; helo=mail-lf1-x12d.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 18 Apr 2022 09:01:08 -0400 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kwolf@redhat.com, v.sementsov-og@mail.ru, Natalia Kuzmina , hreitz@redhat.com, stefanha@redhat.com, den@openvz.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1650287299925100001 Content-Type: text/plain; charset="utf-8" Add parallels to list of formats that support consistency checks by qemu-img check. Signed-off-by: Natalia Kuzmina --- docs/tools/qemu-img.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tools/qemu-img.rst b/docs/tools/qemu-img.rst index 8885ea11cf..14e98df34f 100644 --- a/docs/tools/qemu-img.rst +++ b/docs/tools/qemu-img.rst @@ -332,7 +332,7 @@ Command description: ``-r all`` fixes all kinds of errors, with a higher risk of choosing the wrong fix or hiding corruption that has already occurred. =20 - Only the formats ``qcow2``, ``qed`` and ``vdi`` support + Only the formats ``qcow2``, ``qed``, ``vdi`` and ``parallels`` support consistency checks. =20 In case the image does not have any inconsistencies, check exits with ``= 0``. --=20 2.25.1