mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
blockjob: Update description of the 'device' field in the QMP API
The 'device' field in all BLOCK_JOB_* events and 'block-job-*' command is no longer the device name, but the ID of the job. This patch updates the documentation to clarify that. Signed-off-by: Alberto Garcia <berto@igalia.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
a5d5a3bdbd
commit
6aae5be6a7
2 changed files with 33 additions and 14 deletions
|
@ -92,7 +92,8 @@ Data:
|
|||
|
||||
- "type": Job type (json-string; "stream" for image streaming
|
||||
"commit" for block commit)
|
||||
- "device": Device name (json-string)
|
||||
- "device": Job identifier. Originally the device name but other
|
||||
values are allowed since QEMU 2.7 (json-string)
|
||||
- "len": Maximum progress value (json-int)
|
||||
- "offset": Current progress value (json-int)
|
||||
On success this is equal to len.
|
||||
|
@ -116,7 +117,8 @@ Data:
|
|||
|
||||
- "type": Job type (json-string; "stream" for image streaming
|
||||
"commit" for block commit)
|
||||
- "device": Device name (json-string)
|
||||
- "device": Job identifier. Originally the device name but other
|
||||
values are allowed since QEMU 2.7 (json-string)
|
||||
- "len": Maximum progress value (json-int)
|
||||
- "offset": Current progress value (json-int)
|
||||
On success this is equal to len.
|
||||
|
@ -143,7 +145,8 @@ Emitted when a block job encounters an error.
|
|||
|
||||
Data:
|
||||
|
||||
- "device": device name (json-string)
|
||||
- "device": Job identifier. Originally the device name but other
|
||||
values are allowed since QEMU 2.7 (json-string)
|
||||
- "operation": I/O operation (json-string, "read" or "write")
|
||||
- "action": action that has been taken, it's one of the following (json-string):
|
||||
"ignore": error has been ignored, the job may fail later
|
||||
|
@ -167,7 +170,8 @@ Data:
|
|||
|
||||
- "type": Job type (json-string; "stream" for image streaming
|
||||
"commit" for block commit)
|
||||
- "device": Device name (json-string)
|
||||
- "device": Job identifier. Originally the device name but other
|
||||
values are allowed since QEMU 2.7 (json-string)
|
||||
- "len": Maximum progress value (json-int)
|
||||
- "offset": Current progress value (json-int)
|
||||
On success this is equal to len.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue