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

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