提交 0a1870dd 编写于 作者: P Peter Krempa

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.
上级 6197d572
...@@ -2061,6 +2061,8 @@ virStorageSourceCopy(const virStorageSource *src, ...@@ -2061,6 +2061,8 @@ virStorageSourceCopy(const virStorageSource *src,
ret->tlsFromConfig = src->tlsFromConfig; ret->tlsFromConfig = src->tlsFromConfig;
ret->tlsVerify = src->tlsVerify; ret->tlsVerify = src->tlsVerify;
ret->detected = src->detected; ret->detected = src->detected;
ret->debugLevel = src->debugLevel;
ret->debug = src->debug;
/* storage driver metadata are not copied */ /* storage driver metadata are not copied */
ret->drv = NULL; ret->drv = NULL;
......
...@@ -303,6 +303,9 @@ struct _virStorageSource { ...@@ -303,6 +303,9 @@ struct _virStorageSource {
bool tlsVerify; bool tlsVerify;
bool detected; /* true if this entry was not provided by the user */ bool detected; /* true if this entry was not provided by the user */
unsigned int debugLevel;
bool debug;
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册