summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
Diffstat (limited to 'hw')
-rw-r--r--hw/ide/core.c2
-rw-r--r--hw/scsi-disk.c3
-rw-r--r--hw/virtio-blk.c2
3 files changed, 4 insertions, 3 deletions
diff --git a/hw/ide/core.c b/hw/ide/core.c
index 7b1ff8f957..49bbdcde10 100644
--- a/hw/ide/core.c
+++ b/hw/ide/core.c
@@ -473,7 +473,7 @@ void ide_dma_error(IDEState *s)
static int ide_handle_write_error(IDEState *s, int error, int op)
{
- BlockInterfaceErrorAction action = drive_get_onerror(s->bs);
+ BlockInterfaceErrorAction action = drive_get_on_error(s->bs, 0);
if (action == BLOCK_ERR_IGNORE)
return 0;
diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c
index c802ccdbdb..67e3008980 100644
--- a/hw/scsi-disk.c
+++ b/hw/scsi-disk.c
@@ -172,7 +172,8 @@ static void scsi_read_data(SCSIDevice *d, uint32_t tag)
static int scsi_handle_write_error(SCSIDiskReq *r, int error)
{
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev);
- BlockInterfaceErrorAction action = drive_get_onerror(s->qdev.dinfo->bdrv);
+ BlockInterfaceErrorAction action =
+ drive_get_on_error(s->qdev.dinfo->bdrv, 0);
if (action == BLOCK_ERR_IGNORE)
return 0;
diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c
index 42b766fa2c..a93d20dfa6 100644
--- a/hw/virtio-blk.c
+++ b/hw/virtio-blk.c
@@ -100,7 +100,7 @@ static void virtio_blk_req_complete(VirtIOBlockReq *req, int status)
static int virtio_blk_handle_write_error(VirtIOBlockReq *req, int error)
{
- BlockInterfaceErrorAction action = drive_get_onerror(req->dev->bs);
+ BlockInterfaceErrorAction action = drive_get_on_error(req->dev->bs, 0);
VirtIOBlock *s = req->dev;
if (action == BLOCK_ERR_IGNORE)