mirror of https://gitee.com/openkylin/libvirt.git
conf: add ABI stability check for disk rotation rate
Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
62edbca6c4
commit
ee4abd6312
|
@ -22294,6 +22294,13 @@ virDomainDiskDefCheckABIStability(virDomainDiskDefPtr src,
|
|||
return false;
|
||||
}
|
||||
|
||||
if (src->rotation_rate != dst->rotation_rate) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
_("Target disk rotation rate %u RPM does not match source %u RPM"),
|
||||
dst->rotation_rate, src->rotation_rate);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!virDomainVirtioOptionsCheckABIStability(src->virtio, dst->virtio))
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue