aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2009-11-27 13:25:36 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-12-03 15:25:57 -0600
commitfc072ec4df0996682dfbff6c735e2bbc0d93132f (patch)
tree5e25dedab8db4f4ed3cdaf8a8ad3bdfd1ed55c45 /vl.c
parent550fe6c6fc3cfcb9ed62340492326ae86b4329de (diff)
downloadqemu-fc072ec4df0996682dfbff6c735e2bbc0d93132f.zip
qemu-fc072ec4df0996682dfbff6c735e2bbc0d93132f.tar.gz
qemu-fc072ec4df0996682dfbff6c735e2bbc0d93132f.tar.bz2
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 <kwolf@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/vl.c b/vl.c
index d6f196c..96ab020 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;