OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a7585d
)
block-copy: Use CAF to find sync=top base
author
Max Reitz
<mreitz@redhat.com>
Tue, 23 Jun 2020 09:29:04 +0000
(11:29 +0200)
committer
Kevin Wolf
<kwolf@redhat.com>
Mon, 7 Sep 2020 10:31:31 +0000
(12:31 +0200)
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
block/block-copy.c
patch
|
blob
|
history
diff --git
a/block/block-copy.c
b/block/block-copy.c
index
a30b909
..
cd9bc47
100644
(file)
--- a/
block/block-copy.c
+++ b/
block/block-copy.c
@@
-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;
}