Revision abd7f68d blockdev.h
b/blockdev.h | ||
---|---|---|
19 | 19 |
IF_COUNT |
20 | 20 |
} BlockInterfaceType; |
21 | 21 |
|
22 |
typedef enum { |
|
23 |
BLOCK_ERR_REPORT, BLOCK_ERR_IGNORE, BLOCK_ERR_STOP_ENOSPC, |
|
24 |
BLOCK_ERR_STOP_ANY |
|
25 |
} BlockInterfaceErrorAction; |
|
26 |
|
|
27 | 22 |
#define BLOCK_SERIAL_STRLEN 20 |
28 | 23 |
|
29 | 24 |
typedef struct DriveInfo { |
... | ... | |
34 | 29 |
int bus; |
35 | 30 |
int unit; |
36 | 31 |
QemuOpts *opts; |
37 |
BlockInterfaceErrorAction on_read_error; |
|
38 |
BlockInterfaceErrorAction on_write_error; |
|
39 | 32 |
char serial[BLOCK_SERIAL_STRLEN + 1]; |
40 | 33 |
QTAILQ_ENTRY(DriveInfo) next; |
41 | 34 |
} DriveInfo; |
... | ... | |
51 | 44 |
extern void drive_uninit(DriveInfo *dinfo); |
52 | 45 |
extern const char *drive_get_serial(BlockDriverState *bdrv); |
53 | 46 |
|
54 |
extern BlockInterfaceErrorAction drive_get_on_error( |
|
55 |
BlockDriverState *bdrv, int is_read); |
|
56 |
|
|
57 | 47 |
extern QemuOpts *drive_add(const char *file, const char *fmt, ...); |
58 | 48 |
extern DriveInfo *drive_init(QemuOpts *arg, int default_to_scsi, |
59 | 49 |
int *fatal_error); |
Also available in: Unified diff