From: Kevin Wolf Date: Fri, 27 Nov 2009 12:25:36 +0000 (+0100) Subject: Rename DriveInfo.onerror to on_write_error X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=fc072ec4df0996682dfbff6c735e2bbc0d93132f;p=qemu.git 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 --- 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;