summaryrefslogtreecommitdiffstats
path: root/blockdev.c
diff options
context:
space:
mode:
authorJohn Snow2019-07-29 22:35:54 +0200
committerJohn Snow2019-08-16 22:28:02 +0200
commitb30ffbef531bb851dd96f335de4788e90471234e (patch)
tree2dcd188efc67e9c5a69da9ed824c83566f4cadbc /blockdev.c
parentiotests: add test 257 for bitmap-mode backups (diff)
downloadqemu-b30ffbef531bb851dd96f335de4788e90471234e.tar.gz
qemu-b30ffbef531bb851dd96f335de4788e90471234e.tar.xz
qemu-b30ffbef531bb851dd96f335de4788e90471234e.zip
block/backup: loosen restriction on readonly bitmaps
With the "never" sync policy, we actually can utilize readonly bitmaps now. Loosen the check at the QMP level, and tighten it based on provided arguments down at the job creation level instead. Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Message-id: 20190709232550.10724-19-jsnow@redhat.com Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'blockdev.c')
-rw-r--r--blockdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/blockdev.c b/blockdev.c
index 985b6cd75c..a44ab1f709 100644
--- a/blockdev.c
+++ b/blockdev.c
@@ -3491,7 +3491,7 @@ static BlockJob *do_backup_common(BackupCommon *backup,
"when providing a bitmap");
return NULL;
}
- if (bdrv_dirty_bitmap_check(bmap, BDRV_BITMAP_DEFAULT, errp)) {
+ if (bdrv_dirty_bitmap_check(bmap, BDRV_BITMAP_ALLOW_RO, errp)) {
return NULL;
}
}