]> Git Repo - qemu.git/commitdiff
vmdk: Make block_status recurse for flat extents
authorMax Reitz <[email protected]>
Thu, 25 Jul 2019 15:55:11 +0000 (17:55 +0200)
committerMax Reitz <[email protected]>
Mon, 19 Aug 2019 15:13:26 +0000 (17:13 +0200)
Fixes: 69f47505ee66afaa513305de0c1895a224e52c45
Signed-off-by: Max Reitz <[email protected]>
Message-id: 20190725155512[email protected]
Reviewed-by: Vladimir Sementsov-Ogievskiy <[email protected]>
Reviewed-by: John Snow <[email protected]>
Signed-off-by: Max Reitz <[email protected]>
block/vmdk.c

index bd36ece125a6e9992419445c4275c980aaa20c5d..fd78fd0ccf6765b83527ac42227885bee6fdfe53 100644 (file)
@@ -1692,6 +1692,9 @@ static int coroutine_fn vmdk_co_block_status(BlockDriverState *bs,
         if (!extent->compressed) {
             ret |= BDRV_BLOCK_OFFSET_VALID;
             *map = cluster_offset + index_in_cluster;
         if (!extent->compressed) {
             ret |= BDRV_BLOCK_OFFSET_VALID;
             *map = cluster_offset + index_in_cluster;
+            if (extent->flat) {
+                ret |= BDRV_BLOCK_RECURSE;
+            }
         }
         *file = extent->file->bs;
         break;
         }
         *file = extent->file->bs;
         break;
This page took 0.02924 seconds and 4 git commands to generate.