[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [PATCH v2 18/21] blkdebug: Enable reopen
From: |
Kevin Wolf |
Subject: |
[Qemu-block] [PATCH v2 18/21] blkdebug: Enable reopen |
Date: |
Mon, 23 Nov 2015 16:59:57 +0100 |
Just reopening the children (as block.c does now) is enough.
Signed-off-by: Kevin Wolf <address@hidden>
---
block/blkdebug.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/block/blkdebug.c b/block/blkdebug.c
index bc0f041..459a3d9 100644
--- a/block/blkdebug.c
+++ b/block/blkdebug.c
@@ -770,6 +770,12 @@ static void blkdebug_refresh_filename(BlockDriverState
*bs, QDict *options)
bs->full_open_options = opts;
}
+static int blkdebug_reopen_prepare(BDRVReopenState *reopen_state,
+ BlockReopenQueue *queue, Error **errp)
+{
+ return 0;
+}
+
static BlockDriver bdrv_blkdebug = {
.format_name = "blkdebug",
.protocol_name = "blkdebug",
@@ -778,6 +784,7 @@ static BlockDriver bdrv_blkdebug = {
.bdrv_parse_filename = blkdebug_parse_filename,
.bdrv_file_open = blkdebug_open,
.bdrv_close = blkdebug_close,
+ .bdrv_reopen_prepare = blkdebug_reopen_prepare,
.bdrv_getlength = blkdebug_getlength,
.bdrv_truncate = blkdebug_truncate,
.bdrv_refresh_filename = blkdebug_refresh_filename,
--
1.8.3.1
- Re: [Qemu-block] [PATCH v2 04/21] block: Allow references for backing files, (continued)
- [Qemu-block] [PATCH v2 13/21] block: Introduce bs->explicit_options, Kevin Wolf, 2015/11/23
- [Qemu-block] [PATCH v2 16/21] block: reopen: Extract QemuOpts for generic block layer options, Kevin Wolf, 2015/11/23
- [Qemu-block] [PATCH v2 15/21] qemu-iotests: Remove cache mode test without medium, Kevin Wolf, 2015/11/23
- [Qemu-block] [PATCH v2 11/21] block: Add infrastructure for option inheritance, Kevin Wolf, 2015/11/23
- [Qemu-block] [PATCH v2 17/21] block: Move cache options into options QDict, Kevin Wolf, 2015/11/23
- [Qemu-block] [PATCH v2 18/21] blkdebug: Enable reopen,
Kevin Wolf <=
- [Qemu-block] [PATCH v2 19/21] qemu-iotests: Try setting cache mode for children, Kevin Wolf, 2015/11/23
- [Qemu-block] [PATCH v2 20/21] qemu-iotests: Test cache mode option inheritance, Kevin Wolf, 2015/11/23
- [Qemu-block] [PATCH v2 21/21] qemu-iotests: Test reopen with node-name/driver options, Kevin Wolf, 2015/11/23