[PATCH 7/9] test: set 'type' field of virStorageSource

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

 



Set the type so that the iterators will work after upcoming
modification.
---
 tests/virstoragetest.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/virstoragetest.c b/tests/virstoragetest.c
index ffebd4dc1..ad4514871 100644
--- a/tests/virstoragetest.c
+++ b/tests/virstoragetest.c
@@ -580,6 +580,7 @@ testPathRelativePrepare(void)
     size_t i;

     for (i = 0; i < ARRAY_CARDINALITY(backingchain); i++) {
+        backingchain[i].type = VIR_STORAGE_TYPE_FILE;
         if (i < ARRAY_CARDINALITY(backingchain) - 1)
             backingchain[i].backingStore = &backingchain[i + 1];
         else
-- 
2.14.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]
  Powered by Linux