]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
conf: Pass 'flags' to virDomainDiskSourceFormat in virDomainDiskDefFormatMirror
authorPeter Krempa <pkrempa@redhat.com>
Thu, 21 Mar 2019 07:29:44 +0000 (08:29 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 3 Apr 2019 09:58:09 +0000 (11:58 +0200)
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@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/domain_conf.c

index c8e515abd4c6640df10b586d20a036b89082a025..62a46f57ecb4c3f0dfe43117b23a4ce559cf75fc 100644 (file)
@@ -24040,7 +24040,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)