From nobody Mon Feb 9 19:53:59 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=1629816703; cv=none; d=zohomail.com; s=zohoarc; b=HOlv7yJwqRj1U6R9azJIwm69FWBL0C6M2uyzBWQepI0VdrOm6ITBip8R9Vi+D9TQxFMZZ5bL9pPko07clNZYVVz7Oo4QcycUOXnFd1juElxAvYLblgYeJU1dJPas7zZ2D+BHnEsvhVDVLm3cSfnBvz6nalzaRCUl/Xv47aWMCCg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1629816703; h=Content-Type:Content-Transfer-Encoding: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=Pj1FtH4YvX4Xq7/xsb6vGq4Wlb7s1uUy4DPJRa5BSNg=; b=Zk+YX+ZJ8tVtp9w2FoWkKFcA/Uhc3yJuBVoD1aBwPAUraioYaW0qAVgmbzy09+oWLMrRyw1ZEIOQcXjspTo5Mtoe3mwN4KOX+M168c/LbKS/3VYGTlP6y+r9IDSCsfiP/SnxIi79/E0mf7Wm8qKnQQGrS5CKXoCXSylbVTIXYX4= 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) 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 1629816703742308.2536257685357; Tue, 24 Aug 2021 07:51:43 -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-459-CgEDK4c0Ptux2fheVgDIAQ-1; Tue, 24 Aug 2021 10:51:40 -0400 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 5302A185302E; Tue, 24 Aug 2021 14:51:35 +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 0BA6C60BD9; Tue, 24 Aug 2021 14:51:35 +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 9F1B250038; Tue, 24 Aug 2021 14:51:34 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 17OEpWSF007230 for ; Tue, 24 Aug 2021 10:51:32 -0400 Received: by smtp.corp.redhat.com (Postfix) id 048D060C9D; Tue, 24 Aug 2021 14:51:32 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.43.2.2]) by smtp.corp.redhat.com (Postfix) with ESMTP id 81C6660C82 for ; Tue, 24 Aug 2021 14:51:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1629816702; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=Pj1FtH4YvX4Xq7/xsb6vGq4Wlb7s1uUy4DPJRa5BSNg=; b=BgdH/78UrQN1d5oJUDGSo0ve12Ea5K0IQqJQCb1QzgN4+jmeYOdV/tiaulSyUEq6xGp85x 0sL9glUX6muIBUuvEJLAxHak8DFFkORHgYBHb2ua7iwQfcK/l3WZchKBQpd4xc5y+HbvMD t+1plXeSmxBlthVfImzE6PS7/ZpNHuM= X-MC-Unique: CgEDK4c0Ptux2fheVgDIAQ-1 From: Kristina Hanicova To: libvir-list@redhat.com Subject: [PATCH 1/4] api: add virStoragePoolDefineFlags Date: Tue, 24 Aug 2021 16:51:08 +0200 Message-Id: <6dbeab7350c7171cea114fd4f17623540092a5e7.1629815312.git.khanicov@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 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: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1629816705122100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Kristina Hanicova --- include/libvirt/libvirt-storage.h | 4 ++++ src/libvirt-storage.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/libvirt/libvirt-storage.h b/include/libvirt/libvirt-st= orage.h index 089e1e0bd1..b459fe3e8e 100644 --- a/include/libvirt/libvirt-storage.h +++ b/include/libvirt/libvirt-storage.h @@ -271,6 +271,10 @@ virStoragePoolPtr virStoragePoolLookupByVolume = (virStorageVolPtr vol); virStoragePoolPtr virStoragePoolLookupByTargetPath(virConnectPtr con= n, const char *path); =20 +typedef enum { + VIR_STORAGE_POOL_DEFINE_VALIDATE =3D 1 << 0, /* Validate the XML docum= ent against schema */ +} virStoragePoolDefineFlags; + /* * Creating/destroying pools */ diff --git a/src/libvirt-storage.c b/src/libvirt-storage.c index 2a7cdca234..5ec61c7d99 100644 --- a/src/libvirt-storage.c +++ b/src/libvirt-storage.c @@ -589,7 +589,7 @@ virStoragePoolCreateXML(virConnectPtr conn, * virStoragePoolDefineXML: * @conn: pointer to hypervisor connection * @xml: XML description for new pool - * @flags: extra flags; not used yet, so callers should always pass 0 + * @flags: bitwise-OR of virStoragePoolDefineFlags * * Define an inactive persistent storage pool or modify an existing persis= tent * one from the XML description. --=20 2.31.1