Patchwork [v3,16/19] block: vdi image file reopen

login
register
mail settings
Submitter Jeff Cody
Date Sept. 18, 2012, 6:53 p.m.
Message ID <2fef2fff190fa8be9553c326f941c4cedc575c0b.1347993885.git.jcody@redhat.com>
Download mbox | patch
Permalink /patch/184817/
State New
Headers show

Comments

Jeff Cody - Sept. 18, 2012, 6:53 p.m.
There is currently nothing that needs to be done for VDI reopen.

Signed-off-by: Jeff Cody <jcody@redhat.com>
---
 block/vdi.c | 7 +++++++
 1 file changed, 7 insertions(+)

Patch

diff --git a/block/vdi.c b/block/vdi.c
index c4f1529..ce38395 100644
--- a/block/vdi.c
+++ b/block/vdi.c
@@ -454,6 +454,12 @@  static int vdi_open(BlockDriverState *bs, int flags)
     return -1;
 }
 
+static int vdi_reopen_prepare(BDRVReopenState *state,
+                              BlockReopenQueue *queue, Error **errp)
+{
+    return 0;
+}
+
 static int coroutine_fn vdi_co_is_allocated(BlockDriverState *bs,
         int64_t sector_num, int nb_sectors, int *pnum)
 {
@@ -762,6 +768,7 @@  static BlockDriver bdrv_vdi = {
     .bdrv_probe = vdi_probe,
     .bdrv_open = vdi_open,
     .bdrv_close = vdi_close,
+    .bdrv_reopen_prepare = vdi_reopen_prepare,
     .bdrv_create = vdi_create,
     .bdrv_co_is_allocated = vdi_co_is_allocated,
     .bdrv_make_empty = vdi_make_empty,