[libvirt] [PATCH 1/2] Add multiiqn XML dump

David Allan dallan at redhat.com
Mon Jun 7 20:58:08 UTC 2010


---
 src/conf/storage_conf.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/conf/storage_conf.c b/src/conf/storage_conf.c
index 422e76a..7ed49a1 100644
--- a/src/conf/storage_conf.c
+++ b/src/conf/storage_conf.c
@@ -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");
+        virBufferVSprintf(buf,"      <iqn name='%s'/>\n", src->initiator.iqn);
+        virBufferAddLit(buf,"    </initiator>\n");
+    }
+
     if (options->formatToString) {
         const char *format = (options->formatToString)(src->format);
         if (!format) {
-- 
1.7.0.1




More information about the libvir-list mailing list