From nobody Wed Nov 19 08:21:13 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1615376611; cv=none; d=zohomail.com; s=zohoarc; b=WruTnBZnN6Bqi+kyiKFcBXX1nKVmsbKE1GafzOKTJbh2iUm8Ij9ozv2Whyq9tgpyem5Va1BqaU1Ki1j6GNMEem9SVNEZqhgxQzyeaRheRDzqpKjwwxEgskRQiOpULSnEyUNhBA2t/udZ+ULLlfsZGDYBLIV/zIJZ3OjUFVDXY6w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1615376611; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=dQp9RrJbaARFkItMfTOnAojZt2imEdHJA1UlVrvebRs=; b=ihhMRcUj23hnW2QTbJNcH2pnc/eqdkmPR31nnOt2p9XvQJZdAfP67GEx7n3+2BAEshfEoPaIMr0pg6cpUjsRmRltQj+NpOJKFEFTglG4G0n1/i7BNfIsgei93o7TZs3BuekDcHV4e/N3Y7wMXpaxsR/KFfrE3LpaOGg8RnG4u1Y= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1615376611389517.7338613983474; Wed, 10 Mar 2021 03:43:31 -0800 (PST) Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-353-J4YaCklXPwSgnJsHEbaotw-1; Wed, 10 Mar 2021 06:43:28 -0500 Received: by mail-ej1-f71.google.com with SMTP id fy8so7085210ejb.19 for ; Wed, 10 Mar 2021 03:43:28 -0800 (PST) Return-Path: Return-Path: Received: from x1w.redhat.com (68.red-83-57-175.dynamicip.rima-tde.net. [83.57.175.68]) by smtp.gmail.com with ESMTPSA id t15sm11296132edc.34.2021.03.10.03.43.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Mar 2021 03:43:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1615376610; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dQp9RrJbaARFkItMfTOnAojZt2imEdHJA1UlVrvebRs=; b=KrumNa6DSL1I19gimp1Ol6reM3pIgvrBl+ctuRbtLJR5I831I15zbm56WFxq5XtLHLx5Hd /6MNgQsfWbRSXHkp3oXDTP0xUlVfTJlrWoBjkainvzuHVHrv6HmJeN5iRqc1Q4e2k6wTDG HFxlKdF3Y93CqhamT2kwvEnY5hFngZs= X-MC-Unique: J4YaCklXPwSgnJsHEbaotw-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=dQp9RrJbaARFkItMfTOnAojZt2imEdHJA1UlVrvebRs=; b=TNUVpl6oH+crwK2RgnSxJkmqcbZslAtkydo7Ae9ngLOGLl2djvMA9PV/t3x0QX/3Ko A26dbIJ/Nsc2ZW40Gul/TmCrfE8il7Q73srGwXle49evoHtDLUTz4ffV7pqfvFI49SiT N7UATZI8ZcKuy+jfMPPLEncpHqYFj5pXrwxSe1Lxlg4qE5EFF8o+b/JRD/oguUMC009H wEjgG82gHD4iXY4RaKsq9jiIpsraf4pD+HxEu/eTQeA1egCLJiAFbRtBvyT5B8i3D8rI m7wMjZPoHMkTUoHeztEogb5s2QYDKDrM84lKVpejb+z8qD8IRRokeTD/IHBRzp1Eb8Gn BlAQ== X-Gm-Message-State: AOAM532hijoEg90t4qpfHhfAjXwwMqvrRLdo++T1OiTAjoH4fhwbWTp7 P/7W8VVCE9Zwb7xHzZWaAPugrQmSSmz18wNLHBMNvjO2AIbszgF4IvUj0xsIrfFE0UTuWUCyDsE 88E/GDvqq9zpA7g== X-Received: by 2002:aa7:da0f:: with SMTP id r15mr2730410eds.111.1615376607631; Wed, 10 Mar 2021 03:43:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJwd1g259jRwulBhpmLoYfbF6uNVqM4VQHr3C4sxI8H7Y5u7jf/7IsxZ/bl72nh1ObAVf9VBRg== X-Received: by 2002:aa7:da0f:: with SMTP id r15mr2730385eds.111.1615376607409; Wed, 10 Mar 2021 03:43:27 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Fam Zheng , Markus Armbruster , qemu-block@nongnu.org, Vladimir Sementsov-Ogievskiy , Kevin Wolf , Max Reitz , Prasad J Pandit , Bandan Das , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [RFC PATCH 2/3] tests/test-blockjob: Use zeroes-co instead of null-co,read-zeroes=on Date: Wed, 10 Mar 2021 12:43:13 +0100 Message-Id: <20210310114314.1068957-3-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210310114314.1068957-1-philmd@redhat.com> References: <20210310114314.1068957-1-philmd@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- RFC because I won't convert the rest of the tests until the previous patch is reviewed. --- tests/test-blockjob.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/test-blockjob.c b/tests/test-blockjob.c index 75198479120..ae2ea7028ee 100644 --- a/tests/test-blockjob.c +++ b/tests/test-blockjob.c @@ -70,9 +70,7 @@ static BlockBackend *create_blk(const char *name) BlockBackend *blk =3D blk_new(qemu_get_aio_context(), 0, BLK_PERM_ALL); BlockDriverState *bs; =20 - QDict *opt =3D qdict_new(); - qdict_put_str(opt, "file.read-zeroes", "on"); - bs =3D bdrv_open("null-co://", NULL, opt, 0, &error_abort); + bs =3D bdrv_open("zeroes-co://", NULL, NULL, 0, &error_abort); g_assert_nonnull(bs); =20 blk_insert_bs(blk, bs, &error_abort); --=20 2.26.2