Revision aa1db6ed

b/QMP/qmp-events.txt
43 43

  
44 44
Description: Issued when the VNC session is made active.
45 45
Data: 'server' and 'client' keys with the same keys as 'query-vnc'.
46

  
47
7 BLOCK_IO_ERROR
48
----------------
49

  
50
Description: Issued when a disk I/O error occurs
51
Data:
52

  
53
- 'device': device name (json-string)
54
- 'operation': I/O operation (json-string, "read" or "write")
55
- 'action': action that has been taken, it's one of the following:
56
    "ignore": error has been ignored
57
    "report": error has been reported to the device
58
    "stop": error caused VM to be stopped
59

  
60
Example:
61

  
62
{ "event": "BLOCK_IO_ERROR",
63
    "data": { "device": "ide0-hd1",
64
              "operation": "write",
65
              "action": "stop" },
66
    "timestamp": { "seconds": 1265044230, "microseconds": 450486 } }
b/monitor.c
388 388
        case QEVENT_VNC_DISCONNECTED:
389 389
            event_name = "VNC_DISCONNECTED";
390 390
            break;
391
        case QEVENT_BLOCK_IO_ERROR:
392
            event_name = "BLOCK_IO_ERROR";
393
            break;
391 394
        default:
392 395
            abort();
393 396
            break;
b/monitor.h
23 23
    QEVENT_VNC_CONNECTED,
24 24
    QEVENT_VNC_INITIALIZED,
25 25
    QEVENT_VNC_DISCONNECTED,
26
    QEVENT_BLOCK_IO_ERROR,
26 27
    QEVENT_MAX,
27 28
} MonitorEvent;
28 29

  

Also available in: Unified diff