diff options
author | Kevin Wolf <kwolf@redhat.com> | 2009-11-27 13:25:36 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-03 11:45:49 -0600 |
commit | f785009961c335a4c9c735b2bf96d5a0d2e5bde1 (patch) | |
tree | 368060a24693b2e1f25ace603ea317ec93ccbd8a /sysemu.h | |
parent | 843079386eed4ae2dbe1be98383f185b7721411b (diff) | |
download | qemu-f785009961c335a4c9c735b2bf96d5a0d2e5bde1.zip qemu-f785009961c335a4c9c735b2bf96d5a0d2e5bde1.tar.gz qemu-f785009961c335a4c9c735b2bf96d5a0d2e5bde1.tar.bz2 |
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>
Diffstat (limited to 'sysemu.h')
-rw-r--r-- | sysemu.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -180,7 +180,7 @@ typedef struct DriveInfo { int bus; int unit; QemuOpts *opts; - BlockInterfaceErrorAction onerror; + BlockInterfaceErrorAction on_write_error; char serial[BLOCK_SERIAL_STRLEN + 1]; QTAILQ_ENTRY(DriveInfo) next; } DriveInfo; @@ -197,7 +197,9 @@ extern DriveInfo *drive_get_by_id(const char *id); extern int drive_get_max_bus(BlockInterfaceType type); extern void drive_uninit(DriveInfo *dinfo); extern const char *drive_get_serial(BlockDriverState *bdrv); -extern BlockInterfaceErrorAction drive_get_onerror(BlockDriverState *bdrv); + +extern BlockInterfaceErrorAction drive_get_on_error( + BlockDriverState *bdrv, int is_read); BlockDriverState *qdev_init_bdrv(DeviceState *dev, BlockInterfaceType type); |