[PATCH 1/2] Add multiiqn XML dump

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]