diff options
author | Alberto Faria <afaria@redhat.com> | 2022-10-13 14:37:03 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2022-10-27 20:14:11 +0200 |
commit | 882762165a3be58cf6752330878a5c2b181183ce (patch) | |
tree | 38a2a14c826643f40985c98a45e6a9f786df2447 | |
parent | ce47ff20b9f3c05b2b371539bedc437c531c0beb (diff) | |
download | qemu-882762165a3be58cf6752330878a5c2b181183ce.zip qemu-882762165a3be58cf6752330878a5c2b181183ce.tar.gz qemu-882762165a3be58cf6752330878a5c2b181183ce.tar.bz2 |
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>
-rw-r--r-- | block/mirror.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/mirror.c b/block/mirror.c index f9432af..18bf2d4 100644 --- a/block/mirror.c +++ b/block/mirror.c @@ -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; } |