mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-01 17:35:17 +00:00
conf: storage: use virXMLNamespaceFormatNS
Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
975056af89
commit
ff94298fad
@ -1171,8 +1171,8 @@ virStoragePoolDefFormatBuf(virBufferPtr buf,
|
||||
return -1;
|
||||
}
|
||||
virBufferAsprintf(buf, "<pool type='%s'", type);
|
||||
if (def->namespaceData && def->ns.href)
|
||||
virBufferAsprintf(buf, " %s", (def->ns.href)());
|
||||
if (def->namespaceData && def->ns.format)
|
||||
virXMLNamespaceFormatNS(buf, &def->ns);
|
||||
virBufferAddLit(buf, ">\n");
|
||||
virBufferAdjustIndent(buf, 2);
|
||||
virBufferEscapeString(buf, "<name>%s</name>\n", def->name);
|
||||
|
@ -636,7 +636,7 @@ virStoragePoolDefFSNamespaceFormatXML(virBufferPtr buf,
|
||||
static const char *
|
||||
virStoragePoolDefFSNamespaceHref(void)
|
||||
{
|
||||
return "xmlns:fs='" STORAGE_POOL_FS_NAMESPACE_HREF "'";
|
||||
return STORAGE_POOL_FS_NAMESPACE_HREF;
|
||||
}
|
||||
|
||||
#endif /* WITH_STORAGE_FS */
|
||||
|
@ -178,7 +178,7 @@ virStoragePoolDefRBDNamespaceFormatXML(virBufferPtr buf,
|
||||
static const char *
|
||||
virStoragePoolDefRBDNamespaceHref(void)
|
||||
{
|
||||
return "xmlns:rbd='" STORAGE_POOL_RBD_NAMESPACE_HREF "'";
|
||||
return STORAGE_POOL_RBD_NAMESPACE_HREF;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user