From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41409) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLDaX-0007be-3G for qemu-devel@nongnu.org; Wed, 05 Mar 2014 10:18:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WLDaR-0008K5-1v for qemu-devel@nongnu.org; Wed, 05 Mar 2014 10:18:28 -0500 Received: from lnantes-156-75-100-125.w80-12.abo.wanadoo.fr ([80.12.84.125]:55704 helo=paradis.irqsave.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLDaQ-0008Jn-RM for qemu-devel@nongnu.org; Wed, 05 Mar 2014 10:18:22 -0500 From: =?UTF-8?q?Beno=C3=AEt=20Canet?= Date: Wed, 5 Mar 2014 16:18:18 +0100 Message-Id: <1394032700-1642-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 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, pbonzini@redhat.com, =?UTF-8?q?Beno=C3=AEt=20Canet?= , stefanha@redhat.com, mreitz@redhat.com 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 | 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(-) --=20 1.8.3.2