提交 c4027243 编写于 作者: C Chris Lalancette

Brown paper bag bug. I didn't preserve the

<sources> tags properly, and I didn't put the <source> tag into the
proper place, so I totally changed the output of the discovery XML.
Fix this up to do the right thing.
Signed-off-by: NChris Lalancette <clalance@redhat.com>
上级 1509b802
Thu Oct 23 15:20:00 CEST 2008 Chris Lalancete <clalance@redhat.com>
* src/storage_conf.c: brown paper bag bug. I didn't preserve the
<sources> tags properly, and I didn't put the <source> tag into the
proper place, so I totally changed the output of the discovery XML.
Fix this up to do the right thing.
Thu Oct 23 15:11:03 CEST 2008 Daniel Veillard <veillard@redhat.com>
* include/libvirt/libvirt.h include/libvirt/libvirt.h.in
......
......@@ -1277,15 +1277,16 @@ char *virStoragePoolSourceListFormat(virConnectPtr conn ATTRIBUTE_UNUSED,
int i, j;
virBuffer buf = VIR_BUFFER_INITIALIZER;
virBufferAddLit(&buf, "<source>");
virBufferAddLit(&buf, "<sources>");
for (i = 0; i < def->nsources; i++) {
virBufferVSprintf(&buf, "<name>%s</name>", def->sources[i].name);
virBufferVSprintf(&buf, "<source><name>%s</name>", def->sources[i].name);
for (j = 0; j < def->sources[i].ndevice; j++)
virBufferVSprintf(&buf, "<device path='%s'/>", def->sources[i].devices[j].path);
virBufferAddLit(&buf, "</source>");
}
virBufferAddLit(&buf, "</source>");
virBufferAddLit(&buf, "</sources>");
return virBufferContentAndReset(&buf);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册