]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commitdiff
block: qcow image file reopen
authorJeff Cody <jcody@redhat.com>
Thu, 20 Sep 2012 19:13:29 +0000 (15:13 -0400)
committerKevin Wolf <kwolf@redhat.com>
Mon, 24 Sep 2012 13:15:12 +0000 (15:15 +0200)
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>
block/qcow.c

index 7b5ab87d2d05ae4e9e370f97d161684257688622..b239c82ae07f2816aa9d603858ef4bc2f287612a 100644 (file)
@@ -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,