Skip to content

commit: Expose on-error option in QMP

Kevin Wolf qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7qapi: Document meaning of 'ignore' BlockdevOnError for jobsqapi/block-core.json+4 -12 replies
2/7commit: Remove unused bytes_writtenblock/commit.c+0 -21 reply
3/7commit: Fix argument order for block_job_error_action()block/commit.c+1 -11 reply
4/7commit: Inline commit_populate()block/commit.c+6 -221 reply
5/7commit: Fix is_read for block_job_error_action()block/commit.c+6 -11 reply
6/7commit: Expose on-error option in QMPblockdev.c qapi/block-core.json+8 -41 reply
7/7iotests: Test error handling policies with block-committests/qemu-iotests/040 tests/qemu-iotests/040.out+285 -20 replies

Reviews trailers per patch

6 of 7 patches have a Reviewed-by or Acked-by.

PatchJán Tomko
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7] commit: Expose on-error option in QMP

All other block jobs already provide a QMP option to control the error handling policy. It's time to add it to commit, too.

Peter, I guess libvirt wants to expose this?

Nir, as you would probably assume, this is motivated by the recent finding that VDSM has to preallocate the theoretical maximum for commit operations because QEMU doesn't provide a way to reliably resize the base image dynamically. If you ever want to improve that code, this will enable you to do so from the QEMU side.

Kevin Wolf (7):
qapi: Document meaning of 'ignore' BlockdevOnError for jobs
commit: Remove unused bytes_written
commit: Fix argument order for block_job_error_action()
commit: Inline commit_populate()
commit: Fix is_read for block_job_error_action()
commit: Expose on-error option in QMP
iotests: Test error handling policies with block-commit

 qapi/block-core.json       |   9 +-
 block/commit.c             |  37 ++---
 blockdev.c                 |   8 +-
 tests/qemu-iotests/040     | 283 +++++++++++++++++++++++++++++++++++++
 tests/qemu-iotests/040.out |   4 +-
 5 files changed, 309 insertions(+), 32 deletions(-)
Signature · 1 line
2.20.1