summaryrefslogtreecommitdiffstats
path: root/include/block
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2015-11-05 18:13:13 -0500
committerKevin Wolf <kwolf@redhat.com>2015-11-12 16:22:44 +0100
commita689dbf2df74a55d43e3fc4d6aec30ed67ca998f (patch)
tree0409d63c08c12a2ecdeb4f3e0fc56869eac2e0fd /include/block
parent57901ecb8e02f03464d5f37bb6edf82e5076812d (diff)
downloadhqemu-a689dbf2df74a55d43e3fc4d6aec30ed67ca998f.zip
hqemu-a689dbf2df74a55d43e3fc4d6aec30ed67ca998f.tar.gz
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>
Diffstat (limited to 'include/block')
-rw-r--r--include/block/blockjob.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/block/blockjob.h b/include/block/blockjob.h
index ed856d7..c70d55a 100644
--- a/include/block/blockjob.h
+++ b/include/block/blockjob.h
@@ -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;
+
};
/**
OpenPOWER on IntegriCloud