Skip to content

block/mirror: Make cancel always cancel pre-READY

Max Reitz qemu-devel 1 version Applied

Status from this message: Applied to my block branch:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2block/mirror: Make cancel always cancel pre-READYblock/mirror.c+3 -12 replies
2/2iotests: Add test for cancelling a mirror jobtests/qemu-iotests/218 tests/qemu-iotests/218.out tests/qemu-iotests/group+169 -01 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchEric BlakeJohn Snow
SeriesR-b
1/2R-b
2/2

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

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/2] block/mirror: Make cancel always cancel pre-READY

Currently, you cannot cancel a mirror job without the @force flag set. This is intentional once source and target are in sync, but probably not so much before that happens. The main reason for me thinking this is because it is an undocumented change in 2.12.0 in respect to 2.11.

(b76e4458b1eb3c32e9824fe6aa51f67d2b251748 only notes a behavior change
after READY, but not before.)

This series depends on Stefan’s patch “block/mirror: honor ratelimit again” (which is in Jeff’s queue).

Based-on: <[email protected]>

Max Reitz (2):
block/mirror: Make cancel always cancel pre-READY
iotests: Add test for cancelling a mirror job

 block/mirror.c             |   4 +-
 tests/qemu-iotests/218     | 138 +++++++++++++++++++++++++++++++++++++++++++++
 tests/qemu-iotests/218.out |  30 ++++++++++
 tests/qemu-iotests/group   |   1 +
 4 files changed, 172 insertions(+), 1 deletion(-)
 create mode 100755 tests/qemu-iotests/218
 create mode 100644 tests/qemu-iotests/218.out
Signature · 1 line
2.14.3