Received: from eggs.gnu.org ([2001:4830:134:3::10]:55671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYDbQ-0005gN-Aw for qemu-devel@nongnu.org; Tue, 23 Feb 2016 09:06:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYDbL-0005DW-Bn for qemu-devel@nongnu.org; Tue, 23 Feb 2016 09:06:12 -0500 Received: from smtp3.mundo-r.com ([212.51.32.191]:39429 helo=smtp4.mundo-r.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYDbL-0004sa-5C for qemu-devel@nongnu.org; Tue, 23 Feb 2016 09:06:07 -0500 From: Alberto Garcia In-Reply-To: <56CC628D.7040909@redhat.com> 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> Date: Tue, 23 Feb 2016 15:05:27 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: Eric Blake , Changlong Xie , qemu devel , Kevin Wolf , Max Reitz Cc: "Dr. David Alan Gilbert" 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. That might actually be the best option :-) Berto