From 91661eb19fede64fc447c1cdce6b6c70f642291f Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Wed, 18 Oct 2023 09:55:19 +0200 Subject: [PATCH] virStorageSource: Use proper type for shadow copies of iomode/cachemode/discard/detect_zeroes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Ján Tomko --- src/conf/storage_source_conf.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/conf/storage_source_conf.h b/src/conf/storage_source_conf.h index 2db780611e..5e7d127453 100644 --- a/src/conf/storage_source_conf.h +++ b/src/conf/storage_source_conf.h @@ -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