diff options
author | Steve Sistare <steven.sistare@oracle.com> | 2023-10-25 12:44:25 -0700 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2023-11-01 16:13:59 +0100 |
commit | fa3673e497a1119fbf2c1f948da71907a84385d9 (patch) | |
tree | cf3afed52094103e76cf9959b6cc76d54e5f1047 /stubs | |
parent | eea1e5c9d6fac211cf3fe2d3d7f3be2bf767d421 (diff) |
migration: per-mode blockers
Extend the blocker interface so that a blocker can be registered for
one or more migration modes. The existing interfaces register a
blocker for all modes, and the new interfaces take a varargs list
of modes.
Internally, maintain a separate blocker list per mode. The same Error
object may be added to multiple lists. When a block is deleted, it is
removed from every list, and the Error is freed.
No functional change until a new mode is added.
Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <1698263069-406971-3-git-send-email-steven.sistare@oracle.com>
Diffstat (limited to 'stubs')
-rw-r--r-- | stubs/migr-blocker.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/stubs/migr-blocker.c b/stubs/migr-blocker.c index 17a5dbf87b..11cbff268f 100644 --- a/stubs/migr-blocker.c +++ b/stubs/migr-blocker.c @@ -6,6 +6,16 @@ int migrate_add_blocker(Error **reasonp, Error **errp) return 0; } +int migrate_add_blocker_normal(Error **reasonp, Error **errp) +{ + return 0; +} + +int migrate_add_blocker_modes(Error **reasonp, Error **errp, MigMode mode, ...) +{ + return 0; +} + void migrate_del_blocker(Error **reasonp) { } |