From nobody Tue Feb 10 04:33:02 2026 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=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=quarantine dis=quarantine) header.from=virtuozzo.com ARC-Seal: i=1; a=rsa-sha256; t=1610359377; cv=none; d=zohomail.com; s=zohoarc; b=j/K5S7jSf5Ag+fJ73oPQLByC4M2h10f72lCtOLhyZgAqLm1gW+e2ufkVXpyJt7SGIWtd8fRE2chRR1tbuJQmswZJQadQrv0fZvvOLRs5hcniUe+tJgIDp019+21VuAsI6NrvNl0CzV08RNl6j3SXy8oQIOinI1g+aNVsOUBLx2g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1610359377; h=Content-Type:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=VVnKm5VgFYqOoKfI8mbfr6DZd60yJWWJCHZqQESuklY=; b=cdzmDmJod0EBnLfzRR47WtF9ubLsmj3AxqkNx3G3WCIC8UXlySyRXKRMeSdecAGFmF5ukqADJL3SKKFS3YXva00MnghM5wyLPNcm7y6n+qmjW3kJBenCkGIozy3yu4tra8NtpeVcEPHE6LBV2waR2MZTyxejjZ0t+chCd7Ft9B0= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=quarantine dis=quarantine) header.from= Return-Path: 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 1610359377789141.35429104009404; Mon, 11 Jan 2021 02:02:57 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-87-v33gSYXPMr64Ej5S5N1kuA-1; Mon, 11 Jan 2021 05:02:53 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 00B47802B42; Mon, 11 Jan 2021 10:02:47 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A6D9C1349A; Mon, 11 Jan 2021 10:02:46 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 3E2BA1809C9F; Mon, 11 Jan 2021 10:02:44 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 10BA2h1J015804 for ; Mon, 11 Jan 2021 05:02:43 -0500 Received: by smtp.corp.redhat.com (Postfix) id F2E60112D43F; Mon, 11 Jan 2021 10:02:42 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast02.extmail.prod.ext.rdu2.redhat.com [10.11.55.18]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EF48A112D43E for ; Mon, 11 Jan 2021 10:02:39 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A34C28015A8 for ; Mon, 11 Jan 2021 10:02:39 +0000 (UTC) Received: from relay3.sw.ru (relay.sw.ru [185.231.240.75]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-186-HqE67B6cNIq3f62QGUBVOQ-1; Mon, 11 Jan 2021 05:02:37 -0500 Received: from [10.28.15.168] (helo=vz7.sw.ru.) by relay3.sw.ru with esmtp (Exim 4.94) (envelope-from ) id 1kyu0v-00GBOE-1y for libvir-list@redhat.com; Mon, 11 Jan 2021 13:01:29 +0300 X-MC-Unique: v33gSYXPMr64Ej5S5N1kuA-1 X-MC-Unique: HqE67B6cNIq3f62QGUBVOQ-1 From: Nikolay Shirokovskiy To: libvir-list@redhat.com Subject: [PATCH 11/23] test driver: remove iotune max checks Date: Mon, 11 Jan 2021 12:50:04 +0300 Message-Id: <1610358616-567804-12-git-send-email-nshirokovskiy@virtuozzo.com> In-Reply-To: <1610358616-567804-1-git-send-email-nshirokovskiy@virtuozzo.com> References: <1610358616-567804-1-git-send-email-nshirokovskiy@virtuozzo.com> X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 2 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" These checks are now in the above call to virDomainBlockIoTuneValidate. Signed-off-by: Nikolay Shirokovskiy Reviewed-by: Peter Krempa --- src/test/test_driver.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/test/test_driver.c b/src/test/test_driver.c index 4eb04d6..299be2a 100644 --- a/src/test/test_driver.c +++ b/src/test/test_driver.c @@ -3783,25 +3783,6 @@ testDomainSetBlockIoTune(virDomainPtr dom, if (virDomainBlockIoTuneValidate(&info) < 0) goto cleanup; =20 -#define TEST_BLOCK_IOTUNE_MAX_CHECK(FIELD, FIELD_MAX) \ - do { \ - if (info.FIELD > info.FIELD_MAX) { \ - virReportError(VIR_ERR_INVALID_ARG, \ - _("%s cannot be set higher than %s "), \ - #FIELD, #FIELD_MAX); \ - goto cleanup; \ - } \ - } while (0); - - TEST_BLOCK_IOTUNE_MAX_CHECK(total_bytes_sec, total_bytes_sec_max); - TEST_BLOCK_IOTUNE_MAX_CHECK(read_bytes_sec, read_bytes_sec_max); - TEST_BLOCK_IOTUNE_MAX_CHECK(write_bytes_sec, write_bytes_sec_max); - TEST_BLOCK_IOTUNE_MAX_CHECK(total_iops_sec, total_iops_sec_max); - TEST_BLOCK_IOTUNE_MAX_CHECK(read_iops_sec, read_iops_sec_max); - TEST_BLOCK_IOTUNE_MAX_CHECK(write_iops_sec, write_iops_sec_max); - -#undef TEST_BLOCK_IOTUNE_MAX_CHECK - virDomainDiskSetBlockIOTune(conf_disk, &info); info.group_name =3D NULL; =20 --=20 1.8.3.1