]> Git Repo - qemu.git/blobdiff - block/mirror.c
assertions for block_int global state API
[qemu.git] / block / mirror.c
index 69b2c1c697e121878476e584240c1d108b6e7016..ce6bc58d1f4e3aff44e3c796374683858bcb1fb5 100644 (file)
@@ -1864,6 +1864,8 @@ void mirror_start(const char *job_id, BlockDriverState *bs,
     bool is_none_mode;
     BlockDriverState *base;
 
+    GLOBAL_STATE_CODE();
+
     if ((mode == MIRROR_SYNC_MODE_INCREMENTAL) ||
         (mode == MIRROR_SYNC_MODE_BITMAP)) {
         error_setg(errp, "Sync mode '%s' not supported",
@@ -1889,6 +1891,8 @@ BlockJob *commit_active_start(const char *job_id, BlockDriverState *bs,
     bool base_read_only;
     BlockJob *job;
 
+    GLOBAL_STATE_CODE();
+
     base_read_only = bdrv_is_read_only(base);
 
     if (base_read_only) {
This page took 0.023493 seconds and 4 git commands to generate.