From: Peter Krempa Date: Thu, 21 Mar 2019 07:29:44 +0000 (+0100) Subject: conf: Pass 'flags' to virDomainDiskSourceFormat in virDomainDiskDefFormatMirror X-Git-Tag: v5.3.0-rc1~310 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54b36c03a0b22da492cd818136416e4dd582f323;p=thirdparty%2Flibvirt.git conf: Pass 'flags' to virDomainDiskSourceFormat in virDomainDiskDefFormatMirror We have the proper flags available so we can pass them to the fomatter. The added bonus is that private data may be formatted into the status XML. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index c8e515abd4..62a46f57ec 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -24040,7 +24040,7 @@ virDomainDiskDefFormatMirror(virBufferPtr buf, virDomainDiskMirrorStateTypeToString(disk->mirrorState)); virBufferEscapeString(&childBuf, "\n", formatStr); - if (virDomainDiskSourceFormat(&childBuf, disk->mirror, 0, false, 0, xmlopt) < 0) + if (virDomainDiskSourceFormat(&childBuf, disk->mirror, 0, false, flags, xmlopt) < 0) return -1; if (virXMLFormatElement(buf, "mirror", &attrBuf, &childBuf) < 0)