mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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;
|
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 ||
|
if (src->src->readonly != dst->src->readonly ||
|
||||||
src->src->shared != dst->src->shared) {
|
src->src->shared != dst->src->shared) {
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||||
|
Loading…
Reference in New Issue
Block a user