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:
Peter Krempa 2015-04-07 16:00:16 +02:00
parent 9e4d7b48f8
commit c35b011087
1 changed files with 8 additions and 0 deletions

View File

@ -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",