[libvirt] [PATCH v2 26/29] conf: Pass 'flags' to virDomainDiskSourceFormat in virDomainDiskDefFormatMirror

Peter Krempa pkrempa at redhat.com
Fri Mar 22 18:01:02 UTC 2019


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 <pkrempa at redhat.com>
---
 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 5c82ac0a18..40924b1d29 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -24050,7 +24050,7 @@ virDomainDiskDefFormatMirror(virBufferPtr buf,
                               virDomainDiskMirrorStateTypeToString(disk->mirrorState));

     virBufferEscapeString(&childBuf, "<format type='%s'/>\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.20.1




More information about the libvir-list mailing list