mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-17 21:26:13 -07:00
assertions for block_int global state API
Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com> Message-Id: <20220303151616.325444-13-eesposit@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
ebc2752b08
commit
b4ad82aab1
10 changed files with 42 additions and 0 deletions
|
|
@ -253,6 +253,8 @@ void commit_start(const char *job_id, BlockDriverState *bs,
|
|||
uint64_t base_perms, iter_shared_perms;
|
||||
int ret;
|
||||
|
||||
GLOBAL_STATE_CODE();
|
||||
|
||||
assert(top != bs);
|
||||
if (bdrv_skip_filters(top) == bdrv_skip_filters(base)) {
|
||||
error_setg(errp, "Invalid files for merge: top and base are the same");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue