From nobody Sun Apr 12 06:09:59 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; dmarc=pass(p=none dis=none) header.from=yandex-team.ru ARC-Seal: i=1; a=rsa-sha256; t=1770887348; cv=none; d=zohomail.com; s=zohoarc; b=hwSfoUr0KfofaBV39xe3cDVEYeBL/yRd1jCst9pJ9XsLj5/AzYLjgKp4XaT/fj+ZET8s0yhMOELLt3QK+O+wo7nXoC1Zn8SJMyEUUYM+1ZzZ+jwK5l2zT0REc0I6ZM/Ym1RPc0aWYUbNwdhNMOiYJAziViXPS8fLruGnWCjLDzI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1770887348; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=CYE2pEM95PycaKXMxxcqrt2w1cUELnQTQy2wRr10s0o=; b=b3QPaEiSb/DjO5Ocbd4ZWsKfqlEt7q8/u9NzZfL1lvbZSlkRmJhaPL0N5Lm6vH9Wqnbqm5Zaso+eVx2ErelFF2P5YfIjXTii7Ao0P8+RZ+4kUByrrBwn6mmZJMKJMrXw+UhaU7TW2itkKwVgnUPJIkCRs7A+i0fXGict+AYBdq4= ARC-Authentication-Results: i=1; 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; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 177088734826924.103528427462493; Thu, 12 Feb 2026 01:09:08 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vqSh5-0002Yr-2b; Thu, 12 Feb 2026 04:09:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vqSh3-0002Y8-B0; Thu, 12 Feb 2026 04:09:01 -0500 Received: from forwardcorp1a.mail.yandex.net ([178.154.239.72]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vqSgu-000444-Pe; Thu, 12 Feb 2026 04:09:01 -0500 Received: from mail-nwsmtp-smtp-corp-main-69.vla.yp-c.yandex.net (mail-nwsmtp-smtp-corp-main-69.vla.yp-c.yandex.net [IPv6:2a02:6b8:c1f:3a87:0:640:845c:0]) by forwardcorp1a.mail.yandex.net (Yandex) with ESMTPS id 4DEF3C01FF; Thu, 12 Feb 2026 12:08:48 +0300 (MSK) Received: from vsementsov-lin (unknown [2a02:6bf:8080:450::1:4]) by mail-nwsmtp-smtp-corp-main-69.vla.yp-c.yandex.net (smtpcorp/Yandex) with ESMTPSA id j8QYBp0Al4Y0-nA2VSxdd; Thu, 12 Feb 2026 12:08:47 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex-team.ru; s=default; t=1770887327; bh=CYE2pEM95PycaKXMxxcqrt2w1cUELnQTQy2wRr10s0o=; h=Message-ID:Date:In-Reply-To:Cc:Subject:References:To:From; b=rmjLZpuptespGK6slCoAoJEP5AQ8BYq/M7XdBogv+MijJQXqFRBVA+bpA4IUhTtDT 9i7WT/rSZu7mvC5blVXFvSAbpm1oSqROJE3ZULKGEeoaBvlTJ8XkXFmTABhkVNhcDx tEoE6smr/oLancjgAC57JxQFwDqFlvT+wREMQDdM= Authentication-Results: mail-nwsmtp-smtp-corp-main-69.vla.yp-c.yandex.net; dkim=pass header.i=@yandex-team.ru From: Vladimir Sementsov-Ogievskiy To: qemu-block@nongnu.org Cc: kwolf@redhat.com, hreitz@redhat.com, jsnow@redhat.com, qemu-devel@nongnu.org, peter.maydell@linaro.org, vsementsov@yandex-team.ru, Fiona Ebner Subject: [PULL 2/2] iotests: test active mirror with unaligned, small write zeroes op Date: Thu, 12 Feb 2026 12:08:01 +0300 Message-ID: <20260212090801.999731-3-vsementsov@yandex-team.ru> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260212090801.999731-1-vsementsov@yandex-team.ru> References: <20260212090801.999731-1-vsementsov@yandex-team.ru> 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=178.154.239.72; envelope-from=vsementsov@yandex-team.ru; helo=forwardcorp1a.mail.yandex.net 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, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=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.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @yandex-team.ru) X-ZM-MESSAGEID: 1770887352823158500 Content-Type: text/plain; charset="utf-8" From: Fiona Ebner This tests the scenario fixed by "block/mirror: check range when setting zero bitmap for sync write" [0]. [0] https://lore.kernel.org/qemu-devel/20260112152544.261923-1-f.ebner@prox= mox.com/ Signed-off-by: Fiona Ebner Message-ID: <20260120113859.251743-1-f.ebner@proxmox.com> Reviewed-by: Vladimir Sementsov-Ogievskiy Tested-by: Vladimir Sementsov-Ogievskiy Signed-off-by: Vladimir Sementsov-Ogievskiy --- tests/qemu-iotests/151 | 20 ++++++++++++++++++++ tests/qemu-iotests/151.out | 4 ++-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/tests/qemu-iotests/151 b/tests/qemu-iotests/151 index 06ee3585db..9b9c815db5 100755 --- a/tests/qemu-iotests/151 +++ b/tests/qemu-iotests/151 @@ -191,6 +191,26 @@ class TestActiveMirror(iotests.QMPTestCase): =20 self.potential_writes_in_flight =3D False =20 + def testUnalignedSmallerThanGranularityWriteZeroes(self): + # Fill the source image + self.vm.hmp_qemu_io('source', 'write -P 1 0 %i' % self.image_len); + + # Start the block job + self.vm.cmd('blockdev-mirror', + job_id=3D'mirror', + filter_node_name=3D'mirror-node', + device=3D'source-node', + target=3D'target-node', + sync=3D'full', + copy_mode=3D'write-blocking') + + # Wait for the READY event + self.wait_ready(drive=3D'mirror') + + for offset in range(6 * self.image_len // 8, 7 * self.image_len //= 8, 1024 * 1024): + self.vm.hmp_qemu_io('source', 'aio_write -z %i 512' % (offset = + 512)) + + self.complete_and_wait(drive=3D'mirror', wait_ready=3DFalse) =20 class TestThrottledWithNbdExportBase(iotests.QMPTestCase): image_len =3D 128 * 1024 * 1024 # MB diff --git a/tests/qemu-iotests/151.out b/tests/qemu-iotests/151.out index 3f8a935a08..2f7d3902f2 100644 --- a/tests/qemu-iotests/151.out +++ b/tests/qemu-iotests/151.out @@ -1,5 +1,5 @@ -...... +....... ---------------------------------------------------------------------- -Ran 6 tests +Ran 7 tests =20 OK --=20 2.52.0