mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 15:15:46 +00: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:
committed by
Kevin Wolf
parent
ebc2752b08
commit
b4ad82aab1
@ -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");
|
||||
|
Reference in New Issue
Block a user