Commit 9abf2dba authored by Jeff Cody's avatar Jeff Cody Committed by Kevin Wolf
Browse files

blockdev: rename block_stream_cb to a generic block_job_cb

Signed-off-by: default avatarJeff Cody <>
Reviewed-by: default avatarEric Blake <>
Signed-off-by: default avatarKevin Wolf <>
parent 747ff602
......@@ -1070,12 +1070,12 @@ static QObject *qobject_from_block_job(BlockJob *job)
static void block_stream_cb(void *opaque, int ret)
static void block_job_cb(void *opaque, int ret)
BlockDriverState *bs = opaque;
QObject *obj;
trace_block_stream_cb(bs, bs->job, ret);
trace_block_job_cb(bs, bs->job, ret);
obj = qobject_from_block_job(bs->job);
......@@ -1117,7 +1117,7 @@ void qmp_block_stream(const char *device, bool has_base,
stream_start(bs, base_bs, base, has_speed ? speed : 0,
block_stream_cb, bs, &local_err);
block_job_cb, bs, &local_err);
if (error_is_set(&local_err)) {
error_propagate(errp, local_err);
......@@ -79,7 +79,7 @@ commit_start(void *bs, void *base, void *top, void *s, void *co, void *opaque) "
# blockdev.c
qmp_block_job_cancel(void *job) "job %p"
block_stream_cb(void *bs, void *job, int ret) "bs %p job %p ret %d"
block_job_cb(void *bs, void *job, int ret) "bs %p job %p ret %d"
qmp_block_stream(void *bs, void *job) "bs %p job %p"
# hw/virtio-blk.c
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment