aboutsummaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorJeff Cody <jcody@redhat.com>2012-09-20 15:13:27 -0400
committerKevin Wolf <kwolf@redhat.com>2012-09-24 15:15:12 +0200
commitf9cb20f167ff205e37a895ee6a03d5a183ef8acf (patch)
treee106c12f3e11f7df7859e2b5befcabe7e7771910 /block
parent01bdddb5aaf4f660355cf764874f19271978f74f (diff)
downloadqemu-f9cb20f167ff205e37a895ee6a03d5a183ef8acf.zip
qemu-f9cb20f167ff205e37a895ee6a03d5a183ef8acf.tar.gz
qemu-f9cb20f167ff205e37a895ee6a03d5a183ef8acf.tar.bz2
block: qed image file reopen
These are the stubs for the file reopen drivers for the qed format. There is currently nothing that needs to be done by the qed driver in reopen. Signed-off-by: Jeff Cody <jcody@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block')
-rw-r--r--block/qed.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/block/qed.c b/block/qed.c
index 21cb239..6c182ca 100644
--- a/block/qed.c
+++ b/block/qed.c
@@ -505,6 +505,14 @@ out:
return ret;
}
+/* We have nothing to do for QED reopen, stubs just return
+ * success */
+static int bdrv_qed_reopen_prepare(BDRVReopenState *state,
+ BlockReopenQueue *queue, Error **errp)
+{
+ return 0;
+}
+
static void bdrv_qed_close(BlockDriverState *bs)
{
BDRVQEDState *s = bs->opaque;
@@ -1564,6 +1572,7 @@ static BlockDriver bdrv_qed = {
.bdrv_rebind = bdrv_qed_rebind,
.bdrv_open = bdrv_qed_open,
.bdrv_close = bdrv_qed_close,
+ .bdrv_reopen_prepare = bdrv_qed_reopen_prepare,
.bdrv_create = bdrv_qed_create,
.bdrv_co_is_allocated = bdrv_qed_co_is_allocated,
.bdrv_make_empty = bdrv_qed_make_empty,