qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH V2 for 2.0 0/2] Allow to repair broken quorum files
@ 2014-03-06 14:06 Benoît Canet
  2014-03-06 14:06 ` [Qemu-devel] [PATCH V2 for 2.0 1/2] block: Add node-name and to-replace-node-name arguments to drive-mirror Benoît Canet
  2014-03-06 14:06 ` [Qemu-devel] [PATCH V2 for 2.0 2/2] qemu-iotests: Add TestRepairQuorum to 041 to test drive-mirror node-name mode Benoît Canet
  0 siblings, 2 replies; 4+ messages in thread
From: Benoît Canet @ 2014-03-06 14:06 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, Benoît Canet, stefanha, mreitz

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-03-06 16:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-06 14:06 [Qemu-devel] [PATCH V2 for 2.0 0/2] Allow to repair broken quorum files Benoît Canet
2014-03-06 14:06 ` [Qemu-devel] [PATCH V2 for 2.0 1/2] block: Add node-name and to-replace-node-name arguments to drive-mirror Benoît Canet
2014-03-06 14:06 ` [Qemu-devel] [PATCH V2 for 2.0 2/2] qemu-iotests: Add TestRepairQuorum to 041 to test drive-mirror node-name mode Benoît Canet
2014-03-06 16:09   ` Benoît Canet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).