aboutsummaryrefslogtreecommitdiff
path: root/block/raw.c
diff options
context:
space:
mode:
authorJeff Cody <jcody@redhat.com>2012-09-20 15:13:26 -0400
committerKevin Wolf <kwolf@redhat.com>2012-09-24 15:15:12 +0200
commit01bdddb5aaf4f660355cf764874f19271978f74f (patch)
tree9234a8b32227a781d01973913c9542860a2ea059 /block/raw.c
parenteeb6b45d48800e96f67ef2a5c80332557fd45ddb (diff)
downloadqemu-01bdddb5aaf4f660355cf764874f19271978f74f.zip
qemu-01bdddb5aaf4f660355cf764874f19271978f74f.tar.gz
qemu-01bdddb5aaf4f660355cf764874f19271978f74f.tar.bz2
block: raw image file reopen
These are the stubs for the file reopen drivers for the raw format. There is currently nothing that needs to be done by the raw driver in reopen. Signed-off-by: Jeff Cody <jcody@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/raw.c')
-rw-r--r--block/raw.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/block/raw.c b/block/raw.c
index ff34ea4..253e949 100644
--- a/block/raw.c
+++ b/block/raw.c
@@ -9,6 +9,14 @@ static int raw_open(BlockDriverState *bs, int flags)
return 0;
}
+/* We have nothing to do for raw reopen, stubs just return
+ * success */
+static int raw_reopen_prepare(BDRVReopenState *state,
+ BlockReopenQueue *queue, Error **errp)
+{
+ return 0;
+}
+
static int coroutine_fn raw_co_readv(BlockDriverState *bs, int64_t sector_num,
int nb_sectors, QEMUIOVector *qiov)
{
@@ -115,6 +123,8 @@ static BlockDriver bdrv_raw = {
.bdrv_open = raw_open,
.bdrv_close = raw_close,
+ .bdrv_reopen_prepare = raw_reopen_prepare,
+
.bdrv_co_readv = raw_co_readv,
.bdrv_co_writev = raw_co_writev,
.bdrv_co_is_allocated = raw_co_is_allocated,