diff options
author | Jeff Cody <jcody@redhat.com> | 2012-09-20 15:13:27 -0400 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-09-24 15:15:12 +0200 |
commit | f9cb20f167ff205e37a895ee6a03d5a183ef8acf (patch) | |
tree | e106c12f3e11f7df7859e2b5befcabe7e7771910 /block/qed.c | |
parent | 01bdddb5aaf4f660355cf764874f19271978f74f (diff) | |
download | qemu-f9cb20f167ff205e37a895ee6a03d5a183ef8acf.tar.gz qemu-f9cb20f167ff205e37a895ee6a03d5a183ef8acf.tar.bz2 qemu-f9cb20f167ff205e37a895ee6a03d5a183ef8acf.zip |
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/qed.c')
-rw-r--r-- | block/qed.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/block/qed.c b/block/qed.c index 21cb239870..6c182ca917 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, |