From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58527) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZP4Le-0003H4-OG for qemu-devel@nongnu.org; Tue, 11 Aug 2015 03:51:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZP4Lb-0000zs-Gh for qemu-devel@nongnu.org; Tue, 11 Aug 2015 03:51:50 -0400 From: Wen Congyang Date: Tue, 11 Aug 2015 15:51:23 +0800 Message-ID: <1439279489-13338-1-git-send-email-wency@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [Patch for-2.5 v2 0/6] qapi: child add/delete support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu devel , Eric Blake , Markus Armbruster , Alberto Garcia , Stefan Hajnoczi Cc: Kevin Wolf , qemu block , Jiang Yunhong , Dong Eddie , "Dr. David Alan Gilbert" , Yang Hongyang If quorum's child is broken, we can use mirror job to replace it. But sometimes, the user only need to remove the broken child, and add it later when the problem is fixed. ChangLog: v2: 1. Use bdrv_get_device_or_node_name() instead of new function bdrv_get_id_or_node_name() 2. Update the error message 3. Update the documents in block-core.json Wen Congyang (6): QAPI: move InetSocketAddress to qapi/common.json support nbd driver in blockdev-add Add new block driver interface to add/delete a BDS's child quorum: implement bdrv_add_child() and bdrv_del_child() qmp: add monitor command to add/remove a child hmp: add monitor command to add/remove a child block.c | 43 ++++++++++++++++++ block/quorum.c | 75 ++++++++++++++++++++++++++++++- blockdev.c | 112 ++++++++++++++++++++++++++++++++++++++++++++++ hmp-commands.hx | 28 ++++++++++++ include/block/block.h | 4 ++ include/block/block_int.h | 5 +++ include/sysemu/blockdev.h | 2 + qapi-schema.json | 27 ----------- qapi/block-core.json | 57 ++++++++++++++++++++++- qapi/common.json | 27 +++++++++++ qmp-commands.hx | 67 +++++++++++++++++++++++++++ 11 files changed, 416 insertions(+), 31 deletions(-) -- 2.4.3