All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] Allow to repair broken quorum files
@ 2014-03-05 15:18 Benoît Canet
  2014-03-05 15:18 ` [Qemu-devel] [PATCH 1/2] block: Add node-name and to-replace-node-name arguments to drive-mirror Benoît Canet
  2014-03-05 15:18 ` [Qemu-devel] [PATCH 2/2] qemu-iotests: Add TestRepairQuorum to 041 to test drive-mirror node-name mode Benoît Canet
  0 siblings, 2 replies; 7+ messages in thread
From: Benoît Canet @ 2014-03-05 15:18 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, pbonzini, Benoît Canet, stefanha, mreitz

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             |  39 +++++++--
 blockdev.c                 |  61 ++++++++++++--
 hmp.c                      |   3 +-
 include/block/block_int.h  |   3 +
 qapi-schema.json           |  15 +++-
 qmp-commands.hx            |   9 ++-
 tests/qemu-iotests/041     | 196 ++++++++++++++++++++++++++++++++++++++++++++-
 tests/qemu-iotests/041.out |   4 +-
 8 files changed, 308 insertions(+), 22 deletions(-)

-- 
1.8.3.2

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

end of thread, other threads:[~2014-03-07 22:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-05 15:18 [Qemu-devel] [PATCH 0/2] Allow to repair broken quorum files Benoît Canet
2014-03-05 15:18 ` [Qemu-devel] [PATCH 1/2] block: Add node-name and to-replace-node-name arguments to drive-mirror Benoît Canet
2014-03-05 20:54   ` Eric Blake
2014-03-05 21:13     ` Benoît Canet
2014-03-05 21:28       ` Benoît Canet
2014-03-07 22:28     ` Benoît Canet
2014-03-05 15:18 ` [Qemu-devel] [PATCH 2/2] qemu-iotests: Add TestRepairQuorum to 041 to test drive-mirror node-name mode Benoît Canet

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.