Revision 380f640f hw/scsi-disk.c

b/hw/scsi-disk.c
182 182
    BlockInterfaceErrorAction action =
183 183
        drive_get_on_error(s->qdev.dinfo->bdrv, 0);
184 184

  
185
    if (action == BLOCK_ERR_IGNORE)
185
    if (action == BLOCK_ERR_IGNORE) {
186
        bdrv_mon_event(s->qdev.dinfo->bdrv, BDRV_ACTION_IGNORE, 0);
186 187
        return 0;
188
    }
187 189

  
188 190
    if ((error == ENOSPC && action == BLOCK_ERR_STOP_ENOSPC)
189 191
            || action == BLOCK_ERR_STOP_ANY) {
190 192
        r->status |= SCSI_REQ_STATUS_RETRY;
191 193
        vm_stop(0);
194
        bdrv_mon_event(s->qdev.dinfo->bdrv, BDRV_ACTION_STOP, 0);
192 195
    } else {
193 196
        scsi_command_complete(r, CHECK_CONDITION,
194 197
                HARDWARE_ERROR);
198
        bdrv_mon_event(s->qdev.dinfo->bdrv, BDRV_ACTION_REPORT, 0);
195 199
    }
196 200

  
197 201
    return 1;

Also available in: Unified diff