mirror of https://gitee.com/openkylin/libvirt.git
conf: ABI: Check WWN in disk abi stability check
Since the WWN influences guest behavior in naming disks we should treat this as vm ABI.
This commit is contained in:
parent
9e4d7b48f8
commit
c35b011087
|
@ -15889,6 +15889,14 @@ virDomainDiskDefCheckABIStability(virDomainDiskDefPtr src,
|
|||
return false;
|
||||
}
|
||||
|
||||
if (STRNEQ_NULLABLE(src->wwn, dst->wwn)) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
_("Target disk wwn '%s' does not match source '%s'"),
|
||||
NULLSTR(dst->wwn), NULLSTR(src->wwn));
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
if (src->src->readonly != dst->src->readonly ||
|
||||
src->src->shared != dst->src->shared) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||
|
|
Loading…
Reference in New Issue