From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41780) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZ73s-0004m3-0p for qemu-devel@nongnu.org; Thu, 25 Feb 2016 20:19:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aZ73n-0004rR-6L for qemu-devel@nongnu.org; Thu, 25 Feb 2016 20:19:15 -0500 Received: from [59.151.112.132] (port=43491 helo=heian.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZ73m-0004nx-A6 for qemu-devel@nongnu.org; Thu, 25 Feb 2016 20:19:11 -0500 Message-ID: <56CFA85D.4060408@cn.fujitsu.com> Date: Fri, 26 Feb 2016 09:20:29 +0800 From: Changlong Xie MIME-Version: 1.0 References: <1456378389-15648-1-git-send-email-xiecl.fnst@cn.fujitsu.com> <1456378389-15648-3-git-send-email-xiecl.fnst@cn.fujitsu.com> In-Reply-To: Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v6 2/3] qmp event: Refactor QUORUM_REPORT_BAD List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alberto Garcia , qemu devel , Eric Blake , Kevin Wolf , Max Reitz , Markus Armbruster Cc: "Dr. David Alan Gilbert" On 02/25/2016 06:57 PM, Alberto Garcia wrote: > On Thu 25 Feb 2016 06:33:08 AM CET, Changlong Xie wrote: >> +Read/Write operation: >> { "event": "QUORUM_REPORT_BAD", >> - "data": { "node-name": "node0", "sector-num": 345435, "sectors-count": 5 }, >> + "data": { "node-name": "node0", "sector-num": 345435, "sectors-count": 5, >> + "type": "read" }, >> "timestamp": { "seconds": 1344522075, "microseconds": 745528 } } > > Since you introduced the 'type' field and this is now an example of a > read error, you can change the description to say simply "Read > operation:". In my opinion there's no need to add yet another example > for a write operation, I think it's clear enough. Ok > >> +Flush operation: >> +{ "event": "QUORUM_REPORT_BAD", >> + "data": { "node-name": "node0", "sector-num": 0, "sectors-count": 2097120, >> + "type": "flush", "error": "Broken pipe" }, >> + "timestamp": { "seconds": 1456406829, "microseconds": 291763 } } > > Here (and in the previous case) please indent "type" so it goes under Surely. > "node-name": > > { "event": "QUORUM_REPORT_BAD", > "data": { "node-name": "node0", "sector-num": 0, "sectors-count": 2097120, > "type": "flush", "error": "Broken pipe" }, > "timestamp": { "seconds": 1456406829, "microseconds": 291763 } } > > Otherwise I think the patch looks perfect now. Thanks! > Thanks for your review. Will send another series. Thanks -Xie > Berto > > > . >