summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorJeff Cody2012-09-20 21:13:29 +0200
committerKevin Wolf2012-09-24 15:15:12 +0200
commitd177692ede3129dcb18a6b0f5472577bed2e2688 (patch)
tree48f1e42aa3dabf9762aed47c731c83eaa7d593b1 /block
parentblock: qcow2 image file reopen (diff)
downloadqemu-d177692ede3129dcb18a6b0f5472577bed2e2688.tar.gz
qemu-d177692ede3129dcb18a6b0f5472577bed2e2688.tar.xz
qemu-d177692ede3129dcb18a6b0f5472577bed2e2688.zip
block: qcow image file reopen
These are the stubs for the file reopen drivers for the qcow format. There is currently nothing that needs to be done by the qcow 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/qcow.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/block/qcow.c b/block/qcow.c
index 7b5ab87d2d..b239c82ae0 100644
--- a/block/qcow.c
+++ b/block/qcow.c
@@ -197,6 +197,15 @@ static int qcow_open(BlockDriverState *bs, int flags)
return ret;
}
+
+/* We have nothing to do for QCOW reopen, stubs just return
+ * success */
+static int qcow_reopen_prepare(BDRVReopenState *state,
+ BlockReopenQueue *queue, Error **errp)
+{
+ return 0;
+}
+
static int qcow_set_key(BlockDriverState *bs, const char *key)
{
BDRVQcowState *s = bs->opaque;
@@ -868,6 +877,7 @@ static BlockDriver bdrv_qcow = {
.bdrv_probe = qcow_probe,
.bdrv_open = qcow_open,
.bdrv_close = qcow_close,
+ .bdrv_reopen_prepare = qcow_reopen_prepare,
.bdrv_create = qcow_create,
.bdrv_co_readv = qcow_co_readv,