mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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 <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user