mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-23 21:15:20 +00:00
virDomainDiskDef: Change type of rerror_policy to virDomainDiskErrorPolicy
Signed-off-by: Tim Wiederhake <twiederh@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
90a50b98f6
commit
7a3bf2589d
@ -8988,13 +8988,17 @@ virDomainDiskDefDriverParseXML(virDomainDiskDef *def,
|
||||
}
|
||||
VIR_FREE(tmp);
|
||||
|
||||
if ((tmp = virXMLPropString(cur, "rerror_policy")) &&
|
||||
(((def->rerror_policy = virDomainDiskErrorPolicyTypeFromString(tmp)) <= 0) ||
|
||||
(def->rerror_policy == VIR_DOMAIN_DISK_ERROR_POLICY_ENOSPACE))) {
|
||||
if ((tmp = virXMLPropString(cur, "rerror_policy"))) {
|
||||
int rerror_policy;
|
||||
|
||||
if (((rerror_policy = virDomainDiskErrorPolicyTypeFromString(tmp)) <= 0) ||
|
||||
(rerror_policy == VIR_DOMAIN_DISK_ERROR_POLICY_ENOSPACE)) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
_("unknown disk read error policy '%s'"), tmp);
|
||||
return -1;
|
||||
}
|
||||
def->rerror_policy = rerror_policy;
|
||||
}
|
||||
VIR_FREE(tmp);
|
||||
|
||||
if ((tmp = virXMLPropString(cur, "io")) &&
|
||||
|
@ -568,7 +568,7 @@ struct _virDomainDiskDef {
|
||||
char *product;
|
||||
virDomainDiskCache cachemode;
|
||||
virDomainDiskErrorPolicy error_policy;
|
||||
int rerror_policy; /* enum virDomainDiskErrorPolicy */
|
||||
virDomainDiskErrorPolicy rerror_policy;
|
||||
int iomode; /* enum virDomainDiskIo */
|
||||
virTristateSwitch ioeventfd;
|
||||
virTristateSwitch event_idx;
|
||||
|
Loading…
x
Reference in New Issue
Block a user