[PATCH 7/8] qemuDomainVirStorageSourceFindByNodeName: Match also '<dataStore>' sources

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

 



As the source for the data file is a completely separate
virStorageSource including it's own index we need to match it
explicitly, so that code such as storage threshold events work properly
and separately for the data file.

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 src/qemu/qemu_domain.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
index 150f0736f3..4499fed6bc 100644
--- a/src/qemu/qemu_domain.c
+++ b/src/qemu/qemu_domain.c
@@ -2921,6 +2921,10 @@ qemuDomainVirStorageSourceFindByNodeName(virStorageSource *top,
     for (tmp = top; virStorageSourceIsBacking(tmp); tmp = tmp->backingStore) {
         if (qemuDomainVirStorageSourceMatchNodename(tmp, nodeName))
             return tmp;
+
+        if (tmp->dataFileStore &&
+            qemuDomainVirStorageSourceMatchNodename(tmp->dataFileStore, nodeName))
+            return tmp->dataFileStore;
     }

     return NULL;
-- 
2.47.0




[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