[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 01/11] block: Mark commit and mirror as filter drive
From: |
Max Reitz |
Subject: |
[Qemu-devel] [PATCH 01/11] block: Mark commit and mirror as filter drivers |
Date: |
Thu, 9 Aug 2018 23:37:51 +0200 |
The commit and mirror block nodes are filters, so they should be marked
as such.
Signed-off-by: Max Reitz <address@hidden>
---
block/commit.c | 2 ++
block/mirror.c | 2 ++
2 files changed, 4 insertions(+)
diff --git a/block/commit.c b/block/commit.c
index 14788b0708..a95b87bb3a 100644
--- a/block/commit.c
+++ b/block/commit.c
@@ -261,6 +261,8 @@ static BlockDriver bdrv_commit_top = {
.bdrv_refresh_filename = bdrv_commit_top_refresh_filename,
.bdrv_close = bdrv_commit_top_close,
.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 b4287a1e2b..5c561c6241 100644
--- a/block/mirror.c
+++ b/block/mirror.c
@@ -1457,6 +1457,8 @@ static BlockDriver bdrv_mirror_top = {
.bdrv_refresh_filename = bdrv_mirror_top_refresh_filename,
.bdrv_close = bdrv_mirror_top_close,
.bdrv_child_perm = bdrv_mirror_top_child_perm,
+
+ .is_filter = true,
};
static void mirror_start_job(const char *job_id, BlockDriverState *bs,
--
2.17.1
- [Qemu-devel] [PATCH 00/11] block: Deal with filters, Max Reitz, 2018/08/09
- [Qemu-devel] [PATCH 01/11] block: Mark commit and mirror as filter drivers,
Max Reitz <=
- [Qemu-devel] [PATCH 02/11] blockdev: Check @replaces in blockdev_mirror_common, Max Reitz, 2018/08/09
- [Qemu-devel] [PATCH 05/11] block: Fix check_to_replace_node(), Max Reitz, 2018/08/09
- [Qemu-devel] [PATCH 06/11] iotests: Add tests for mirror @replaces loops, Max Reitz, 2018/08/09
- [Qemu-devel] [PATCH 07/11] block: Leave BDS.backing_file constant, Max Reitz, 2018/08/09
- [Qemu-devel] [PATCH 04/11] block: Storage child access function, Max Reitz, 2018/08/09
- [Qemu-devel] [PATCH 08/11] iotests: Add filter commit test cases, Max Reitz, 2018/08/09
- [Qemu-devel] [PATCH 03/11] block: Filtered children access functions, Max Reitz, 2018/08/09
- [Qemu-devel] [PATCH 09/11] iotests: Add filter mirror test cases, Max Reitz, 2018/08/09
- [Qemu-devel] [PATCH 10/11] iotests: Add test for commit in sub directory, Max Reitz, 2018/08/09
- [Qemu-devel] [PATCH 11/11] iotests: Test committing to overridden backing, Max Reitz, 2018/08/09