Received: from eggs.gnu.org ([2001:4830:134:3::10]:36559) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyaqY-0005FA-CH for qemu-devel@nongnu.org; Tue, 17 Nov 2015 02:38:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZyaqX-0005Jy-Iq for qemu-devel@nongnu.org; Tue, 17 Nov 2015 02:38:34 -0500 From: Markus Armbruster References: <1446618049-13596-22-git-send-email-eblake@redhat.com> <1446737402-15597-1-git-send-email-armbru@redhat.com> <1446737402-15597-4-git-send-email-armbru@redhat.com> <20151105160114.GG15525@redhat.com> <563B86CD.4090203@redhat.com> <87a8qrculz.fsf@blackfin.pond.sub.org> <87mvur5jyy.fsf@blackfin.pond.sub.org> <87r3jxudkx.fsf_-_@blackfin.pond.sub.org> <564A54FC.2070001@redhat.com> Date: Tue, 17 Nov 2015 08:38:25 +0100 In-Reply-To: <564A54FC.2070001@redhat.com> (Eric Blake's message of "Mon, 16 Nov 2015 15:13:16 -0700") Message-ID: <87r3jp2hzi.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] blkdebug event names [was: What to do about QAPI naming convention violations] List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: Kevin Wolf , qemu-devel@nongnu.org, qemu block , mdroth@linux.vnet.ibm.com Eric Blake writes: > On 11/10/2015 07:35 AM, Markus Armbruster wrote: > >>>> Oddballs not related to case: >>>> >>>> * enum BlkdebugEvent uses '.' in member names > >> I had a closer look at how the screwy names are used in QMP to see how >> much of the mess is fixable within reason. >> > >> BlkdebugEvent is related to the external blkdebug interface described by >> docs/blkdebug.txt. The two are actually decoupled, i.e. changing the >> QAPI names doesn't affect the external debugging interface, and vice >> versa. Making them different can only cause confusion, though. Not >> sure we can fix the names. > > I think that having block/blkdebug.c:event_name[] duplicate qapi > BlkdebugEvent is a mistake, and that we are better off unifying them. > The other question is whether backwards compatibility is important here, > or if we can just break the naming conventions to something sane. That > is, if the primary user of blkdebug is our testsuite, and we fix our > testsuite to match the new names, will we be breaking external users? > Libvirt certainly doesn't expose blkdebug, and I doubt any other > external wrapper will be that upset if we force better names here. > >> >> BlkdebugSetStateOptions and BlockdevDriver are input for blockdev-add. >> Fixable. May not even need backward compatibility. > > Yep, I concur that blockdev-add is not stable yet, and that there are no > other QMP uses of BlkdebugEvent, so unless anyone else complains, I > think we can make the change to conventional spelling. > > At this point, I think 2.5 is too late, so the change will have to go > into 2.6, but I'm preparing a patch for fixing this interface. Definitely 2.6. Make sure to cc: Kevin (blkdebug maintainer).