[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] compressed VMDKs and BDRV_BLOCK_OFFSET_VALID
From: |
Peter Lieven |
Subject: |
[Qemu-devel] compressed VMDKs and BDRV_BLOCK_OFFSET_VALID |
Date: |
Mon, 24 Feb 2014 14:48:26 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 |
Hi,
I wonder if the current output of get_block_status for compressed VMDKs is
correct or
if we need this patch?:
diff --git a/block/vmdk.c b/block/vmdk.c
index ff6f5ee..5fa29b0 100644
--- a/block/vmdk.c
+++ b/block/vmdk.c
@@ -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;
}
Peter
- [Qemu-devel] compressed VMDKs and BDRV_BLOCK_OFFSET_VALID,
Peter Lieven <=