mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
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.
This commit is contained in:
parent
6197d5726b
commit
0a1870ddd0
@ -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 {
|
|||||||
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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user