Skip to contentSkip to conversation

block/vmdk: do not report file offset for compressed extents

PATCH Applied Fam Zheng 4 participants 4 messages Feb 26, 2014 – Feb 27, 2014 1 message not in the archive

lore
Share & tools
lore

Fam Zheng

author Reviewed-by
#1 lore raw
In reply to a message not in the archive
Quoted 21 lines · Peter Lieven
---
 block/vmdk.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
block/vmdk.c +1 -1
index ff6f5ee..5fa29b0 100644
@@ -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
#2 lore raw
Quoted 19 lines · Fam Zheng
Quoted 18 lines · Peter Lieven
---
 block/vmdk.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
block/vmdk.c +1 -1
index ff6f5ee..5fa29b0 100644
@@ -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.5

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

#3 lore raw

Am 27.02.2014 11:06, schrieb Stefan Hajnoczi:

Quoted 24 lines · Fam Zheng
Quoted 19 lines · Peter Lieven
Quoted 18 lines
---
 block/vmdk.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
block/vmdk.c +1 -1
index ff6f5ee..5fa29b0 100644
@@ -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.5
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