block/vmdk: do not report file offset for compressed extents
A message that is not in the archive (sent off-list or not yet received): [email protected]
Fam Zheng
Reviewed-byQuoted 21 lines · Peter Lieven
Signed-off-by Peter Lieven <[email protected]>--- block/vmdk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)block/vmdk.c +1
-1@@ -1146,7 +1146,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; }Signature · 1 line
1.7.9.5
Quoted 19 lines · Fam Zheng
Quoted 18 lines · Peter Lieven
Signed-off-by Peter Lieven <[email protected]>--- block/vmdk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)block/vmdk.c +1
-1@@ -1146,7 +1146,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; }
Quoted 5 lines
Quoted 3 lines
Signature · 1 line
1.7.9.5Reviewed-by Fam Zheng <[email protected]>
I don't have the original mail :(. Did it get sent out the mailing list?
All patches must be posted to [email protected] so they can be reviewed by the community before being merged. Please send top-level mails, don't send new patches as a reply to another thread.
Stefan
Am 27.02.2014 11:06, schrieb Stefan Hajnoczi:
Quoted 24 lines · Fam Zheng
Quoted 19 lines · Peter Lieven
Quoted 18 lines
Signed-off-by Peter Lieven <[email protected]>--- block/vmdk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)block/vmdk.c +1
-1@@ -1146,7 +1146,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; }Quoted 4 lines
Quoted 3 lines
Signature · 1 line
1.7.9.5Reviewed-by Fam Zheng <[email protected]>
Quoted 8 lines
I don't have the original mail :(. Did it get sent out the mailing list?
All patches must be posted to [email protected] so they can be reviewed by the community before being merged. Please send top-level mails, don't send new patches as a reply to another thread.
Stefan
I know. I've sent this patch out to [email protected]. Very strange. I will repost.
Peter
Stefan Hajnoczi
AppliedQuoted 4 lines · Peter Lieven
Signed-off-by Peter Lieven <[email protected]>--- block/vmdk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Thanks, applied to my block tree:
https://github.com/stefanha/qemu/commits/block
Stefan