block/vmdk: do not report file offset for compressed extents
Signed-off-by: Peter Lieven <pl@kamp.de> Reviewed-by: Fam Zheng <famz@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
9147d019f3
commit
3eba13ec25
@ -1184,7 +1184,7 @@ static int64_t coroutine_fn vmdk_co_get_block_status(BlockDriverState *bs,
|
|||||||
break;
|
break;
|
||||||
case VMDK_OK:
|
case VMDK_OK:
|
||||||
ret = BDRV_BLOCK_DATA;
|
ret = BDRV_BLOCK_DATA;
|
||||||
if (extent->file == bs->file) {
|
if (extent->file == bs->file && !extent->compressed) {
|
||||||
ret |= BDRV_BLOCK_OFFSET_VALID | offset;
|
ret |= BDRV_BLOCK_OFFSET_VALID | offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user