5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2026-02-12 00:46:21 +03:00
Fiona Ebner 51302088d5 qmp: avoid using deprecated block-job-* commands
All of the following QMP commands were deprecated [0]:
block-job-pause
block-job-resume
block-job-complete
block-job-dismiss
block-job-finalize

Of these, only 'block-job-complete' was used in qemu-server. Replace
it with the 'job-complete' command. The only differences are:
1. using 'id' instead of 'device' as the argument name
2. using a different error type if no job with that ID is found
The error type is not checked anywhere, so it is equivalent.

Note that block-job-cancel has not been deprecated, because of the
special semantics for a mirror job in ready state (job will complete,
but QEMU instance will not switch to using mirror target).

[0]: https://qemu-project.gitlab.io/qemu/about/deprecated.html

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
Link: https://lore.proxmox.com/20260129161923.220661-1-f.ebner@proxmox.com
2026-02-11 11:48:53 +01:00
2026-01-20 18:33:15 +01:00
2023-11-17 15:54:24 +01:00
Description
No description provided
6.9 MiB
Languages
Perl 82.5%
Batchfile 14.9%
C 1.9%
Makefile 0.7%