From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48163) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aKyRX-0002DT-30 for qemu-devel@nongnu.org; Sun, 17 Jan 2016 20:17:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aKyRW-0000Kp-2k for qemu-devel@nongnu.org; Sun, 17 Jan 2016 20:17:15 -0500 References: <1451035376-7252-1-git-send-email-xiecl.fnst@cn.fujitsu.com> From: Wen Congyang Message-ID: <569C3D1A.7030807@cn.fujitsu.com> Date: Mon, 18 Jan 2016 09:17:14 +0800 MIME-Version: 1.0 In-Reply-To: <1451035376-7252-1-git-send-email-xiecl.fnst@cn.fujitsu.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v9 0/3] qapi: child add/delete support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Changlong Xie , qemu devel , Eric Blake , Alberto Garcia , Kevin Wolf , Stefan Hajnoczi Cc: Jiang Yunhong , Dong Eddie , Markus Armbruster , qemu block , "Dr. David Alan Gilbert" Ping... On 12/25/2015 05:22 PM, Changlong Xie wrote: > 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: > v9: > 1. Rebase to the newest codes > 2. Remove redundant codes in quorum_add_child() and quorum_del_child() > 3. Fix typos and in qmp-commands.hx > v8: > 1. Rebase to the newest codes > 2. Address the comments from Eric Blake > v7: > 1. Remove the qmp command x-blockdev-change's parameter operation according > to Kevin's comments. > 2. Remove the hmp command. > v6: > 1. Use a single qmp command x-blockdev-change to replace x-blockdev-child-add > and x-blockdev-child-delete > v5: > 1. Address Eric Blake's comments > v4: > 1. drop nbd driver's implementation. We can use human-monitor-command > to do it. > 2. Rename the command name. > v3: > 1. Don't open BDS in bdrv_add_child(). Use the existing BDS which is > created by the QMP command blockdev-add. > 2. The driver NBD can support filename, path, host:port now. > 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 (3): > 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 > > block.c | 58 ++++++++++++++++++++-- > block/quorum.c | 122 +++++++++++++++++++++++++++++++++++++++++++++- > blockdev.c | 54 ++++++++++++++++++++ > include/block/block.h | 9 ++++ > include/block/block_int.h | 5 ++ > qapi/block-core.json | 23 +++++++++ > qmp-commands.hx | 47 ++++++++++++++++++ > 7 files changed, 312 insertions(+), 6 deletions(-) >