mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user