The function will be used to setup storage for non-shared-storage
migration, not just precreate images.

Signed-off-by: Peter Krempa <pkre...@redhat.com>
---
 src/qemu/qemu_migration.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c
index 0ae88eec03..2d91fc3e8b 100644
--- a/src/qemu/qemu_migration.c
+++ b/src/qemu/qemu_migration.c
@@ -434,11 +434,11 @@ qemuMigrationHasAnyStorageMigrationDisks(virDomainDef 
*def,


 static int
-qemuMigrationDstPrecreateStorage(virDomainObj *vm,
-                                 qemuMigrationCookieNBD *nbd,
-                                 size_t nmigrate_disks,
-                                 const char **migrate_disks,
-                                 bool incremental)
+qemuMigrationDstPrepareStorage(virDomainObj *vm,
+                               qemuMigrationCookieNBD *nbd,
+                               size_t nmigrate_disks,
+                               const char **migrate_disks,
+                               bool incremental)
 {
     g_autoptr(virConnect) conn = NULL;
     size_t i = 0;
@@ -3097,9 +3097,9 @@ qemuMigrationDstPrepareActive(virQEMUDriver *driver,
         goto error;
     }

-    if (qemuMigrationDstPrecreateStorage(vm, mig->nbd,
-                                         nmigrate_disks, migrate_disks,
-                                         !!(flags & 
VIR_MIGRATE_NON_SHARED_INC)) < 0)
+    if (qemuMigrationDstPrepareStorage(vm, mig->nbd,
+                                       nmigrate_disks, migrate_disks,
+                                       !!(flags & VIR_MIGRATE_NON_SHARED_INC)) 
< 0)
         goto error;

     if (tunnel &&
-- 
2.43.0
_______________________________________________
Devel mailing list -- devel@lists.libvirt.org
To unsubscribe send an email to devel-le...@lists.libvirt.org

Reply via email to