[libvirt] [PATCH 2/6] util: storage: Add fields for debug options for disk drivers

Peter Krempa posted 6 patches 7 years, 5 months ago
[libvirt] [PATCH 2/6] util: storage: Add fields for debug options for disk drivers
Posted by Peter Krempa 7 years, 5 months ago
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 = src->tlsFromConfig;
     ret->tlsVerify = src->tlsVerify;
     ret->detected = src->detected;
+    ret->debugLevel = src->debugLevel;
+    ret->debug = src->debug;

     /* storage driver metadata are not copied */
     ret->drv = 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;
 };


-- 
2.14.3

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH 2/6] util: storage: Add fields for debug options for disk drivers
Posted by Ján Tomko 7 years, 5 months ago
On Thu, Nov 23, 2017 at 05:24:39PM +0100, Peter Krempa wrote:
>Some drive backends allow output of debugging information which can be
>configured using properities of the image. Add fields to

*properties

Jan

>virStorageSource which will allow carrying them.
>---
> src/util/virstoragefile.c | 2 ++
> src/util/virstoragefile.h | 3 +++
> 2 files changed, 5 insertions(+)
>
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list