|
|
9119d9 |
From 03adce7ea2b92a0650652fe9f12279207459a860 Mon Sep 17 00:00:00 2001
|
|
|
9119d9 |
Message-Id: <03adce7ea2b92a0650652fe9f12279207459a860@dist-git>
|
|
|
9119d9 |
From: Peter Krempa <pkrempa@redhat.com>
|
|
|
9119d9 |
Date: Fri, 26 Sep 2014 09:47:01 +0200
|
|
|
9119d9 |
Subject: [PATCH] qemu: Always re-detect backing chain
|
|
|
9119d9 |
|
|
|
9119d9 |
Since 363e9a68 we track backing chain metadata when creating snapshots
|
|
|
9119d9 |
the right way even for the inactive configuration. As we did not yet
|
|
|
9119d9 |
update other code paths that modify the backing chain (blockpull) the
|
|
|
9119d9 |
newDef backing chain gets out of sync.
|
|
|
9119d9 |
|
|
|
9119d9 |
After stopping of a VM the new definition gets copied to the next start
|
|
|
9119d9 |
one. The new VM then has incorrect backing chain info. This patch
|
|
|
9119d9 |
switches the backing chain detector to always purge the existing backing
|
|
|
9119d9 |
chain and forces re-detection to avoid this issue until we'll have full
|
|
|
9119d9 |
backing chain tracking support.
|
|
|
9119d9 |
|
|
|
9119d9 |
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1144922
|
|
|
9119d9 |
(cherry picked from commit fe7ef7b112b3b4d6f9c9edf499a79683fb0b7edb)
|
|
|
9119d9 |
|
|
|
9119d9 |
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
9119d9 |
---
|
|
|
9119d9 |
src/qemu/qemu_domain.c | 2 +-
|
|
|
9119d9 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
9119d9 |
|
|
|
9119d9 |
diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
|
|
|
9119d9 |
index ac70f62..72d7279 100644
|
|
|
9119d9 |
--- a/src/qemu/qemu_domain.c
|
|
|
9119d9 |
+++ b/src/qemu/qemu_domain.c
|
|
|
9119d9 |
@@ -2544,7 +2544,7 @@ qemuDomainCheckDiskPresence(virQEMUDriverPtr driver,
|
|
|
9119d9 |
virFileExists(path))
|
|
|
9119d9 |
continue;
|
|
|
9119d9 |
|
|
|
9119d9 |
- if (qemuDomainDetermineDiskChain(driver, vm, disk, false, true) >= 0)
|
|
|
9119d9 |
+ if (qemuDomainDetermineDiskChain(driver, vm, disk, true, true) >= 0)
|
|
|
9119d9 |
continue;
|
|
|
9119d9 |
|
|
|
9119d9 |
if (disk->startupPolicy &&
|
|
|
9119d9 |
--
|
|
|
9119d9 |
2.1.1
|
|
|
9119d9 |
|