From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48936) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYPV0-0001zq-Ao for qemu-devel@nongnu.org; Tue, 23 Feb 2016 21:48:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYPUw-0007qj-9y for qemu-devel@nongnu.org; Tue, 23 Feb 2016 21:48:22 -0500 Received: from [59.151.112.132] (port=35037 helo=heian.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYPUv-0007qa-Qu for qemu-devel@nongnu.org; Tue, 23 Feb 2016 21:48:18 -0500 Message-ID: <56CD1A46.1020907@cn.fujitsu.com> Date: Wed, 24 Feb 2016 10:49:42 +0800 From: Changlong Xie MIME-Version: 1.0 References: <1456218099-386-1-git-send-email-xiecl.fnst@cn.fujitsu.com> <1456218099-386-2-git-send-email-xiecl.fnst@cn.fujitsu.com> <56CC5BE3.9090503@redhat.com> <56CC628D.7040909@redhat.com> In-Reply-To: Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v4 1/2] qmp event: Add QUORUM_FLUSH_ERROR List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alberto Garcia , Eric Blake , qemu devel , Kevin Wolf , Max Reitz Cc: "Dr. David Alan Gilbert" On 02/23/2016 10:05 PM, Alberto Garcia wrote: > On Tue 23 Feb 2016 02:45:49 PM CET, Eric Blake wrote: > >>>> Commit message should say why we need a third event, rather than >>>> reusing either of the other two (my guess: because you don't have a >>>> location, and don't want to modify the existing two to report a >>>> location - but why not just use 'sector-num':0, >>>> 'sectors-count': to report the entire file as the >>>> location?) >>> >>> I would also be fine with that solution. >> >> I would also be fine if we added an optional enum member to the >> existing event that said which operation failed ('read', 'write', >> 'flush') - adding optional output members is safe, while converting >> existing mandatory output members to optional may confuse existing >> clients. > Hi Berto & Eric Thanks for all your comments. Surely, this is the best option to me too :-), will fix it in next version. Thanks -Xie > That might actually be the best option :-) > > Berto > > > . >