mirror of
https://github.com/qemu/qemu.git
synced 2024-11-27 13:53:45 +08:00
mirror: switch to *_co_* functions
Signed-off-by: Alberto Faria <afaria@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20221013123711.620631-17-pbonzini@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
ce47ff20b9
commit
882762165a
@ -922,8 +922,8 @@ static int coroutine_fn mirror_run(Job *job, Error **errp)
|
||||
* active layer. */
|
||||
if (s->base == blk_bs(s->target)) {
|
||||
if (s->bdev_length > target_length) {
|
||||
ret = blk_truncate(s->target, s->bdev_length, false,
|
||||
PREALLOC_MODE_OFF, 0, NULL);
|
||||
ret = blk_co_truncate(s->target, s->bdev_length, false,
|
||||
PREALLOC_MODE_OFF, 0, NULL);
|
||||
if (ret < 0) {
|
||||
goto immediate_exit;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user