[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 01/34] block: Mark commit, mirror, blkreplay as filters
From: |
Max Reitz |
Subject: |
[PATCH v4 01/34] block: Mark commit, mirror, blkreplay as filters |
Date: |
Wed, 13 May 2020 13:05:11 +0200 |
The commit, mirror, and blkreplay block nodes are filters, so they should
be marked as such.
Signed-off-by: Max Reitz <address@hidden>
---
block/blkreplay.c | 1 +
block/commit.c | 2 ++
block/mirror.c | 2 ++
3 files changed, 5 insertions(+)
diff --git a/block/blkreplay.c b/block/blkreplay.c
index c96ac8f4bc..131c9e8477 100644
--- a/block/blkreplay.c
+++ b/block/blkreplay.c
@@ -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,
diff --git a/block/commit.c b/block/commit.c
index ba60fb7955..b0a8a793cd 100644
--- a/block/commit.c
+++ b/block/commit.c
@@ -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,
diff --git a/block/mirror.c b/block/mirror.c
index 201ffa26f9..55e992670a 100644
--- a/block/mirror.c
+++ b/block/mirror.c
@@ -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(
--
2.26.2
- [PATCH v4 00/34] block: Introduce real BdrvChildRole, Max Reitz, 2020/05/13
- [PATCH v4 01/34] block: Mark commit, mirror, blkreplay as filters,
Max Reitz <=
- [PATCH v4 02/34] block: Add BlockDriver.is_format, Max Reitz, 2020/05/13
- [PATCH v4 04/34] block: Add BdrvChildRole and BdrvChildRoleBits, Max Reitz, 2020/05/13
- [PATCH v4 03/34] block: Rename BdrvChildRole to BdrvChildClass, Max Reitz, 2020/05/13
- [PATCH v4 05/34] block: Add BdrvChildRole to BdrvChild, Max Reitz, 2020/05/13
- [PATCH v4 06/34] block: Pass BdrvChildRole to bdrv_child_perm(), Max Reitz, 2020/05/13
- [PATCH v4 07/34] block: Pass BdrvChildRole to .inherit_options(), Max Reitz, 2020/05/13
- [PATCH v4 08/34] block: Pass parent_is_format to .inherit_options(), Max Reitz, 2020/05/13
- [PATCH v4 09/34] block: Rename bdrv_inherited_options(), Max Reitz, 2020/05/13
- [PATCH v4 10/34] block: Add generic bdrv_inherited_options(), Max Reitz, 2020/05/13