[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v5 8/9] block: implement bdrv_recurse_is_first_non_f
From: |
Pavel Dovgalyuk |
Subject: |
[Qemu-devel] [PATCH v5 8/9] block: implement bdrv_recurse_is_first_non_filter for blkreplay |
Date: |
Mon, 26 Sep 2016 11:08:43 +0300 |
User-agent: |
StGit/0.16 |
This patch adds bdrv_recurse_is_first_non_filter implementation
for blkreplay driver. It allows creating snapshots when blkreplay
is enabled.
Signed-off-by: Pavel Dovgalyuk <address@hidden>
---
block/blkreplay.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/block/blkreplay.c b/block/blkreplay.c
index a741654..5a13fb3 100644
--- a/block/blkreplay.c
+++ b/block/blkreplay.c
@@ -130,6 +130,12 @@ static int coroutine_fn
blkreplay_co_flush(BlockDriverState *bs)
return ret;
}
+static bool blkreplay_recurse_is_first_non_filter(BlockDriverState *bs,
+ BlockDriverState *candidate)
+{
+ return bdrv_recurse_is_first_non_filter(bs->file->bs, candidate);
+}
+
static BlockDriver bdrv_blkreplay = {
.format_name = "blkreplay",
.protocol_name = "blkreplay",
@@ -145,6 +151,9 @@ static BlockDriver bdrv_blkreplay = {
.bdrv_co_pwrite_zeroes = blkreplay_co_pwrite_zeroes,
.bdrv_co_pdiscard = blkreplay_co_pdiscard,
.bdrv_co_flush = blkreplay_co_flush,
+
+ .is_filter = true,
+ .bdrv_recurse_is_first_non_filter = blkreplay_recurse_is_first_non_filter,
};
static void bdrv_blkreplay_init(void)
- [Qemu-devel] [PATCH v5 7/9] block: don't make snapshots for filters, (continued)
- [Qemu-devel] [PATCH v5 7/9] block: don't make snapshots for filters, Pavel Dovgalyuk, 2016/09/26
- Re: [Qemu-devel] [PATCH v5 7/9] block: don't make snapshots for filters, Kevin Wolf, 2016/09/26
- Re: [Qemu-devel] [PATCH v5 7/9] block: don't make snapshots for filters, Pavel Dovgalyuk, 2016/09/26
- Re: [Qemu-devel] [PATCH v5 7/9] block: don't make snapshots for filters, Kevin Wolf, 2016/09/26
- Re: [Qemu-devel] [PATCH v5 7/9] block: don't make snapshots for filters, Pavel Dovgalyuk, 2016/09/27
- Re: [Qemu-devel] [PATCH v5 7/9] block: don't make snapshots for filters, Kevin Wolf, 2016/09/28
- Re: [Qemu-devel] [PATCH v5 7/9] block: don't make snapshots for filters, Pavel Dovgalyuk, 2016/09/28
- Re: [Qemu-devel] [PATCH v5 7/9] block: don't make snapshots for filters, Kevin Wolf, 2016/09/28
- Re: [Qemu-devel] [PATCH v5 7/9] block: don't make snapshots for filters, Pavel Dovgalyuk, 2016/09/28
- Re: [Qemu-devel] [PATCH v5 7/9] block: don't make snapshots for filters, Kevin Wolf, 2016/09/29
[Qemu-devel] [PATCH v5 8/9] block: implement bdrv_recurse_is_first_non_filter for blkreplay,
Pavel Dovgalyuk <=
[Qemu-devel] [PATCH v5 9/9] integratorcp: adding vmstate for save/restore, Pavel Dovgalyuk, 2016/09/26
Re: [Qemu-devel] [PATCH v5 0/9] replay additions, Paolo Bonzini, 2016/09/26