From nobody Mon Feb 9 10:30:04 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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; arc=pass (i=1dmarc=pass fromdomain=virtuozzo.com); dmarc=pass(p=quarantine dis=none) header.from=virtuozzo.com ARC-Seal: i=2; a=rsa-sha256; t=1605272778; cv=pass; d=zohomail.com; s=zohoarc; b=eDuFdpXYWEwyeji25CfubwYnpsRJ8JBdAGEXBdx9677DUIFVLw0vuQcmifdtzWxYLqrdxtkvynqykO+uoNR9CxaywD3YdyDLEkF20naahKQEt+a+2ZNfeaZuYb+HpLRa7MBX28jnmIIR+s8xt9/UA7z9+dnsCx/wFSTQNECeVFI= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1605272778; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=8gf1noyfbEi9Ep3nQc5Mo6S3uJTqsBrknytwfEZPFJU=; b=SwdvC7jIbKXNKamobDiSsj79u7pMASnhrf2sdLTwb19Tlqq8C7HleRG/Kan0ksZwY9yhT0UJyKBqwBoq69rBnNlEHMjEjyVVvuK2fV2H2uZoA2ulTAK9oZBJ9volsExatv4ITLE7+BP67FUlENslL163XlUJ0bRrSvGnV7xIe34= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass; 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; arc=pass (i=1dmarc=pass fromdomain=virtuozzo.com); dmarc=pass header.from= (p=quarantine dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1605272778799158.09547911650407; Fri, 13 Nov 2020 05:06:18 -0800 (PST) Received: from localhost ([::1]:41468 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kdYmP-0002zX-GW for importer@patchew.org; Fri, 13 Nov 2020 08:06:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdYgN-0006en-MO; Fri, 13 Nov 2020 08:00:03 -0500 Received: from mail-eopbgr60133.outbound.protection.outlook.com ([40.107.6.133]:5175 helo=EUR04-DB3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdYgK-0004NL-Q0; Fri, 13 Nov 2020 08:00:03 -0500 Received: from AM7PR08MB5494.eurprd08.prod.outlook.com (2603:10a6:20b:dc::15) by AS8PR08MB5877.eurprd08.prod.outlook.com (2603:10a6:20b:291::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.21; Fri, 13 Nov 2020 12:59:07 +0000 Received: from AM7PR08MB5494.eurprd08.prod.outlook.com ([fe80::fd02:1330:f620:1243]) by AM7PR08MB5494.eurprd08.prod.outlook.com ([fe80::fd02:1330:f620:1243%9]) with mapi id 15.20.3499.032; Fri, 13 Nov 2020 12:59:07 +0000 Received: from kvm.sw.ru (185.215.60.71) by AM4PR0902CA0003.eurprd09.prod.outlook.com (2603:10a6:200:9b::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.21 via Frontend Transport; Fri, 13 Nov 2020 12:59:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Fmf3E0dsHtgFQlO+U9BPdNr+M1/dQX2GOSrsFOZyI+bU6oucnLUihcWvHaKRkx9cMkDFAW+u5DLl92Nkoxy1WcP2TR0mZYM4RD9vSzWOOR6aYO4swDYxi6ec9HQKkNOZcGeyeqmGP4cZ5bRGYI9L3RiruSTErR7is62tIbQHfxHtT5RxltukHFqAWhKAaK8Gr+adsPkn2+cyt5fOw29u9w+kVHBqFFeMQPM6Ex2YqBIK7rOQuZVp/4vFFfLRh2RHF+38N6OC3y8hliGc544ZqBfOEo0weoQsQPyS1RMXQqyAolZUqoTplYZNO1yCO6X1Rt9V7xg4wrCrLz01rWB/Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8gf1noyfbEi9Ep3nQc5Mo6S3uJTqsBrknytwfEZPFJU=; b=ZTCCk3v/cnEmLgsUv2SN8i2VUGftvUVXf1BpXaok1Ut5JC2//XbX4YN4g6wCqt5J882+JyodOl33CrB7KlZbqYuywvPSygguBPkdOVc1uLuHvxq6AvF0BrhMtklzL7NKiMw+JwI5YSl6mZQIxbSLMwMZCbyKgmsZSgsskNG04s+HzcG0jer4UiS1G/U+7uYHq93M16CxG4USB8jYylQaQbGwU8X28sFhUSdz3UH9XZqx9sPq9NDCUhGOLCEgh3btW9KjQFOhM+4q3A9NRlpMSK7wT8bVOXBWL9uys+D4+x2TBEsuMYvPaBtYWZsaZ6KlyZ4532jTfbmfCFYIVdenzQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=virtuozzo.com; dmarc=pass action=none header.from=virtuozzo.com; dkim=pass header.d=virtuozzo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8gf1noyfbEi9Ep3nQc5Mo6S3uJTqsBrknytwfEZPFJU=; b=XsLBh5HhPhZDop9k3mL2Sy03peyBpLXRVivshll/UOhr8x708fMoQ5WsLnEctOqUquxJPYLy8lD0fnsUSJcoPzWnoWLMqs7w/A0FkSaTFUoZxHS0v7iaf9QHNg0Sp3aaMc7vp2bgNk3LKCqhNvLAYODLkM2/r2q1OLv0evAxJCQ= Authentication-Results: nongnu.org; dkim=none (message not signed) header.d=none;nongnu.org; dmarc=none action=none header.from=virtuozzo.com; From: Vladimir Sementsov-Ogievskiy To: qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, den@openvz.org, vsementsov@virtuozzo.com, dautovri@hpcdlab.com Subject: [PATCH 5/5] iotests: add test for prl-xml format Date: Fri, 13 Nov 2020 15:58:48 +0300 Message-Id: <20201113125848.20498-6-vsementsov@virtuozzo.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20201113125848.20498-1-vsementsov@virtuozzo.com> References: <20201113125848.20498-1-vsementsov@virtuozzo.com> Content-Transfer-Encoding: quoted-printable X-Originating-IP: [185.215.60.71] X-ClientProxiedBy: AM4PR0902CA0003.eurprd09.prod.outlook.com (2603:10a6:200:9b::13) To AM7PR08MB5494.eurprd08.prod.outlook.com (2603:10a6:20b:dc::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8bcbc170-efbd-4f11-9927-08d887d3e7c9 X-MS-TrafficTypeDiagnostic: AS8PR08MB5877: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8882; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: V4qAZcwel2PLMHbR/Vdph0QwZFp5PYVx04mPOJCwNLtBlG7irURmi2ZSW3nEv/xLCY/5yXOjAki/LIsVcxmwUcupVGalyAUxhVeaGT/eDMtfZvEDpGx2JlE7kRJl7sCuWzHrKwTnbiXAgRow9D0UK4EX1g8is6tb2+C0YFEEHApdNbTDS6v0t8+e02Ze/xwQVaz8yfHhGVfTovxEoiVoDHBcPsMO+z524nx5hyppEdennogfMFf610m/vy+5W00MalbIL8reXF6WbIun9GU3h4kY7x5OjsKhIS8NMbeDooS4+Vc/kT5EEoH0KNLTw2a3eo2pUy1oGd5Me4PVw18NuCaoE5i3KiftaErExmBNUUeZpnyHDslLZE9521o4hbv/7LS0bciHfh6m0Vky2IpS1zuHNQNVum/NSlyT59b16Mj9LHtZhU65hAwM0ZLWzQmLul5Zd0C+/MATwAh6t/3fcTW0pftMXkF9jP6My188cTw= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM7PR08MB5494.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(39840400004)(346002)(396003)(366004)(376002)(66476007)(6916009)(26005)(83380400001)(30864003)(8676002)(478600001)(52116002)(6506007)(86362001)(956004)(2616005)(66556008)(8936002)(1076003)(5660300002)(316002)(66946007)(16526019)(2906002)(186003)(6666004)(4326008)(6486002)(19627235002)(36756003)(6512007)(2004002)(21314003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: Y2zGmGBEGNrPTufEhvRPr+hgDBz/ApasquKmnt40TJNP0y6nmULsXeyavEd6ZshCzE5WfeT0w/Mmz2SafV3Rh1iLXvGb/6+94THzY/4jHPDIma2jxv0h65OLfz8KV/F0kl3hyLSCDs03aMtNs8QnUccq0awxRRNHy6NVhd0MSE3/bZ4CevVxtOMI8XHEQekBCSOgvosyJqdQ5KagbZTrwBXMfUPD0oVQQDWL1FdBOHsbbeCE7UivPXJ3QoiKxpyqchiwOfJnyKXjR8rWStXb/C00YbU417ZhwPbyQ4w00ed0QaSl8sReNye3dNfN+VJl5BsJJALsFLAjJ9xg+avSm68RqCvq/5ja7cvfDX7kjTYGDyL5sQUK4eOd+nqoR/kkizxSaAhauMVvDBykNoTUL2IKkhJJLYcCouXkTBnGl95sPXa5QlSwhXRMxYxPVvZ2J31Zd5iBQnzcGv3oV0hUk08EkpD+8M5m5DmX1GdP1sTR+xo97ZiMUWtfqPSBk271gMpyWpmoBd/R0X+WhjXoWFHNEFV2pQGMGYc7bjykt+fRQ7/MdKgvuQrANg/v6VdOct/s2vWUSv0EghaM7cFjNpnupQ+Phxjf5Qhqd6gMGzH6ElsNStHlXvUwUcFWA2Gg+LBBaltuDIA0fAxdHk2CQQ== X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8bcbc170-efbd-4f11-9927-08d887d3e7c9 X-MS-Exchange-CrossTenant-AuthSource: AM7PR08MB5494.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Nov 2020 12:59:07.1514 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: AnpmS0Dtd++emswUZlILLQ8epXfKtExIljuyBcYmdsWKJc5ZrYTMRl0xSiBvw+QGCKHXnKoYC0oFVqWlV12gTtzErF7zYsXEkuPaiiL6hT8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB5877 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=40.107.6.133; envelope-from=vsementsov@virtuozzo.com; helo=EUR04-DB3-obe.outbound.protection.outlook.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/13 07:59:54 X-ACL-Warn: Detected OS = Windows NT kernel [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @virtuozzo.com) Content-Type: text/plain; charset="utf-8" From: Edgar Kaziakhmedov Signed-off-by: Edgar Kaziakhmedov Reviewed-by: Vladimir Sementsov-Ogievskiy --- tests/qemu-iotests/164 | 98 ++++++++++++++++++ tests/qemu-iotests/164.out | 54 ++++++++++ tests/qemu-iotests/check | 7 ++ tests/qemu-iotests/group | 1 + .../prl-xml/DiskDescriptor.xml.bz2 | Bin 0 -> 457 bytes .../sample_images/prl-xml/Snapshots.xml.bz2 | Bin 0 -> 307 bytes ...aabe3-6958-40ff-92a7-860e329aab41}.hds.bz2 | Bin 0 -> 93 bytes ...476cf-d62e-45d1-b355-86feca91376e}.hds.bz2 | Bin 0 -> 93 bytes 8 files changed, 160 insertions(+) create mode 100755 tests/qemu-iotests/164 create mode 100644 tests/qemu-iotests/164.out create mode 100644 tests/qemu-iotests/sample_images/prl-xml/DiskDescriptor= .xml.bz2 create mode 100644 tests/qemu-iotests/sample_images/prl-xml/Snapshots.xml.= bz2 create mode 100644 tests/qemu-iotests/sample_images/prl-xml/parallels.{5fb= aabe3-6958-40ff-92a7-860e329aab41}.hds.bz2 create mode 100644 tests/qemu-iotests/sample_images/prl-xml/parallels.{986= 476cf-d62e-45d1-b355-86feca91376e}.hds.bz2 diff --git a/tests/qemu-iotests/164 b/tests/qemu-iotests/164 new file mode 100755 index 0000000000..a55ab5d7d8 --- /dev/null +++ b/tests/qemu-iotests/164 @@ -0,0 +1,98 @@ +#!/bin/bash +# +# prl-xml format validation test +# +# Copyright (C) 2017 Edgar Kaziakhmedov +# +# 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=3Dedgar.kaziakhmedov@virtuozzo.com + +seq=3D`basename $0` +echo "QA output created by $seq" + +here=3D`pwd` +status=3D1 # failure is the default! + +_cleanup() +{ + _rm_test_img "$TEST_DIR/$PRL_XML_DIR/$CUR_IMAGE" + _rm_test_img "$TEST_DIR/$PRL_XML_DIR/$BACK_IMAGE" + _rm_test_img "$TEST_DIR/$PRL_XML_DIR/$SNAP_LIST" + _cleanup_test_img + rmdir "$TEST_DIR/$PRL_XML_DIR" +} +trap "_cleanup; exit \$status" 0 1 2 3 15 + +# get standard environment, filters and checks +. ./common.rc +. ./common.filter + +_supported_fmt prl-xml +_supported_proto file +_supported_os Linux + +inuse_offset=3D$((0x2c)) + +PRL_XML_DIR=3D"prl-xml" +mkdir "$TEST_DIR/$PRL_XML_DIR" +CUR_IMAGE=3D"parallels.{5fbaabe3-6958-40ff-92a7-860e329aab41}.hds" +BACK_IMAGE=3D"parallels.{986476cf-d62e-45d1-b355-86feca91376e}.hds" +SNAP_LIST=3D"Snapshots.xml" +XML_IMG=3D"DiskDescriptor.xml" +size=3D128M +CLUSTER_SIZE=3D64k +IMGFMT=3Dprl-xml +_use_sample_img "$PRL_XML_DIR/$CUR_IMAGE.bz2" +_use_sample_img "$PRL_XML_DIR/$BACK_IMAGE.bz2" +_use_sample_img "$PRL_XML_DIR/$SNAP_LIST.bz2" +_use_sample_img "$PRL_XML_DIR/$XML_IMG.bz2" + +echo =3D=3D read empty image =3D=3D +{ $QEMU_IO -c "read -P 0 32k 64k" "$TEST_IMG"; } 2>&1 | _filter_qemu_io | = _filter_testdir +echo =3D=3D write more than 1 block in a row =3D=3D +{ $QEMU_IO -c "write -P 0x11 32k 128k" "$TEST_IMG"; } 2>&1 | _filter_qemu_= io | _filter_testdir +echo =3D=3D read less than block =3D=3D +{ $QEMU_IO -c "read -P 0x69 32k 32k" "$TEST_IMG"; } 2>&1 | _filter_qemu_io= | _filter_testdir +echo =3D=3D read exactly 1 block =3D=3D +{ $QEMU_IO -c "read -P 0x69 64k 64k" "$TEST_IMG"; } 2>&1 | _filter_qemu_io= | _filter_testdir +echo =3D=3D read more than 1 block =3D=3D +{ $QEMU_IO -c "read -P 0x69 32k 128k" "$TEST_IMG"; } 2>&1 | _filter_qemu_i= o | _filter_testdir +echo =3D=3D check that there is no trash after written =3D=3D +{ $QEMU_IO -c "read -P 0 160k 32k" "$TEST_IMG"; } 2>&1 | _filter_qemu_io |= _filter_testdir +echo =3D=3D check that there is no trash before written =3D=3D +{ $QEMU_IO -c "read -P 0 0 32k" "$TEST_IMG"; } 2>&1 | _filter_qemu_io | _f= ilter_testdir +echo =3D=3D write the whole disk =3D=3D +{ $QEMU_IO -c "write -P 0x45 0 2M" "$TEST_IMG"; } 2>&1 | _filter_qemu_io |= _filter_testdir +echo =3D=3D read the whole disk =3D=3D +{ $QEMU_IO -c "read -P 0x45 0 2M" "$TEST_IMG"; } 2>&1 | _filter_qemu_io | = _filter_testdir +echo =3D=3D check that there is error while write out of range =3D=3D +{ $QEMU_IO -c "write -P 0 2M 32k" "$TEST_IMG"; } 2>&1 | _filter_qemu_io | = _filter_testdir +echo =3D=3D check that there is error while disk size is less than data wr= itten =3D=3D +{ $QEMU_IO -c "write -P 0x45 0 3M" "$TEST_IMG"; } 2>&1 | _filter_qemu_io |= _filter_testdir + +echo "=3D=3D Corrupt image =3D=3D" +poke_file "$TEST_DIR/$PRL_XML_DIR/$CUR_IMAGE" "$inuse_offset" "\x59\x6e\x6= f\x74" +{ $QEMU_IO -c "read -P 0x11 64k 64k" "$TEST_IMG"; } 2>&1 | _filter_qemu_io= | _filter_testdir +# as it is a block filter, we change driver format +_check_test_img +_check_test_img -r all +{ $QEMU_IO -c "read -P 0x11 64k 64k" "$TEST_IMG"; } 2>&1 | _filter_qemu_io= | _filter_testdir + +# success, all done +echo "*** done" +rm -f $seq.full +status=3D0 diff --git a/tests/qemu-iotests/164.out b/tests/qemu-iotests/164.out new file mode 100644 index 0000000000..777c0c2c1c --- /dev/null +++ b/tests/qemu-iotests/164.out @@ -0,0 +1,54 @@ +QA output created by 164 +=3D=3D read empty image =3D=3D +read 65536/65536 bytes at offset 32768 +64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +=3D=3D write more than 1 block in a row =3D=3D +wrote 131072/131072 bytes at offset 32768 +128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +=3D=3D read less than block =3D=3D +Pattern verification failed at offset 32768, 32768 bytes +read 32768/32768 bytes at offset 32768 +32 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +=3D=3D read exactly 1 block =3D=3D +Pattern verification failed at offset 65536, 65536 bytes +read 65536/65536 bytes at offset 65536 +64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +=3D=3D read more than 1 block =3D=3D +Pattern verification failed at offset 32768, 131072 bytes +read 131072/131072 bytes at offset 32768 +128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +=3D=3D check that there is no trash after written =3D=3D +read 32768/32768 bytes at offset 163840 +32 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +=3D=3D check that there is no trash before written =3D=3D +read 32768/32768 bytes at offset 0 +32 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +=3D=3D write the whole disk =3D=3D +wrote 2097152/2097152 bytes at offset 0 +2 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +=3D=3D read the whole disk =3D=3D +read 2097152/2097152 bytes at offset 0 +2 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +=3D=3D check that there is error while write out of range =3D=3D +write failed: Input/output error +=3D=3D check that there is error while disk size is less than data written= =3D=3D +write failed: Input/output error +=3D=3D Corrupt image =3D=3D +can't open device TEST_DIR/prl-xml/DiskDescriptor.xml: parallels: Image wa= s not closed correctly; cannot be opened read/write +Can't open top image +ERROR image was not closed correctly + +1 errors were found on the image. +Data may be corrupted, or further writes to the image may corrupt it. +Repairing image was not closed correctly +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. +Pattern verification failed at offset 65536, 65536 bytes +read 65536/65536 bytes at offset 65536 +64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +*** done diff --git a/tests/qemu-iotests/check b/tests/qemu-iotests/check index e6b6ff7a04..0a87c8d840 100755 --- a/tests/qemu-iotests/check +++ b/tests/qemu-iotests/check @@ -229,6 +229,7 @@ image format options -bochs test bochs -cloop test cloop -parallels test parallels + -prl-xml test prl-xml -qcow test qcow -qcow2 test qcow2 -qed test qed @@ -288,6 +289,12 @@ testlist options xpand=3Dfalse ;; =20 + -prl-xml) + IMGFMT=3Dprl-xml + IMGFMT_GENERIC=3Dfalse + xpand=3Dfalse + ;; + -qcow) IMGFMT=3Dqcow xpand=3Dfalse diff --git a/tests/qemu-iotests/group b/tests/qemu-iotests/group index a2dfe79d86..d22853fed6 100644 --- a/tests/qemu-iotests/group +++ b/tests/qemu-iotests/group @@ -168,6 +168,7 @@ 160 rw auto quick 162 auto quick 163 rw auto quick +164 rw auto quick 165 rw auto quick 170 rw auto quick 171 rw auto quick diff --git a/tests/qemu-iotests/sample_images/prl-xml/DiskDescriptor.xml.bz= 2 b/tests/qemu-iotests/sample_images/prl-xml/DiskDescriptor.xml.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..08dad3b4a9c980e931bc0b1d128= bf931754a0730 GIT binary patch literal 457 zcmV;)0XF_ZT4*^jL0KkKSrF;;(*OYXUw}kZPy_$xpWsgbzwh08Kmq%XS_EJK00000 z000500FhFe>Y92HlRY3t1k)x7iM22Qsv;FVpa3SCYG^bXG{_8| zrfN!{Cd7v_5J(9M0s}_dWC~Q2$^q`CQ9GkqB)PntA`y-oQij;)JNjE(B9Y*5aV@eZ zNm#hli#yE)7^1NyrcFiV@r278BPk{EYaYR2-xv$bF@i7>S(f6lk}@&{M@|-=3DEDInh z1TQdzVh>8Vid!*P!6c*$Ae_l29fvPb-K|eJV1RjPLW4O6g5X2eSUs4Sk}gILzRBoP zpHePXvokW4>Jvg~PXZ{SSoaK&ZH+Ou+Zm`9dCH>;i})omFSQhX*`7S5GZHtsEf=3D>w z1@YYz7*4~Ij?&_cOOoQ=3D{;YNEHAluO=3DlD$;(-cuvUM(k+scFz|XL9qg!Mwv9P4QDi zZfryL&S!Erw6rX7Q7R#ko6NZ8#&UYgdr7g++-G_%Jw_LzuB3a>_GL3NF_MS1iYl0^ z6I+QmlSNwC6>a&aGBB|%l=3DPU|mZaQ)`TG;NQwaRAwJ&DIPvBk26yZWZL#NYBA5X_~ literal 0 HcmV?d00001 diff --git a/tests/qemu-iotests/sample_images/prl-xml/Snapshots.xml.bz2 b/t= ests/qemu-iotests/sample_images/prl-xml/Snapshots.xml.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..b5d80ae94d4500b1b19f3439dc5= e953383797c6f GIT binary patch literal 307 zcmV-30nGkFT4*^jL0KkKSxpAo!2keSUw}kVa0CDMtRYMaKj+`dFaafl45Vb#^oG(j z!Ww#j1Juv}&}yEUO*J$z4FF*QqfCtlsip-~(t(pxG&KMKXlV5qfO$lMX&?jw2v8-q z1`8?>TaY|qfYis;LeUupdT2xBtur^&?vpdx7R17+oiv%}2wGIw-)zxJLr_^;oRJC4 z2#6Ap!Nu!vRP96>_M1>58rRKl2SU7pU?xx5wYliRwKUL%LTSn&49HEuR+X$}sk5@T z=3Dxr(7)RvMJ8`AEc%m$-oFQzoR=3DyQk}&wu2md@z{{n6N7=3Dp=3DAGC+I1H@3>iwz8Wyyr zWa1$U^GSrJhB+xNlJ>S-MI_qG1yW`~MP9ZklRCtzNpT7YFCZ1HaF+M+cO+AV2?Wq> FtPtE(2!JYJ)<6It00Emf9jW8MFZ406H$@ig2MJw+D1EabX`c literal 0 HcmV?d00001 diff --git a/tests/qemu-iotests/sample_images/prl-xml/parallels.{986476cf-d= 62e-45d1-b355-86feca91376e}.hds.bz2 b/tests/qemu-iotests/sample_images/prl-= xml/parallels.{986476cf-d62e-45d1-b355-86feca91376e}.hds.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..174c8ba055fc1a24b91f179670f= d15b53e00efdd GIT binary patch literal 93 zcmV-j0HXgwT4*^jL0KkKS=3D)oU7yuwJ=3DYr6{KmY>(2!JYJ)<6It00Emf9jW8MFZ406H$@ig2MJw+D1EabX`c literal 0 HcmV?d00001 --=20 2.21.3