diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-09-28 17:22:49 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-09-28 19:14:32 +0200 |
commit | 8d65883fff22e00d70f5880a26b7a1248c59a2d8 (patch) | |
tree | 7193c558defa36ff1e6cc1a9c89e730817270af5 /blockjob.c | |
parent | 30e628b709fcd30db298878e435e3bc93919c48c (diff) | |
download | qemu-8d65883fff22e00d70f5880a26b7a1248c59a2d8.zip qemu-8d65883fff22e00d70f5880a26b7a1248c59a2d8.tar.gz qemu-8d65883fff22e00d70f5880a26b7a1248c59a2d8.tar.bz2 |
qmp: add 'busy' member to BlockJobInfo
Because pausing a job is asynchronous, we need to know whether it has
completed. This is described by the "busy" field of BlockJob; copy it
to BlockJobInfo.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'blockjob.c')
-rw-r--r-- | blockjob.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -168,6 +168,7 @@ BlockJobInfo *block_job_query(BlockJob *job) info->type = g_strdup(job->job_type->job_type); info->device = g_strdup(bdrv_get_device_name(job->bs)); info->len = job->len; + info->busy = job->busy; info->offset = job->offset; info->speed = job->speed; return info; |