projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d234c92
)
vdi: Assign bs->file->bs to file in vdi_co_get_block_status
author
Fam Zheng
<famz@redhat.com>
Tue, 26 Jan 2016 03:58:56 +0000
(11:58 +0800)
committer
Max Reitz
<mreitz@redhat.com>
Tue, 2 Feb 2016 16:50:47 +0000
(17:50 +0100)
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Message-id:
1453780743
-16806-10-git-send-email-famz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/vdi.c
patch
|
blob
|
history
diff --git
a/block/vdi.c
b/block/vdi.c
index 294c43877a18910746431b9b4179f2121a658f22..b40324360435c3a69ce2357ce2d8f3ea71835644 100644
(file)
--- a/
block/vdi.c
+++ b/
block/vdi.c
@@
-551,6
+551,7
@@
static int64_t coroutine_fn vdi_co_get_block_status(BlockDriverState *bs,
offset = s->header.offset_data +
(uint64_t)bmap_entry * s->block_size +
sector_in_block * SECTOR_SIZE;
+ *file = bs->file->bs;
return BDRV_BLOCK_DATA | BDRV_BLOCK_OFFSET_VALID | offset;
}