]> xenbits.xensource.com Git - libvirt.git/commitdiff
util: storage: Add fields for debug options for disk drivers
authorPeter Krempa <pkrempa@redhat.com>
Thu, 23 Nov 2017 15:06:33 +0000 (16:06 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 23 Nov 2017 17:50:04 +0000 (18:50 +0100)
Some drive backends allow output of debugging information which can be
configured using properties of the image. Add fields to virStorageSource
which will allow configuring them.

src/util/virstoragefile.c
src/util/virstoragefile.h

index 45a6dea8a0268c277a2514adde0d8c2b7ba54dc9..6594715e5e56ce3dbbf41b121e32037cf93b4d68 100644 (file)
@@ -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;
index af8f56c8a1294430080f86a264feb20afe5e90b1..24382a0a6b3cf03c8fbec0b8ad32dea583649963 100644 (file)
@@ -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;
 };