aboutsummaryrefslogtreecommitdiff
path: root/scripts/coverage
diff options
context:
space:
mode:
authorAndrey Drobyshev <andrey.drobyshev@virtuozzo.com>2023-09-19 19:57:57 +0300
committerKevin Wolf <kwolf@redhat.com>2023-10-31 13:51:27 +0100
commit8b097fd6b06ec295faefd4f30f96f8709abc9605 (patch)
tree5dd327c0354b37bbc2b8503458af43b1ccb7b2b5 /scripts/coverage
parent516fffc9933cb21fad41ca8f7bf465d238d4d375 (diff)
downloadqemu-8b097fd6b06ec295faefd4f30f96f8709abc9605.zip
qemu-8b097fd6b06ec295faefd4f30f96f8709abc9605.tar.gz
qemu-8b097fd6b06ec295faefd4f30f96f8709abc9605.tar.bz2
qemu-img: rebase: stop when reaching EOF of old backing file
In case when we're rebasing within one backing chain, and when target image is larger than old backing file, bdrv_is_allocated_above() ends up setting *pnum = 0. As a result, target offset isn't getting incremented, and we get stuck in an infinite for loop. Let's detect this case and proceed further down the loop body, as the offsets beyond the old backing size need to be explicitly zeroed. Signed-off-by: Andrey Drobyshev <andrey.drobyshev@virtuozzo.com> Reviewed-by: Denis V. Lunev <den@openvz.org> Reviewed-by: Hanna Czenczek <hreitz@redhat.com> Message-ID: <20230919165804.439110-2-andrey.drobyshev@virtuozzo.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'scripts/coverage')
0 files changed, 0 insertions, 0 deletions