[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v11 02/25] block: implement bdrv_snapshot_goto for b
From: |
Pavel Dovgalyuk |
Subject: |
[Qemu-devel] [PATCH v11 02/25] block: implement bdrv_snapshot_goto for blkreplay |
Date: |
Thu, 31 Jan 2019 16:15:33 +0300 |
User-agent: |
StGit/0.17.1-dirty |
From: Pavel Dovgalyuk <address@hidden>
This patch enables making snapshots with blkreplay used in
block devices.
This function is required to make bdrv_snapshot_goto without
calling .bdrv_open which is not implemented.
Signed-off-by: Pavel Dovgalyuk <address@hidden>
---
block/blkreplay.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/block/blkreplay.c b/block/blkreplay.c
index b5d9efd..142dfe3 100644
--- a/block/blkreplay.c
+++ b/block/blkreplay.c
@@ -126,6 +126,12 @@ static int coroutine_fn
blkreplay_co_flush(BlockDriverState *bs)
return ret;
}
+static int blkreplay_snapshot_goto(BlockDriverState *bs,
+ const char *snapshot_id)
+{
+ return bdrv_snapshot_goto(bs->file->bs, snapshot_id, NULL);
+}
+
static BlockDriver bdrv_blkreplay = {
.format_name = "blkreplay",
.instance_size = 0,
@@ -140,6 +146,8 @@ static BlockDriver bdrv_blkreplay = {
.bdrv_co_pwrite_zeroes = blkreplay_co_pwrite_zeroes,
.bdrv_co_pdiscard = blkreplay_co_pdiscard,
.bdrv_co_flush = blkreplay_co_flush,
+
+ .bdrv_snapshot_goto = blkreplay_snapshot_goto,
};
static void bdrv_blkreplay_init(void)
- [Qemu-devel] [PATCH v11 00/25] Fixing record/replay and adding reverse debugging, Pavel Dovgalyuk, 2019/01/31
- [Qemu-devel] [PATCH v11 03/25] replay: disable default snapshot for record/replay, Pavel Dovgalyuk, 2019/01/31
- [Qemu-devel] [PATCH v11 02/25] block: implement bdrv_snapshot_goto for blkreplay,
Pavel Dovgalyuk <=
- [Qemu-devel] [PATCH v11 01/25] replay: add missing fix for internal function, Pavel Dovgalyuk, 2019/01/31
- [Qemu-devel] [PATCH v11 04/25] replay: update docs for record/replay with block devices, Pavel Dovgalyuk, 2019/01/31
- [Qemu-devel] [PATCH v11 06/25] replay: finish record/replay before closing the disks, Pavel Dovgalyuk, 2019/01/31
- [Qemu-devel] [PATCH v11 05/25] replay: don't drain/flush bdrv queue while RR is working, Pavel Dovgalyuk, 2019/01/31
- [Qemu-devel] [PATCH v11 07/25] qcow2: introduce icount field for snapshots, Pavel Dovgalyuk, 2019/01/31
- [Qemu-devel] [PATCH v11 08/25] migration: introduce icount field for snapshots, Pavel Dovgalyuk, 2019/01/31
- [Qemu-devel] [PATCH v11 09/25] replay: provide an accessor for rr filename, Pavel Dovgalyuk, 2019/01/31
- [Qemu-devel] [PATCH v11 10/25] qapi: introduce replay.json for record/replay-related stuff, Pavel Dovgalyuk, 2019/01/31
- [Qemu-devel] [PATCH v11 11/25] replay: introduce info hmp/qmp command, Pavel Dovgalyuk, 2019/01/31
- [Qemu-devel] [PATCH v11 12/25] replay: introduce breakpoint at the specified step, Pavel Dovgalyuk, 2019/01/31