mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
blockjob: Add "completed" and "ret" in BlockJob
They are set when block_job_completed is called. Signed-off-by: Fam Zheng <famz@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Signed-off-by: John Snow <jsnow@redhat.com> Message-id: 1446765200-3054-8-git-send-email-jsnow@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
57901ecb8e
commit
a689dbf2df
2 changed files with 12 additions and 0 deletions
|
@ -153,6 +153,15 @@ struct BlockJob {
|
|||
|
||||
/** Reference count of the block job */
|
||||
int refcnt;
|
||||
|
||||
/* True if this job has reported completion by calling block_job_completed.
|
||||
*/
|
||||
bool completed;
|
||||
|
||||
/* ret code passed to block_job_completed.
|
||||
*/
|
||||
int ret;
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue