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:
9147d01
)
block/vmdk: do not report file offset for compressed extents
author
Peter Lieven
<pl@kamp.de>
Wed, 26 Feb 2014 09:47:57 +0000
(10:47 +0100)
committer
Stefan Hajnoczi
<stefanha@redhat.com>
Fri, 28 Feb 2014 17:59:07 +0000
(18:59 +0100)
Signed-off-by: Peter Lieven <pl@kamp.de>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/vmdk.c
patch
|
blob
|
history
diff --git
a/block/vmdk.c
b/block/vmdk.c
index
83839f9
..
b69988d
100644
(file)
--- a/
block/vmdk.c
+++ b/
block/vmdk.c
@@
-1184,7
+1184,7
@@
static int64_t coroutine_fn vmdk_co_get_block_status(BlockDriverState *bs,
break;
case VMDK_OK:
ret = BDRV_BLOCK_DATA;
- if (extent->file == bs->file) {
+ if (extent->file == bs->file
&& !extent->compressed
) {
ret |= BDRV_BLOCK_OFFSET_VALID | offset;
}