diff options
author | Juan Quintela <quintela@redhat.com> | 2023-10-18 13:55:11 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2023-10-31 08:44:33 +0100 |
commit | 8846b5bfca761d599974482c21fa6da3d3c13a70 (patch) | |
tree | 80922a10291b4f2da24f6fcf2196eb36cfe4e87a /migration/migration-hmp-cmds.c | |
parent | 40101f320d6bf504663327cd12e99f36555a1f56 (diff) |
migration: migrate 'blk' command option is deprecated.
Use blocked-mirror with NBD instead.
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20231018115513.2163-4-quintela@redhat.com>
Diffstat (limited to 'migration/migration-hmp-cmds.c')
-rw-r--r-- | migration/migration-hmp-cmds.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/migration/migration-hmp-cmds.c b/migration/migration-hmp-cmds.c index 83176f5bae..dfe98da355 100644 --- a/migration/migration-hmp-cmds.c +++ b/migration/migration-hmp-cmds.c @@ -750,6 +750,11 @@ void hmp_migrate(Monitor *mon, const QDict *qdict) " use blockdev-mirror with NBD instead"); } + if (blk) { + warn_report("option '-b' 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)) { |