From fc072ec4df0996682dfbff6c735e2bbc0d93132f Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Fri, 27 Nov 2009 13:25:36 +0100 Subject: [PATCH] Rename DriveInfo.onerror to on_write_error Either rename variables and functions to refer to write errors (which is what they actually do) or introduce a parameter to distinguish reads and writes. Signed-off-by: Kevin Wolf Signed-off-by: Anthony Liguori --- vl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vl.c b/vl.c index d6f196cff5..96ab020255 100644 --- a/vl.c +++ b/vl.c @@ -1964,6 +1964,10 @@ BlockInterfaceErrorAction drive_get_on_error( { DriveInfo *dinfo; + if (is_read) { + return BLOCK_ERR_REPORT; + } + QTAILQ_FOREACH(dinfo, &drives, next) { if (dinfo->bdrv == bdrv) return is_read ? dinfo->on_read_error : dinfo->on_write_error; -- 2.30.2