]> git.proxmox.com Git - mirror_qemu.git/commit - job.c
job: Move progress fields to Job
authorKevin Wolf <kwolf@redhat.com>
Fri, 4 May 2018 10:17:20 +0000 (12:17 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 23 May 2018 12:30:51 +0000 (14:30 +0200)
commit30a5c887bf4a7e00d0e0ecbb08509e8ba2902620
tree1dac007a566de2715e9f73d62a74b98cc45f019e
parent2e1795b58131427719c7cd11f8b9b6984b3f24f8
job: Move progress fields to Job

BlockJob has fields .offset and .len, which are actually misnomers today
because they are no longer tied to block device sizes, but just progress
counters. As such they make a lot of sense in generic Jobs.

This patch moves the fields to Job and renames them to .progress_current
and .progress_total to describe their function better.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
block/backup.c
block/commit.c
block/mirror.c
block/stream.c
blockjob.c
include/block/blockjob.h
include/qemu/job.h
job.c
qemu-img.c