aboutsummaryrefslogtreecommitdiff
path: root/include/migration
diff options
context:
space:
mode:
authorCédric Le Goater <clg@redhat.com>2024-05-16 14:46:52 +0200
committerCédric Le Goater <clg@redhat.com>2024-05-16 16:59:19 +0200
commit019d9e6cc408f402dd27d6884ac7b742e0e4f99e (patch)
tree1006fea58cb7cb34daf970a45c4363c88615a20e /include/migration
parent0f21358f33f0b9aa1b8dd5e33de92118186999db (diff)
migration: Extend migration_file_set_error() with Error* argument
Use it to update the current error of the migration stream if available and if not, simply print out the error. Next changes will update with an error to report. Reviewed-by: Avihai Horon <avihaih@nvidia.com> Acked-by: Fabiano Rosas <farosas@suse.de> Reviewed-by: Eric Auger <eric.auger@redhat.com> Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'include/migration')
-rw-r--r--include/migration/misc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/migration/misc.h b/include/migration/misc.h
index bf7339cc1e..bfadc5613b 100644
--- a/include/migration/misc.h
+++ b/include/migration/misc.h
@@ -97,7 +97,7 @@ void migration_add_notifier_mode(NotifierWithReturn *notify,
void migration_remove_notifier(NotifierWithReturn *notify);
bool migration_is_running(void);
-void migration_file_set_error(int err);
+void migration_file_set_error(int ret, Error *err);
/* True if incoming migration entered POSTCOPY_INCOMING_DISCARD */
bool migration_in_incoming_postcopy(void);