Revision 7ef15070

b/blockdev.c
1205 1205
    BlockJob *job = find_block_job(device);
1206 1206

  
1207 1207
    if (!job) {
1208
        error_set(errp, QERR_DEVICE_NOT_ACTIVE, device);
1208
        error_set(errp, QERR_BLOCK_JOB_NOT_ACTIVE, device);
1209 1209
        return;
1210 1210
    }
1211 1211

  
......
1217 1217
    BlockJob *job = find_block_job(device);
1218 1218

  
1219 1219
    if (!job) {
1220
        error_set(errp, QERR_DEVICE_NOT_ACTIVE, device);
1220
        error_set(errp, QERR_BLOCK_JOB_NOT_ACTIVE, device);
1221 1221
        return;
1222 1222
    }
1223 1223

  
b/qerror.h
48 48
#define QERR_BASE_NOT_FOUND \
49 49
    ERROR_CLASS_GENERIC_ERROR, "Base '%s' not found"
50 50

  
51
#define QERR_BLOCK_JOB_NOT_ACTIVE \
52
    ERROR_CLASS_DEVICE_NOT_ACTIVE, "No active block job on device '%s'"
53

  
51 54
#define QERR_BLOCK_FORMAT_FEATURE_NOT_SUPPORTED \
52 55
    ERROR_CLASS_GENERIC_ERROR, "Block format '%s' used by device '%s' does not support feature '%s'"
53 56

  

Also available in: Unified diff