diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-09-28 17:22:44 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-09-28 19:08:17 +0200 |
commit | 7ef1507045d35bd4d220cf3bfe0e80e7ac101d00 (patch) | |
tree | 9b82f40ef4c6f7c926365fbdc7382c4ce371e2b0 /blockdev.c | |
parent | 747051cd97c384e70eec0ceb905f08e630b6a1c4 (diff) | |
download | qemu-7ef1507045d35bd4d220cf3bfe0e80e7ac101d00.zip qemu-7ef1507045d35bd4d220cf3bfe0e80e7ac101d00.tar.gz qemu-7ef1507045d35bd4d220cf3bfe0e80e7ac101d00.tar.bz2 |
qerror/block: introduce QERR_BLOCK_JOB_NOT_ACTIVE
The DeviceNotActive text is not a particularly good match, add
a separate text while keeping the same class.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'blockdev.c')
-rw-r--r-- | blockdev.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1205,7 +1205,7 @@ void qmp_block_job_set_speed(const char *device, int64_t speed, Error **errp) BlockJob *job = find_block_job(device); if (!job) { - error_set(errp, QERR_DEVICE_NOT_ACTIVE, device); + error_set(errp, QERR_BLOCK_JOB_NOT_ACTIVE, device); return; } @@ -1217,7 +1217,7 @@ void qmp_block_job_cancel(const char *device, Error **errp) BlockJob *job = find_block_job(device); if (!job) { - error_set(errp, QERR_DEVICE_NOT_ACTIVE, device); + error_set(errp, QERR_BLOCK_JOB_NOT_ACTIVE, device); return; } |