diff options
author | Juan Quintela <quintela@redhat.com> | 2023-10-18 13:55:10 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2023-10-31 08:44:33 +0100 |
commit | 40101f320d6bf504663327cd12e99f36555a1f56 (patch) | |
tree | 37dd44c8f2d1233367d193a46bbeae4d18d8532b /migration | |
parent | bf1695c2523510ff8945d88c971b25baac66543d (diff) | |
download | qemu-40101f320d6bf504663327cd12e99f36555a1f56.zip qemu-40101f320d6bf504663327cd12e99f36555a1f56.tar.gz qemu-40101f320d6bf504663327cd12e99f36555a1f56.tar.bz2 |
migration: migrate 'inc' command option is deprecated.
Use blockdev-mirror with NBD instead.
Reviewed-by: Thomas Huth <thuth@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20231018115513.2163-3-quintela@redhat.com>
Diffstat (limited to 'migration')
-rw-r--r-- | migration/migration-hmp-cmds.c | 5 | ||||
-rw-r--r-- | migration/migration.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/migration/migration-hmp-cmds.c b/migration/migration-hmp-cmds.c index a82597f..83176f5 100644 --- a/migration/migration-hmp-cmds.c +++ b/migration/migration-hmp-cmds.c @@ -745,6 +745,11 @@ void hmp_migrate(Monitor *mon, const QDict *qdict) const char *uri = qdict_get_str(qdict, "uri"); Error *err = NULL; + if (inc) { + warn_report("option '-i' is deprecated;" + " use blockdev-mirror with NBD instead"); + } + qmp_migrate(uri, !!blk, blk, !!inc, inc, false, false, true, resume, &err); if (hmp_handle_error(mon, err)) { diff --git a/migration/migration.c b/migration/migration.c index 67547eb..06a706a 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -1620,6 +1620,11 @@ static bool migrate_prepare(MigrationState *s, bool blk, bool blk_inc, { Error *local_err = NULL; + if (blk_inc) { + warn_report("parameter 'inc' is deprecated;" + " use blockdev-mirror with NBD instead"); + } + if (resume) { if (s->state != MIGRATION_STATUS_POSTCOPY_PAUSED) { error_setg(errp, "Cannot resume if there is no " |