From nobody Mon Feb 9 13:39:09 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; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1616161308; cv=none; d=zohomail.com; s=zohoarc; b=NqipfWxVrouNllpM485O01y5xGOWpISF/UfAgKBdVWduO50dT6gNEuhVyfVffsqCgm18XzQi/CLnvj35P6a664knf6prAo7lUIl2UJzP5PcNOF+QJKUIRAj2q8b9+j37ld9qDf8TQZc0fukKYIscPo6m3vtjZndzPmB/K+tm0xs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1616161308; 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=nM/+Rq3z0zTZwyBi//5rgRxJKdxcf0yvHFMGKUZNTEU=; b=VbWjsr3/kRYZSeHfZ81UVCug3WPabjs+Jak/Lccj/xYhbn4MEFi76V4tkqfRPKRnQupKOu+e6JD+JtadeLCAVNyoRnz5pJHaKJ2YV8yMfCBTUjbS0dvBA8sJ5xtd2gimYKDoLMzmwLDVLHP8pvXV8j0S8AeHFoT5OlBb9AwHzM8= 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=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) 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 1616161308143546.6186521136957; Fri, 19 Mar 2021 06:41:48 -0700 (PDT) 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-603-U4W4bVlnNdCQfsZXddJoUw-1; Fri, 19 Mar 2021 09:41:44 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 18E87190A7A7; Fri, 19 Mar 2021 13:41:37 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E5E835D9F2; Fri, 19 Mar 2021 13:41:36 +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 ACCD04A70E; Fri, 19 Mar 2021 13:41:36 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 12JDfWgb019230 for ; Fri, 19 Mar 2021 09:41:32 -0400 Received: by smtp.corp.redhat.com (Postfix) id 9BFFD50DD2; Fri, 19 Mar 2021 13:41:32 +0000 (UTC) Received: from work.redhat.com (ovpn-112-175.ams2.redhat.com [10.36.112.175]) by smtp.corp.redhat.com (Postfix) with ESMTP id E144C50C0A; Fri, 19 Mar 2021 13:41:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1616161307; h=from:from:sender:sender: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=nM/+Rq3z0zTZwyBi//5rgRxJKdxcf0yvHFMGKUZNTEU=; b=CvsxrkeP7M6wluS8165nIk2tW0jljiI1vwMlh4L2PcWFrxczbK1BpIexDdej7r/XnFjmVm gDXrC1lH0EW5lGcqzcyBVKM74GSajtFv2zwEdPOB2waLmL3m5hVBNtni3KJh3lf2rm8d1C GrSxWVzSRZYzcWhPCjXzgB7ezOXMi7g= X-MC-Unique: U4W4bVlnNdCQfsZXddJoUw-1 From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH v2 13/51] conf: Use virTristateXXX in virStoragePoolSourceDevice Date: Fri, 19 Mar 2021 14:40:27 +0100 Message-Id: <20210319134105.442774-14-twiederh@redhat.com> In-Reply-To: <20210319134105.442774-1-twiederh@redhat.com> References: <20210319134105.442774-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Cc: Tim Wiederhake 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.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Tim Wiederhake --- src/conf/storage_conf.c | 2 +- src/conf/storage_conf.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/conf/storage_conf.c b/src/conf/storage_conf.c index 2e07c81f8a..fa8bcfb8ce 100644 --- a/src/conf/storage_conf.c +++ b/src/conf/storage_conf.c @@ -1097,7 +1097,7 @@ virStoragePoolSourceFormat(virBufferPtr buf, virBufferEscapeString(buf, "devices[i].path); if (src->devices[i].part_separator !=3D - VIR_TRISTATE_SWITCH_ABSENT) { + VIR_TRISTATE_BOOL_ABSENT) { virBufferAsprintf(buf, " part_separator=3D'%s'", virTristateBoolTypeToString(src->devices= [i].part_separator)); } diff --git a/src/conf/storage_conf.h b/src/conf/storage_conf.h index 647eb847bf..8d417af7bb 100644 --- a/src/conf/storage_conf.h +++ b/src/conf/storage_conf.h @@ -168,7 +168,7 @@ struct _virStoragePoolSourceDevice { virStoragePoolSourceDeviceExtentPtr freeExtents; char *path; int format; /* Pool specific source format */ - int part_separator; /* enum virTristateSwitch */ + virTristateBool part_separator; =20 /* When the source device is a physical disk, * the geometry data is needed --=20 2.26.2