I would like to make this series merge in 2.0 before hard freeze because it
would allow a production usage of quorum so it would let me move on the rest of
the block filter infrastructure.(throttling as filter, filter insertion and
removal etc..)

in v2:
    Fix typos and spelling mistakes [Eric]
    Fix alignement [Eric]
    Remove comments about Fam's new API [Eric]
    Add a new test to check that the to-replace-node-name is locked as in use
       during mirroring [Benoît]

This patch allow to build a mirror of a block device and replace an arbitrary
named node of the graph with the mirror.

The obvious first usage is Quorum: with this patch one quand drive-mirror the
block device say quorum0 and then bdrv_swap the result in place of a broken
quorum file (dead filer for example).

The second patch implement drive-mirror tests for this mode.

Benoît Canet (2):
  block: Add node-name and to-replace-node-name arguments to
    drive-mirror.
  qemu-iotests: Add TestRepairQuorum to 041 to test drive-mirror
    node-name mode.

 block/mirror.c             |  51 ++++++++---
 blockdev.c                 |  61 ++++++++++++-
 hmp.c                      |   3 +-
 include/block/block_int.h  |   3 +
 qapi-schema.json           |  15 ++-
 qmp-commands.hx            |   9 +-
 tests/qemu-iotests/041     | 221 ++++++++++++++++++++++++++++++++++++++++++++-
 tests/qemu-iotests/041.out |   4 +-
 8 files changed, 337 insertions(+), 30 deletions(-)

-- 
1.8.3.2


Reply via email to