]> git.proxmox.com Git - mirror_qemu.git/commitdiff
block: Mark commit, mirror, blkreplay as filters
authorMax Reitz <mreitz@redhat.com>
Wed, 13 May 2020 11:05:11 +0000 (13:05 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 18 May 2020 17:05:25 +0000 (19:05 +0200)
The commit, mirror, and blkreplay block nodes are filters, so they should
be marked as such.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20200513110544.176672-2-mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/blkreplay.c
block/commit.c
block/mirror.c

index c96ac8f4bc4dc2c7acee2109554d168d9856b792..131c9e84770cd45d72f9211e968e255bf939889d 100644 (file)
@@ -135,6 +135,7 @@ static int blkreplay_snapshot_goto(BlockDriverState *bs,
 static BlockDriver bdrv_blkreplay = {
     .format_name            = "blkreplay",
     .instance_size          = 0,
+    .is_filter              = true,
 
     .bdrv_open              = blkreplay_open,
     .bdrv_child_perm        = bdrv_filter_default_perms,
index ba60fb795525a2f6d2afe36f8588ef8f3c62ed19..b0a8a793cd2e2649c2dd71ad5a7a9d37fc35917a 100644 (file)
@@ -240,6 +240,8 @@ static BlockDriver bdrv_commit_top = {
     .bdrv_co_block_status       = bdrv_co_block_status_from_backing,
     .bdrv_refresh_filename      = bdrv_commit_top_refresh_filename,
     .bdrv_child_perm            = bdrv_commit_top_child_perm,
+
+    .is_filter                  = true,
 };
 
 void commit_start(const char *job_id, BlockDriverState *bs,
index 201ffa26f900548de76e334958ea23e36077650a..55e992670ae4e87be4b96958568b7ca11aa1d577 100644 (file)
@@ -1530,6 +1530,8 @@ static BlockDriver bdrv_mirror_top = {
     .bdrv_co_block_status       = bdrv_co_block_status_from_backing,
     .bdrv_refresh_filename      = bdrv_mirror_top_refresh_filename,
     .bdrv_child_perm            = bdrv_mirror_top_child_perm,
+
+    .is_filter                  = true,
 };
 
 static BlockJob *mirror_start_job(