]> Git Repo - qemu.git/commitdiff
block-copy: Use CAF to find sync=top base
authorMax Reitz <[email protected]>
Tue, 23 Jun 2020 09:29:04 +0000 (11:29 +0200)
committerKevin Wolf <[email protected]>
Mon, 7 Sep 2020 10:31:31 +0000 (12:31 +0200)
Signed-off-by: Max Reitz <[email protected]>
Reviewed-by: Andrey Shinkevich <[email protected]>
Reviewed-by: Kevin Wolf <[email protected]>
block/block-copy.c

index a30b9097ef43ad9dac9f9a5ea70445df275cb880..cd9bc47c8f6d0509fe7240b53341092458b6b487 100644 (file)
@@ -440,8 +440,8 @@ static int block_copy_block_status(BlockCopyState *s, int64_t offset,
     BlockDriverState *base;
     int ret;
 
-    if (s->skip_unallocated && s->source->bs->backing) {
-        base = s->source->bs->backing->bs;
+    if (s->skip_unallocated) {
+        base = bdrv_backing_chain_next(s->source->bs);
     } else {
         base = NULL;
     }
This page took 0.022142 seconds and 4 git commands to generate.