From 54b36c03a0b22da492cd818136416e4dd582f323 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Thu, 21 Mar 2019 08:29:44 +0100 Subject: [PATCH] conf: Pass 'flags' to virDomainDiskSourceFormat in virDomainDiskDefFormatMirror MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/conf/domain_conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.2