Signed-off-by: Andrea Bolognani <abologna(a)redhat.com>
---
src/qemu/qemu_migration.c | 5 +++++
src/qemu/qemu_migration.h | 1 +
2 files changed, 6 insertions(+)
diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c
index ac58aa1a8c..bf6f1de310 100644
--- a/src/qemu/qemu_migration.c
+++ b/src/qemu/qemu_migration.c
@@ -1600,6 +1600,11 @@ qemuMigrationSrcIsSafe(virDomainDef *def,
if ((rc = virFileIsSharedFS(src)) < 0) {
return false;
} else if (rc == 0) {
+ /* Ignore the outcome of this check if we've been
+ * asked to assume that storage is shared */
+ if (flags & VIR_MIGRATE_ASSUME_SHARED_STORAGE)
+ break;
+
unsafe = true;
}
if ((rc = virFileIsClusterFS(src)) < 0)
diff --git a/src/qemu/qemu_migration.h b/src/qemu/qemu_migration.h
index ed62fd4a91..c21417084a 100644
--- a/src/qemu/qemu_migration.h
+++ b/src/qemu/qemu_migration.h
@@ -62,6 +62,7 @@
VIR_MIGRATE_NON_SHARED_SYNCHRONOUS_WRITES | \
VIR_MIGRATE_POSTCOPY_RESUME | \
VIR_MIGRATE_ZEROCOPY | \
+ VIR_MIGRATE_ASSUME_SHARED_STORAGE | \
0)
/* All supported migration parameters and their types. */
--
2.41.0