提交 98fafb0c 编写于 作者: D David Allan

Add multiiqn XML dump

* Use virBufferEscapeString() per Dan B.
上级 9cb08020
...@@ -815,6 +815,13 @@ virStoragePoolSourceFormat(virBufferPtr buf, ...@@ -815,6 +815,13 @@ virStoragePoolSourceFormat(virBufferPtr buf,
src->name) src->name)
virBufferVSprintf(buf," <name>%s</name>\n", src->name); virBufferVSprintf(buf," <name>%s</name>\n", src->name);
if ((options->flags & VIR_STORAGE_POOL_SOURCE_INITIATOR_IQN) &&
src->initiator.iqn) {
virBufferAddLit(buf," <initiator>\n");
virBufferEscapeString(buf," <iqn name='%s'/>\n", src->initiator.iqn);
virBufferAddLit(buf," </initiator>\n");
}
if (options->formatToString) { if (options->formatToString) {
const char *format = (options->formatToString)(src->format); const char *format = (options->formatToString)(src->format);
if (!format) { if (!format) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册