From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54914) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLYwQ-0006JU-V6 for qemu-devel@nongnu.org; Thu, 06 Mar 2014 09:06:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WLYwK-0003L4-La for qemu-devel@nongnu.org; Thu, 06 Mar 2014 09:06:30 -0500 Received: from lnantes-156-75-100-125.w80-12.abo.wanadoo.fr ([80.12.84.125]:55838 helo=paradis.irqsave.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLYwK-0003Kt-Ey for qemu-devel@nongnu.org; Thu, 06 Mar 2014 09:06:24 -0500 From: =?UTF-8?q?Beno=C3=AEt=20Canet?= Date: Thu, 6 Mar 2014 15:06:20 +0100 Message-Id: <1394114782-22228-1-git-send-email-benoit.canet@irqsave.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH V2 for 2.0 0/2] Allow to repair broken quorum files List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, =?UTF-8?q?Beno=C3=AEt=20Canet?= , stefanha@redhat.com, mreitz@redhat.com 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 r= est of the block filter infrastructure.(throttling as filter, filter insertion a= nd 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=C3=AEt] This patch allow to build a mirror of a block device and replace an arbit= rary 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 brok= en quorum file (dead filer for example). The second patch implement drive-mirror tests for this mode. Beno=C3=AEt 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(-) --=20 1.8.3.2