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>
This commit is contained in:
Kevin Wolf 2009-11-27 13:25:36 +01:00 committed by Anthony Liguori
parent 843079386e
commit f785009961
5 changed files with 16 additions and 8 deletions

View file

@ -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;