Add multiiqn XML dump

* Use virBufferEscapeString() per Dan B.
This commit is contained in:
David Allan 2010-06-07 15:06:20 -04:00
parent 9cb08020e1
commit 98fafb0c3e

View File

@ -815,6 +815,13 @@ virStoragePoolSourceFormat(virBufferPtr buf,
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) {
const char *format = (options->formatToString)(src->format);
if (!format) {