diff options
author | Vladimir Sementsov-Ogievskiy | 2021-02-02 13:49:49 +0100 |
---|---|---|
committer | Eric Blake | 2021-03-08 22:14:15 +0100 |
commit | 775d0c050866c3571b8599291b3ff65fdbd63ed8 (patch) | |
tree | 515d5636af68f2d0dbb090b25a043d69b78ec475 /include/block | |
parent | block/mirror: drop extra error propagation in commit_active_start() (diff) | |
download | qemu-775d0c050866c3571b8599291b3ff65fdbd63ed8.tar.gz qemu-775d0c050866c3571b8599291b3ff65fdbd63ed8.tar.xz qemu-775d0c050866c3571b8599291b3ff65fdbd63ed8.zip |
blockjob: return status from block_job_set_speed()
Better to return status together with setting errp. It allows to avoid
error propagation in the caller.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Message-Id: <20210202124956.63146-8-vsementsov@virtuozzo.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'include/block')
-rw-r--r-- | include/block/blockjob.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/block/blockjob.h b/include/block/blockjob.h index 35faa3aa26..d200f33c10 100644 --- a/include/block/blockjob.h +++ b/include/block/blockjob.h @@ -139,7 +139,7 @@ bool block_job_has_bdrv(BlockJob *job, BlockDriverState *bs); * Set a rate-limiting parameter for the job; the actual meaning may * vary depending on the job type. */ -void block_job_set_speed(BlockJob *job, int64_t speed, Error **errp); +bool block_job_set_speed(BlockJob *job, int64_t speed, Error **errp); /** * block_job_query: |