mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 18:44:58 -06:00
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:
parent
843079386e
commit
f785009961
5 changed files with 16 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue