[PATCH 2/5] virDomainDefHasManagedPR: Consider also disk's 'mirror' chain

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

 



Consider also the destination of a block-copy job.

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

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 2ef18b77fc..87f87bbe56 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -31372,6 +31372,9 @@ virDomainDefHasManagedPR(const virDomainDef *def)
     for (i = 0; i < def->ndisks; i++) {
         if (virStorageSourceChainHasManagedPR(def->disks[i]->src))
             return true;
+
+        if (virStorageSourceChainHasManagedPR(def->disks[i]->mirror))
+            return true;
     }

     return false;
-- 
2.48.1




[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