From 0a1870ddd0223ad1b76ddefa88348faa7c5224a2 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Thu, 23 Nov 2017 16:06:33 +0100 Subject: [PATCH] util: storage: Add fields for debug options for disk drivers 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 | 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; }; -- GitLab