diff options
| author | Alberto Garcia <berto@igalia.com> | 2018-11-12 16:00:41 +0200 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2018-12-14 11:55:02 +0100 |
| commit | 295cf237c2e5112de3e2aa7c3dbc80580b80bf88 (patch) | |
| tree | 15c7d2a3e26cc6c1705170d4b92aecc0394984d5 | |
| parent | 1ba793889583cf9b548bf61bd5c8f224ad6c1415 (diff) | |
| download | focaccia-qemu-295cf237c2e5112de3e2aa7c3dbc80580b80bf88.tar.gz focaccia-qemu-295cf237c2e5112de3e2aa7c3dbc80580b80bf88.zip | |
block: Drop bdrv_reopen()
No one is using this function anymore, so we can safely remove it. Signed-off-by: Alberto Garcia <berto@igalia.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
| -rw-r--r-- | block.c | 21 | ||||
| -rw-r--r-- | include/block/block.h | 1 |
2 files changed, 0 insertions, 22 deletions
diff --git a/block.c b/block.c index d7b94794f4..071465ee3a 100644 --- a/block.c +++ b/block.c @@ -3125,27 +3125,6 @@ cleanup: return ret; } - -/* Reopen a single BlockDriverState with the specified flags. */ -int bdrv_reopen(BlockDriverState *bs, int bdrv_flags, Error **errp) -{ - int ret = -1; - Error *local_err = NULL; - BlockReopenQueue *queue; - - bdrv_subtree_drained_begin(bs); - - queue = bdrv_reopen_queue(NULL, bs, NULL, bdrv_flags); - ret = bdrv_reopen_multiple(bdrv_get_aio_context(bs), queue, &local_err); - if (local_err != NULL) { - error_propagate(errp, local_err); - } - - bdrv_subtree_drained_end(bs); - - return ret; -} - int bdrv_reopen_set_read_only(BlockDriverState *bs, bool read_only, Error **errp) { diff --git a/include/block/block.h b/include/block/block.h index 382e6643fc..de72c7a093 100644 --- a/include/block/block.h +++ b/include/block/block.h @@ -302,7 +302,6 @@ BlockReopenQueue *bdrv_reopen_queue(BlockReopenQueue *bs_queue, BlockDriverState *bs, QDict *options, int flags); int bdrv_reopen_multiple(AioContext *ctx, BlockReopenQueue *bs_queue, Error **errp); -int bdrv_reopen(BlockDriverState *bs, int bdrv_flags, Error **errp); int bdrv_reopen_set_read_only(BlockDriverState *bs, bool read_only, Error **errp); int bdrv_reopen_prepare(BDRVReopenState *reopen_state, |