]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virStorageSource: Use proper type for shadow copies of iomode/cachemode/discard/detec...
authorPeter Krempa <pkrempa@redhat.com>
Wed, 18 Oct 2023 07:55:19 +0000 (09:55 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 26 Oct 2023 07:02:23 +0000 (09:02 +0200)
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>
src/conf/storage_source_conf.h

index 2db780611e90b43cc25ac3b59a80bf9f2e6ff815..5e7d127453e8085659d204ef0b221360d5dab795 100644 (file)
@@ -397,10 +397,10 @@ struct _virStorageSource {
     /* Libvirt currently stores the following properties in virDomainDiskDef.
      * These instances are currently just copies from the parent definition and
      * are not mapped back to the XML */
-    int iomode; /* enum virDomainDiskIo */
-    int cachemode; /* enum virDomainDiskCache */
-    int discard; /* enum virDomainDiskDiscard */
-    int detect_zeroes; /* enum virDomainDiskDetectZeroes */
+    virDomainDiskIo iomode;
+    virDomainDiskCache cachemode;
+    virDomainDiskDiscard discard;
+    virDomainDiskDetectZeroes detect_zeroes;
     virTristateSwitch discard_no_unref;
 
     bool floppyimg; /* set to true if the storage source is going to be used