diff options
author | Kevin Wolf <kwolf@redhat.com> | 2015-10-29 15:22:27 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2015-12-18 14:34:43 +0100 |
commit | c5e8bfb7cdc1859d7c34565a5f39231f0809fcd4 (patch) | |
tree | 7a7f5ac21aee790a13eca170474672cb570b1721 | |
parent | 91a097e7478940483e76d52217f05bc05b98d5a5 (diff) |
blkdebug: Enable reopen
Just reopening the children (as block.c does now) is enough.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
-rw-r--r-- | block/blkdebug.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/block/blkdebug.c b/block/blkdebug.c index ba89e17225..86b143dc2d 100644 --- a/block/blkdebug.c +++ b/block/blkdebug.c @@ -718,6 +718,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", @@ -726,6 +732,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, |