mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemuStorageSourcePrivateDataFormat: Rename 'tmp' to 'objectsChildBuf'
Be consistent with other children buffer variable naming scheme. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
51dc38fe31
commit
531adf3274
@ -2005,9 +2005,9 @@ static int
|
|||||||
qemuStorageSourcePrivateDataFormat(virStorageSource *src,
|
qemuStorageSourcePrivateDataFormat(virStorageSource *src,
|
||||||
virBuffer *buf)
|
virBuffer *buf)
|
||||||
{
|
{
|
||||||
g_auto(virBuffer) tmp = VIR_BUFFER_INIT_CHILD(buf);
|
|
||||||
qemuDomainStorageSourcePrivate *srcPriv = QEMU_DOMAIN_STORAGE_SOURCE_PRIVATE(src);
|
qemuDomainStorageSourcePrivate *srcPriv = QEMU_DOMAIN_STORAGE_SOURCE_PRIVATE(src);
|
||||||
g_auto(virBuffer) nodenamesChildBuf = VIR_BUFFER_INIT_CHILD(buf);
|
g_auto(virBuffer) nodenamesChildBuf = VIR_BUFFER_INIT_CHILD(buf);
|
||||||
|
g_auto(virBuffer) objectsChildBuf = VIR_BUFFER_INIT_CHILD(buf);
|
||||||
|
|
||||||
virBufferEscapeString(&nodenamesChildBuf, "<nodename type='storage' name='%s'/>\n", src->nodestorage);
|
virBufferEscapeString(&nodenamesChildBuf, "<nodename type='storage' name='%s'/>\n", src->nodestorage);
|
||||||
virBufferEscapeString(&nodenamesChildBuf, "<nodename type='format' name='%s'/>\n", src->nodeformat);
|
virBufferEscapeString(&nodenamesChildBuf, "<nodename type='format' name='%s'/>\n", src->nodeformat);
|
||||||
@ -2025,16 +2025,16 @@ qemuStorageSourcePrivateDataFormat(virStorageSource *src,
|
|||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (srcPriv) {
|
if (srcPriv) {
|
||||||
qemuStorageSourcePrivateDataFormatSecinfo(&tmp, srcPriv->secinfo, "auth");
|
qemuStorageSourcePrivateDataFormatSecinfo(&objectsChildBuf, srcPriv->secinfo, "auth");
|
||||||
qemuStorageSourcePrivateDataFormatSecinfo(&tmp, srcPriv->encinfo, "encryption");
|
qemuStorageSourcePrivateDataFormatSecinfo(&objectsChildBuf, srcPriv->encinfo, "encryption");
|
||||||
qemuStorageSourcePrivateDataFormatSecinfo(&tmp, srcPriv->httpcookie, "httpcookie");
|
qemuStorageSourcePrivateDataFormatSecinfo(&objectsChildBuf, srcPriv->httpcookie, "httpcookie");
|
||||||
qemuStorageSourcePrivateDataFormatSecinfo(&tmp, srcPriv->tlsKeySecret, "tlskey");
|
qemuStorageSourcePrivateDataFormatSecinfo(&objectsChildBuf, srcPriv->tlsKeySecret, "tlskey");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (src->tlsAlias)
|
if (src->tlsAlias)
|
||||||
virBufferAsprintf(&tmp, "<TLSx509 alias='%s'/>\n", src->tlsAlias);
|
virBufferAsprintf(&objectsChildBuf, "<TLSx509 alias='%s'/>\n", src->tlsAlias);
|
||||||
|
|
||||||
virXMLFormatElement(buf, "objects", NULL, &tmp);
|
virXMLFormatElement(buf, "objects", NULL, &objectsChildBuf);
|
||||||
|
|
||||||
if (src->thresholdEventWithIndex)
|
if (src->thresholdEventWithIndex)
|
||||||
virBufferAddLit(buf, "<thresholdEvent indexUsed='yes'/>\n");
|
virBufferAddLit(buf, "<thresholdEvent indexUsed='yes'/>\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user