From nobody Thu May 15 12:40:01 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1511454720511691.3924336295054; Thu, 23 Nov 2017 08:32:00 -0800 (PST) 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 mx1.redhat.com (Postfix) with ESMTPS id 3F9BBB5BA; Thu, 23 Nov 2017 16:31:59 +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 1E67F18EE7; Thu, 23 Nov 2017 16:31:59 +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 DEFB74BB79; Thu, 23 Nov 2017 16:31:58 +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 vANGPDNk006828 for ; Thu, 23 Nov 2017 11:25:13 -0500 Received: by smtp.corp.redhat.com (Postfix) id 34B1418B55; Thu, 23 Nov 2017 16:25:13 +0000 (UTC) Received: from angien.brq.redhat.com (unknown [10.43.2.136]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3784E19159; Thu, 23 Nov 2017 16:25:11 +0000 (UTC) From: Peter Krempa To: libvir-list@redhat.com Date: Thu, 23 Nov 2017 17:24:39 +0100 Message-Id: <0a81e51afd5f86f8c65e24454cbfcae1440bf9da.1511454145.git.pkrempa@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Cc: Peter Krempa Subject: [libvirt] [PATCH 2/6] util: storage: Add fields for debug options for disk drivers 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: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Thu, 23 Nov 2017 16:31:59 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Some drive backends allow output of debugging information which can be configured using properities of the image. Add fields to virStorageSource which will allow carrying them. --- src/util/virstoragefile.c | 2 ++ src/util/virstoragefile.h | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/util/virstoragefile.c b/src/util/virstoragefile.c index 45a6dea8a0..6594715e5e 100644 --- a/src/util/virstoragefile.c +++ b/src/util/virstoragefile.c @@ -2061,6 +2061,8 @@ virStorageSourceCopy(const virStorageSource *src, ret->tlsFromConfig =3D src->tlsFromConfig; ret->tlsVerify =3D src->tlsVerify; ret->detected =3D src->detected; + ret->debugLevel =3D src->debugLevel; + ret->debug =3D src->debug; /* storage driver metadata are not copied */ ret->drv =3D NULL; diff --git a/src/util/virstoragefile.h b/src/util/virstoragefile.h index af8f56c8a1..24382a0a6b 100644 --- a/src/util/virstoragefile.h +++ b/src/util/virstoragefile.h @@ -303,6 +303,9 @@ struct _virStorageSource { bool tlsVerify; bool detected; /* true if this entry was not provided by the user */ + + unsigned int debugLevel; + bool debug; }; --=20 2.14.3 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list