mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -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
|
@ -100,7 +100,7 @@ static void virtio_blk_req_complete(VirtIOBlockReq *req, int status)
|
|||
|
||||
static int virtio_blk_handle_write_error(VirtIOBlockReq *req, int error)
|
||||
{
|
||||
BlockInterfaceErrorAction action = drive_get_onerror(req->dev->bs);
|
||||
BlockInterfaceErrorAction action = drive_get_on_error(req->dev->bs, 0);
|
||||
VirtIOBlock *s = req->dev;
|
||||
|
||||
if (action == BLOCK_ERR_IGNORE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue