From: Peter Krempa Date: Tue, 7 Apr 2015 14:00:16 +0000 (+0200) Subject: conf: ABI: Check WWN in disk abi stability check X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=c35b011087548a9272c5339b6a88e4797536e093;p=people%2Fliuw%2Flibxenctrl-split%2Flibvirt.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. --- diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index ad30e94ed..8ccf76317 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -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",