diff options
author | Kevin Wolf <kwolf@redhat.com> | 2009-11-27 13:25:36 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-03 15:25:57 -0600 |
commit | fc072ec4df0996682dfbff6c735e2bbc0d93132f (patch) | |
tree | 5e25dedab8db4f4ed3cdaf8a8ad3bdfd1ed55c45 /vl.c | |
parent | 550fe6c6fc3cfcb9ed62340492326ae86b4329de (diff) | |
download | qemu-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |