SCSI disks currently only support werror for write requests. This series adds rerror for failed read requests and respects werror also for flushes.
Kevin Wolf (4): scsi-disk: Implement rerror option block: Allow bdrv_flush to return errors scsi-disk: Complete failed requests in scsi_disk_emulate_command scsi-disk: Implement werror for flushes block.c | 21 +++++++-- block.h | 2 +- block/blkdebug.c | 4 +- block/blkverify.c | 4 +- block/cow.c | 4 +- block/qcow.c | 4 +- block/qcow2.c | 4 +- block/raw-posix.c | 4 +- block/raw-win32.c | 9 +++- block/raw.c | 4 +- block/vdi.c | 4 +- block/vmdk.c | 4 +- block_int.h | 2 +- blockdev.c | 2 +- hw/scsi-disk.c | 129 ++++++++++++++++++++++++++++++++++++----------------- 15 files changed, 134 insertions(+), 67 deletions(-) -- 1.7.2.3