mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-24 05:25:18 +00:00
virDomainDiskDef: Change type of iomode to virDomainDiskInfo
Signed-off-by: Tim Wiederhake <twiederh@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
7a3bf2589d
commit
de472f7248
@ -9001,12 +9001,16 @@ virDomainDiskDefDriverParseXML(virDomainDiskDef *def,
|
||||
}
|
||||
VIR_FREE(tmp);
|
||||
|
||||
if ((tmp = virXMLPropString(cur, "io")) &&
|
||||
(def->iomode = virDomainDiskIoTypeFromString(tmp)) <= 0) {
|
||||
if ((tmp = virXMLPropString(cur, "io"))) {
|
||||
int iomode;
|
||||
|
||||
if ((iomode = virDomainDiskIoTypeFromString(tmp)) <= 0) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
_("unknown disk io mode '%s'"), tmp);
|
||||
return -1;
|
||||
}
|
||||
def->iomode = iomode;
|
||||
}
|
||||
VIR_FREE(tmp);
|
||||
|
||||
if ((tmp = virXMLPropString(cur, "ioeventfd"))) {
|
||||
|
@ -569,7 +569,7 @@ struct _virDomainDiskDef {
|
||||
virDomainDiskCache cachemode;
|
||||
virDomainDiskErrorPolicy error_policy;
|
||||
virDomainDiskErrorPolicy rerror_policy;
|
||||
int iomode; /* enum virDomainDiskIo */
|
||||
virDomainDiskIo iomode;
|
||||
virTristateSwitch ioeventfd;
|
||||
virTristateSwitch event_idx;
|
||||
virTristateSwitch copy_on_read;
|
||||
|
Loading…
x
Reference in New Issue
Block a user