]> git.proxmox.com Git - mirror_qemu.git/commit - job.c
job: Replace BlockJob.completed with job_is_completed()
authorKevin Wolf <kwolf@redhat.com>
Thu, 19 Apr 2018 11:04:01 +0000 (13:04 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 23 May 2018 12:30:50 +0000 (14:30 +0200)
commitdbe5e6c1f73b41282624b78a2375a5c3ee59e905
treeec2cad34f5b7d8a067166b251ab7743c86a595a1
parentb15de82867975e0b4acf644b5ee36d84904b6612
job: Replace BlockJob.completed with job_is_completed()

Since we introduced an explicit status to block job, BlockJob.completed
is redundant because it can be derived from the status. Remove the field
from BlockJob and add a function to derive it from the status at the Job
level.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
blockjob.c
include/block/blockjob.h
include/qemu/job.h
job.c
qemu-img.c