migration: Make migration blocker work for snapshots too
commit4c170330aae4a4ed75c3a8638b7d4c5d9f365244
authorPeter Xu <peterx@redhat.com>
Wed, 22 Sep 2021 16:20:07 +0000 (22 12:20 -0400)
committerJuan Quintela <quintela@redhat.com>
Mon, 1 Nov 2021 21:56:43 +0000 (1 22:56 +0100)
treefdd88259b76fa72d61e1197f5c8fc577f9d030e1
parent0e21bf24608b801bcdf6057f47808613061ecbe3
migration: Make migration blocker work for snapshots too

save_snapshot() checks migration blocker, which looks sane.  At the meantime we
should also teach the blocker add helper to fail if during a snapshot, just
like for migrations.

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/migration.c