mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
virStorageSource: Use proper type for shadow copies of iomode/cachemode/discard/detect_zeroes
The aforementioned fields in virStorageSource struct are copies of the disk properties, but were not converted to the proper type yet. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
5ac61e7c15
commit
91661eb19f
@ -397,10 +397,10 @@ struct _virStorageSource {
|
|||||||
/* Libvirt currently stores the following properties in virDomainDiskDef.
|
/* Libvirt currently stores the following properties in virDomainDiskDef.
|
||||||
* These instances are currently just copies from the parent definition and
|
* These instances are currently just copies from the parent definition and
|
||||||
* are not mapped back to the XML */
|
* are not mapped back to the XML */
|
||||||
int iomode; /* enum virDomainDiskIo */
|
virDomainDiskIo iomode;
|
||||||
int cachemode; /* enum virDomainDiskCache */
|
virDomainDiskCache cachemode;
|
||||||
int discard; /* enum virDomainDiskDiscard */
|
virDomainDiskDiscard discard;
|
||||||
int detect_zeroes; /* enum virDomainDiskDetectZeroes */
|
virDomainDiskDetectZeroes detect_zeroes;
|
||||||
virTristateSwitch discard_no_unref;
|
virTristateSwitch discard_no_unref;
|
||||||
|
|
||||||
bool floppyimg; /* set to true if the storage source is going to be used
|
bool floppyimg; /* set to true if the storage source is going to be used
|
||||||
|
Loading…
Reference in New Issue
Block a user