aboutsummaryrefslogtreecommitdiff
path: root/block/backup.c
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2013-10-08 17:29:40 +0800
committerKevin Wolf <kwolf@redhat.com>2013-10-11 10:52:54 +0200
commit79e14bf7782d861d3d773a67680de07a8f354f4e (patch)
tree07922b6bb3b2b800babb90dd795ee241e9dc2a31 /block/backup.c
parent2cb5b22286a7546226d9e9363aaee543fcba6b61 (diff)
qapi: make use of new BlockJobType
Switch the string to enum type BlockJobType in BlockJobDriver. Signed-off-by: Fam Zheng <famz@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/backup.c')
-rw-r--r--block/backup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/backup.c b/block/backup.c
index d374472da8..cad14c90b2 100644
--- a/block/backup.c
+++ b/block/backup.c
@@ -204,7 +204,7 @@ static void backup_iostatus_reset(BlockJob *job)
static const BlockJobDriver backup_job_driver = {
.instance_size = sizeof(BackupBlockJob),
- .job_type = "backup",
+ .job_type = BLOCK_JOB_TYPE_BACKUP,
.set_speed = backup_set_speed,
.iostatus_reset = backup_iostatus_reset,
};