From 98fafb0c3eca6141c808cd3028f95548a55f2e73 Mon Sep 17 00:00:00 2001 From: David Allan Date: Mon, 7 Jun 2010 15:06:20 -0400 Subject: [PATCH] Add multiiqn XML dump * Use virBufferEscapeString() per Dan B. --- src/conf/storage_conf.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/conf/storage_conf.c b/src/conf/storage_conf.c index 9ae1a89a8a..bf86c9342f 100644 --- a/src/conf/storage_conf.c +++ b/src/conf/storage_conf.c @@ -815,6 +815,13 @@ virStoragePoolSourceFormat(virBufferPtr buf, src->name) virBufferVSprintf(buf," %s\n", src->name); + if ((options->flags & VIR_STORAGE_POOL_SOURCE_INITIATOR_IQN) && + src->initiator.iqn) { + virBufferAddLit(buf," \n"); + virBufferEscapeString(buf," \n", src->initiator.iqn); + virBufferAddLit(buf," \n"); + } + if (options->formatToString) { const char *format = (options->formatToString)(src->format); if (!format) {