diff options
author | Fam Zheng <famz@redhat.com> | 2013-10-08 17:29:38 +0800 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2013-10-11 10:52:54 +0200 |
commit | 3fc4b10af09b75a1cb811b61abc9d8c90771dfb2 (patch) | |
tree | 5132b0a91efae3d3cd56e959819064a250f23b9a /block/backup.c | |
parent | 39c153b80f890dc5f02465dc59992e195abd5f40 (diff) | |
download | qemu-3fc4b10af09b75a1cb811b61abc9d8c90771dfb2.zip qemu-3fc4b10af09b75a1cb811b61abc9d8c90771dfb2.tar.gz qemu-3fc4b10af09b75a1cb811b61abc9d8c90771dfb2.tar.bz2 |
blockjob: rename BlockJobType to BlockJobDriver
We will use BlockJobType as the enum type name of block jobs in QAPI,
rename current BlockJobType to BlockJobDriver, which will eventually
become a set of operations, similar to block drivers.
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/backup.c b/block/backup.c index 04c4b5c..d374472 100644 --- a/block/backup.c +++ b/block/backup.c @@ -202,7 +202,7 @@ static void backup_iostatus_reset(BlockJob *job) bdrv_iostatus_reset(s->target); } -static const BlockJobType backup_job_type = { +static const BlockJobDriver backup_job_driver = { .instance_size = sizeof(BackupBlockJob), .job_type = "backup", .set_speed = backup_set_speed, @@ -370,7 +370,7 @@ void backup_start(BlockDriverState *bs, BlockDriverState *target, return; } - BackupBlockJob *job = block_job_create(&backup_job_type, bs, speed, + BackupBlockJob *job = block_job_create(&backup_job_driver, bs, speed, cb, opaque, errp); if (!job) { return; |