mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
job: Add JobDriver.job_type
This moves the job_type field from BlockJobDriver to JobDriver. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com>
This commit is contained in:
parent
8e4c87000f
commit
252291eaea
8 changed files with 33 additions and 17 deletions
|
@ -988,8 +988,8 @@ static void mirror_drain(BlockJob *job)
|
|||
static const BlockJobDriver mirror_job_driver = {
|
||||
.job_driver = {
|
||||
.instance_size = sizeof(MirrorBlockJob),
|
||||
.job_type = JOB_TYPE_MIRROR,
|
||||
},
|
||||
.job_type = JOB_TYPE_MIRROR,
|
||||
.start = mirror_run,
|
||||
.complete = mirror_complete,
|
||||
.pause = mirror_pause,
|
||||
|
@ -1000,8 +1000,8 @@ static const BlockJobDriver mirror_job_driver = {
|
|||
static const BlockJobDriver commit_active_job_driver = {
|
||||
.job_driver = {
|
||||
.instance_size = sizeof(MirrorBlockJob),
|
||||
.job_type = JOB_TYPE_COMMIT,
|
||||
},
|
||||
.job_type = JOB_TYPE_COMMIT,
|
||||
.start = mirror_run,
|
||||
.complete = mirror_complete,
|
||||
.pause = mirror_pause,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue